Skip to content

Commit

Permalink
chore(bump-image) (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulineribeyre authored Jun 12, 2019
1 parent c2bc77e commit 57cc89d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 130 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# To run: docker run -v /path/to/wsgi.py:/var/www/manifestservice/wsgi.py --name=manifestservice -p 81:80 manifestservice
# To check running container: docker exec -it manifestservice /bin/bash

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

ENV appname=manifestservice

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 && pip install pipenv && pipenv install
Expand All @@ -40,4 +38,4 @@ RUN COMMIT=`git rev-parse HEAD` && echo "COMMIT=\"${COMMIT}\"" >$appname/version

WORKDIR /var/www/$appname

CMD /$appname/dockerrun.bash
CMD /dockerrun.sh
6 changes: 6 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!groovy

@Library('cdis-jenkins-lib@master') _

testPipeline {
}
57 changes: 0 additions & 57 deletions deployment/nginx/nginx.conf

This file was deleted.

34 changes: 0 additions & 34 deletions deployment/nginx/uwsgi.conf

This file was deleted.

7 changes: 4 additions & 3 deletions deployment/uwsgi/uwsgi.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[uwsgi]
protocol = uwsgi
socket = /var/www/manifestservice/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=/manifestservice/wsgi.py
plugins = python3
vacuum = true
chdir = /manifestservice/
uid = nginx
gid = nginx
virtualenv = $(VENV)
pythonpath = /usr/local/lib/python3.6/site-packages/

Expand Down
32 changes: 0 additions & 32 deletions dockerrun.bash

This file was deleted.

0 comments on commit 57cc89d

Please sign in to comment.