Merge "docker: switch to using uwsgi-base"

This commit is contained in:
Zuul 2021-02-01 21:54:01 +00:00 committed by Gerrit Code Review
commit b26470ba4a
3 changed files with 4 additions and 11 deletions

View File

@ -19,8 +19,7 @@
parent: opendev-build-docker-image
description: Build OpenDev Docker images for LodgeIt
requires:
- python-base-3.7-container-image
- python-builder-3.7-container-image
- uwsgi-base-3.7-container-image
provides: lodgeit-container-image
vars: &lodgeit_opendev_image_vars
zuul_work_dir: src/opendev.org/opendev/lodgeit
@ -34,8 +33,7 @@
parent: opendev-upload-docker-image
description: Build OpenDev LodgeIt Docker images and upload to Docker Hub.
requires:
- python-base-3.7-container-image
- python-builder-3.7-container-image
- uwsgi-base-3.7-container-image
provides: lodgeit-container-image
vars: *lodgeit_opendev_image_vars
secrets:

View File

@ -17,15 +17,11 @@ FROM opendevorg/python-builder:3.7 as builder
COPY . /tmp/src
RUN assemble
FROM opendevorg/python-base:3.7 as lodgeit
FROM opendevorg/uwsgi-base:3.7 as lodgeit
COPY --from=builder /output/ /output
RUN /output/install-from-bindep
USER nobody
EXPOSE 9000
ENV LODGEIT_DBURI sqlite:////tmp/lodgeit.db
ENV LODGEIT_SECRET_KEY changeMe
CMD ["uwsgi", "--master", \
"--processes", "4", \
"--http-socket", "0.0.0.0:9000", \
"--wsgi-file", "/usr/local/bin/lodgeit-wsgi"]
ENV UWSGI_HTTP_SOCKET=:9000 UWSGI_WSGI_FILE=/usr/local/bin/lodgeit-wsgi

View File

@ -10,4 +10,3 @@ Babel
pillow
pytz
MarkupSafe
uwsgi