-
Notifications
You must be signed in to change notification settings - Fork 21
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
Dockerify #157
Conversation
40e28aa
to
f7c113c
Compare
README.md
Outdated
|
||
L'intégration HTML/CSS est réalisée et documentée dans un autre dépôt de code : [code-du-travail-css](https://github.com/SocialGouv/code-du-travail-css). | ||
Editer `.env` et `docker-compose.override.yml` puis lancer `docker-compose up` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
normalement ca sera yarn dev
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
normalement ca sera yarn dev
c'est pas si pratique d'avoir les 3serveur qui tourne dans le meme term en fait :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐳
.yarnrc
Outdated
@@ -0,0 +1 @@ | |||
workspaces-experimental true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really required ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was to avoid warning message.
docker-compose.yml
Outdated
environment: | ||
- PYTHONPATH=. | ||
- ES_HOST=elasticsearch | ||
- PORT=9200 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ES_PORT ?
|
||
COPY package.json /app/package.json | ||
COPY package-lock.json /app/package-lock.json | ||
#COPY yarn.lock /app/yarn.lock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to remove ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will be back when yarn.lock will be versionned
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should do it now then...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\ping @revolunet
Same goes for /packages/code-du-travail-api/Dockerfile
?
00d2e0c
to
7078143
Compare
|
||
COPY package.json /app/package.json | ||
COPY package-lock.json /app/package-lock.json | ||
#COPY yarn.lock /app/yarn.lock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\ping @revolunet
Same goes for /packages/code-du-travail-api/Dockerfile
?
remove code-du-travail-data/.env file since its no more used add code-du-travail-api/.env file with default value for dev env
je propose qu'on merge et on améliore ensuite |
@@ -63,8 +63,5 @@ typings/ | |||
# Yarn Integrity file | |||
.yarn-integrity | |||
|
|||
# dotenv environment variables file | |||
.env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same should be done in /packages/code-du-travail-css/.gitignore
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree, since code-du-travail-css was not using a env file, I forget to update it :)
packages/code-du-travail-data/.env
Outdated
@@ -0,0 +1,3 @@ | |||
PYTHONPATH=. | |||
ES_HOST=elasticsearch | |||
ES_PORT=9200 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry, I thought these files was unused anymore since we handle the env globally in docker-compose.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In which case we need it ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed, they are overriden by the root docker-compose.yml
, we shouldnt need this except for explicitness maybe. will remove that!
This reverts commit c612762.
No description provided.