Skip to content

Commit

Permalink
chore(bump-image)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulineribeyre committed Jun 7, 2019
1 parent 5a87f81 commit 495c9e0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 128 deletions.
6 changes: 2 additions & 4 deletions {{cookiecutter.package_name}}/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# To check running container: docker exec -it {{ cookiecutter.package_name }} /bin/bash


FROM quay.io/cdis/python-nginx:1.3.0
FROM quay.io/cdis/python-nginx:pybase3-1.0.0


ENV appname={{ cookiecutter.package_name }}
Expand All @@ -18,8 +18,6 @@ RUN apk update \
COPY . /$appname
COPY ./deployment/uwsgi/uwsgi.ini /etc/uwsgi/uwsgi.ini
COPY ./deployment/uwsgi/wsgi.py /$appname/wsgi.py
COPY ./deployment/nginx/nginx.conf /etc/nginx/
COPY ./deployment/nginx/uwsgi.conf /etc/nginx/conf.d/nginx.conf
WORKDIR /$appname

RUN python -m pip install --upgrade pip \
Expand All @@ -43,4 +41,4 @@ RUN COMMIT=`git rev-parse HEAD` && echo "COMMIT=\"${COMMIT}\"" >$appname/version

WORKDIR /var/www/$appname

CMD /$appname/dockerrun.bash
CMD /dockerrun.sh
57 changes: 0 additions & 57 deletions {{cookiecutter.package_name}}/deployment/nginx/nginx.conf

This file was deleted.

34 changes: 0 additions & 34 deletions {{cookiecutter.package_name}}/deployment/nginx/uwsgi.conf

This file was deleted.

7 changes: 4 additions & 3 deletions {{cookiecutter.package_name}}/deployment/uwsgi/uwsgi.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[uwsgi]
protocol = uwsgi
socket = /var/www/{{ cookiecutter.package_name }}/uwsgi.sock
socket = /var/run/gen3/uwsgi.sock
buffer-size = 32768
uid = nginx
gid = nginx
chown-socket = nginx:nginx
chmod-socket = 666
master = true
harakiri-verbose = 20
Expand All @@ -10,8 +13,6 @@ wsgi-file=/{{ cookiecutter.package_name }}/wsgi.py
plugins = python3
vacuum = true
chdir = /{{ cookiecutter.package_name }}/
uid = nginx
gid = nginx
pythonpath = /usr/local/lib/python3.6/site-packages/


Expand Down
30 changes: 0 additions & 30 deletions {{cookiecutter.package_name}}/dockerrun.bash

This file was deleted.

0 comments on commit 495c9e0

Please sign in to comment.