Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodiegoss committed Jul 1, 2019
2 parents 8bbf4f7 + b8d2679 commit ac6d847
Show file tree
Hide file tree
Showing 62 changed files with 2,466 additions and 502 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ package-lock.json
# media files
src/ARte/users/media/
docker/media/

# translations
*.mo
14 changes: 7 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM jandigarte/requirements:latest

RUN mkdir -p /src/ARte
COPY docs/ /docs/
COPY ./src/ARte /src/ARte

COPY ./tasks.py /tasks.py
RUN mkdir -p /ARte
WORKDIR /ARte
COPY docs/ /ARte/docs/
COPY ./src/ARte /ARte/src/ARte/
COPY ./locale/ /ARte/locale/
COPY ./tasks.py /ARte/tasks.py
COPY ./etc/ /ARte/etc/

RUN find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf

ENTRYPOINT ["inv"]
5 changes: 3 additions & 2 deletions docker/base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ FROM debian:buster-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
python3-pip \
python3-setuptools

python3-setuptools \
gettext \
docutils-common
COPY ./src/requirements.txt /src/requirements.txt

RUN pip3 install --upgrade pip
Expand Down
6 changes: 3 additions & 3 deletions docker/docker-compose.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ services:
volumes:
- static_dev_files:/collect/
- ./media/dev/:/src/ARte/users/media/
command: db -p docs collect run -g -p
command: inv db -p docs collect run -g -p
labels:
- "com.centurylinklabs.watchtower.enable=true"

Expand Down Expand Up @@ -72,7 +72,7 @@ services:
volumes:
- static_staging_files:/collect/
- ./media/staging/:/src/ARte/users/media/
command: db -p docs collect run -g -p
command: inv db -p docs collect run -g -p
labels:
- "com.centurylinklabs.watchtower.enable=true"

Expand Down Expand Up @@ -102,7 +102,7 @@ services:
volumes:
- static_prod_files:/collect/
- ./media/prod/:/src/ARte/users/media/
command: db -p docs collect run -g -p
command: inv db -p docs collect run -g -p
labels:
- "com.centurylinklabs.watchtower.enable=true"

Expand Down
7 changes: 4 additions & 3 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ services:
ports:
- 8000:8000
volumes:
- ../src/ARte/:/src/ARte/
- ./media/:/src/ARte/users/media/
- ../src/ARte/:/ARte/src/ARte/
- ../locale/:/ARte/locale/
- ./media/:/ARte/src/ARte/users/media/
env_file:
- ../src/.envs/.django
- ../src/.envs/.postgres
depends_on:
- postgres
command: db -p docs collect run -p
command: inv db -p i18n --compile docs collect run -p

postgres:
image: postgres
Expand Down
Loading

0 comments on commit ac6d847

Please sign in to comment.