#145 Switch to python3-gunicorn and Fedora 27
Merged 6 years ago by dcallagh. Opened 6 years ago by csomh.

file modified
+8 -5
@@ -1,4 +1,4 @@

- FROM fedora:26

+ FROM fedora:27

  LABEL \

      name="WaiverDB application" \

      vendor="WaiverDB developers" \
@@ -9,12 +9,15 @@

  ARG waiverdb_common_rpm

  COPY $waiverdb_rpm /tmp

  COPY $waiverdb_common_rpm /tmp

+ 

  RUN dnf -y install \

-     python-gunicorn \

-     python-psycopg2 \

+     python3-gunicorn \

      /tmp/$(basename $waiverdb_rpm) \

      /tmp/$(basename $waiverdb_common_rpm) \

-     && dnf -y clean all

+     && dnf -y clean all \

+     && rm -f /tmp/*

+ 

  USER 1001

  EXPOSE 8080

- ENTRYPOINT gunicorn --bind 0.0.0.0:8080 --access-logfile=- waiverdb.wsgi:app

+ 

+ ENTRYPOINT python3-gunicorn --bind 0.0.0.0:8080 --access-logfile=- waiverdb.wsgi:app

[a44a16f] switched to Python 3 on Fedora. This made
gunicorn not finding waiverdb.wsgi .

Switching to python3-gunicorn solves this.

Following futureproofing from [42754a4], change the base
image to be fedora:27 .

Signed-off-by: Hunor Csomortáni csomh@redhat.com

Nice! We were just talking about this.

@dcallagh, want to have a look?

Oh yeah! I totally forgot about this piece. And the functional tests have been broken in Jenkins because of all our OpenShift environment woes, so I never even realised this was broken.

:+1: Thanks @csomh !

Pull-Request has been merged by dcallagh

6 years ago
Metadata