mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-14 16:55:42 +00:00
Some changes for convinience
This commit is contained in:
parent
056fbe273c
commit
023aade995
3
daemon/.dockerignore
Normal file
3
daemon/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
*.bak
|
@ -4,7 +4,7 @@ FROM python:3.6-slim-stretch
|
||||
LABEL maintainer="inf_sfb1288@lists.uni-bielefeld.de"
|
||||
|
||||
|
||||
ARG docker_gid=998
|
||||
ARG docker_gid=999
|
||||
ARG gid=1000
|
||||
ARG uid=1000
|
||||
ENV LANG=C.UTF-8
|
||||
@ -25,16 +25,10 @@ USER nopaqued
|
||||
WORKDIR /home/nopaqued
|
||||
|
||||
|
||||
COPY ["logger", "logger"]
|
||||
COPY ["notify", "notify"]
|
||||
COPY ["tasks", "tasks"]
|
||||
COPY ["decorators.py", "nopaqued.py", "requirements.txt", "./"]
|
||||
COPY --chown=nopaqued:nopaqued [".", "."]
|
||||
RUN python -m venv venv \
|
||||
&& venv/bin/pip install --requirement requirements.txt \
|
||||
&& mkdir logs
|
||||
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
|
||||
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
ENTRYPOINT ["./docker-entrypoint.sh"]
|
||||
|
@ -5,4 +5,5 @@ wait-for-it db:5432 --strict --timeout=0
|
||||
echo "Waiting for web..."
|
||||
wait-for-it web:5000 --strict --timeout=0
|
||||
|
||||
venv/bin/python nopaqued.py
|
||||
source venv/bin/activate
|
||||
python nopaqued.py
|
||||
|
@ -51,7 +51,7 @@ services:
|
||||
- "./web/migrations:/home/nopaque/migrations"
|
||||
- "./web/tests:/home/nopaque/tests"
|
||||
- "./web/config.py:/home/nopaque/config.py"
|
||||
- "./web/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh"
|
||||
- "./web/docker-entrypoint.sh:/home/nopaque/docker-entrypoint.sh"
|
||||
- "./web/nopaque.py:/home/nopaque/nopaque.py"
|
||||
- "./web/requirements.txt:/home/nopaque/requirements.txt"
|
||||
daemon:
|
||||
@ -72,8 +72,9 @@ services:
|
||||
- "./logs:/home/nopaqued/logs"
|
||||
- "./daemon/logger:/home/nopaqued/logger"
|
||||
- "./daemon/notify:/home/nopaqued/notify"
|
||||
- "./daemon/tasks:/home/nopaqued/tasks"
|
||||
- "./daemon/decorators.py:/home/nopaqued/decorators.py"
|
||||
- "./daemon/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh"
|
||||
- "./daemon/docker-entrypoint.sh:/home/nopaqued/docker-entrypoint.sh"
|
||||
- "./daemon/nopaqued.py:/home/nopaqued/nopaqued.py"
|
||||
- "./daemon/requirements.txt:/home/nopaqued/requirements.txt"
|
||||
db:
|
||||
|
3
web/.dockerignore
Normal file
3
web/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
*.bak
|
@ -27,16 +27,10 @@ USER nopaque
|
||||
WORKDIR /home/nopaque
|
||||
|
||||
|
||||
COPY ["app", "app"]
|
||||
COPY ["migrations", "migrations"]
|
||||
COPY ["tests", "tests"]
|
||||
COPY ["config.py", "nopaque.py", "requirements.txt", "./"]
|
||||
COPY --chown=nopaque:nopaque [".", "."]
|
||||
RUN python -m venv venv \
|
||||
&& venv/bin/pip install --requirement requirements.txt \
|
||||
&& mkdir logs
|
||||
|
||||
|
||||
COPY ["docker-entrypoint.sh", "/usr/local/bin/"]
|
||||
|
||||
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
ENTRYPOINT ["./docker-entrypoint.sh"]
|
||||
|
Loading…
Reference in New Issue
Block a user