Skip to content

Commit

Permalink
Merge pull request #354 from bcgov/release/python-applications
Browse files Browse the repository at this point in the history
Ingestor build with new python base image
  • Loading branch information
richaarora01 authored Nov 22, 2024
2 parents 9919fa6 + 8d86db5 commit df976c6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
3 changes: 2 additions & 1 deletion python/form_handler/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# FROM python:3.7.3-stretch
FROM registry.access.redhat.com/rhscl/python-36-rhel7:latest
FROM registry.access.redhat.com/ubi8/python-38
#FROM registry.access.redhat.com/rhscl/python-36-rhel7:latest
ARG VERSION
ENV VERSION=$VERSION

Expand Down
4 changes: 3 additions & 1 deletion python/ingestor/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM registry.access.redhat.com/rhscl/python-36-rhel7:latest
#FROM registry.access.redhat.com/rhscl/python-36-rhel7:latest
FROM registry.access.redhat.com/ubi8/python-38
ARG VERSION
ENV VERSION=$VERSION

Expand All @@ -24,5 +25,6 @@ RUN [ "ls", "-R" ]

RUN ["python", "-m", "pytest", "python/ingestor"]


#TODO - Add worker processes to gunicorn below
CMD [ "gunicorn", "--error-logfile", "-", "--bind", "0.0.0.0:5000", "--pythonpath", "python/ingestor", "wsgi" ]
4 changes: 3 additions & 1 deletion python/paybc_api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM registry.access.redhat.com/rhscl/python-36-rhel7:latest
FROM registry.access.redhat.com/ubi8/python-38
#FROM registry.access.redhat.com/rhscl/python-36-rhel7:latest
ARG VERSION
ENV VERSION=$VERSION

Expand All @@ -22,6 +23,7 @@ COPY paybc_api ${APP_ROOT}/src/python/paybc_api
RUN [ "pwd" ]
RUN [ "ls", "-R" ]

# ( Commenting Line 27 as pytest is not working with new python 311 image and removal of orbeaon forms)
RUN ["python", "-m", "pytest", "python/paybc_api"]

CMD [ "gunicorn", "--bind", "0.0.0.0:5000", "--pythonpath", "python/paybc_api", "wsgi:create_app()" ]
2 changes: 1 addition & 1 deletion python/validator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.access.redhat.com/ubi8/python-311
FROM registry.access.redhat.com/ubi8/python-38
ARG VERSION
ENV VERSION=$VERSION

Expand Down
3 changes: 2 additions & 1 deletion python/writer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM registry.access.redhat.com/rhscl/python-36-rhel7:latest
FROM registry.access.redhat.com/ubi8/python-38
#FROM registry.access.redhat.com/rhscl/python-36-rhel7:latest
ARG VERSION
ENV VERSION=$VERSION

Expand Down

0 comments on commit df976c6

Please sign in to comment.