Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Ajoute configuration de développement pour docker-compose #4430

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
27 changes: 27 additions & 0 deletions Dockerfile_back
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM python:3-stretch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Faudrait sûrement préciser une version similaire à celle de la prod', pour se rapprocher des conditions de prod'.


RUN apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests \
git python3-setuptools libxml2-dev python3-lxml \
libxslt-dev libz-dev python3-sqlparse libjpeg62-turbo \
libjpeg62-turbo-dev libfreetype6 libfreetype6-dev \
libffi-dev python-tox build-essential \
xvfb xauth firefox-esr wget \
&& pip install wheel \
&& wget https://github.com/mozilla/geckodriver/releases/download/v0.16.1/geckodriver-v0.16.1-linux64.tar.gz \
&& tar -xzf geckodriver-v0.16.1-linux64.tar.gz -C /bin/ \
&& rm -rf /var/lib/apt/lists/* \
/var/cache/* \
/usr/share/doc/* \
/tmp/*

RUN mkdir -p /zds
WORKDIR /zds

COPY requirements.txt requirements-dev.txt Makefile ./

RUN make install-back

ENV DISPLAY=":99.0" PYTHONIOENCODING="utf-8" DJANGO_SETTINGS_MODULE="zds.settings.docker_dev"

CMD ["./scripts/docker_dev_entrypoint.sh"]
12 changes: 12 additions & 0 deletions Dockerfile_front
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:8-slim

RUN mkdir -p /zds
WORKDIR /zds

ENV NODE_ENV=development

COPY package.json yarn.lock ./

RUN yarn

CMD ["yarn", "run", "gulp"]
Loading