This repository has been archived by the owner on Feb 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Setup a new way to compose containers #137
Closed
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c819b4e
Make Elm container compiles directly into nginx served volume
cuducos 9a0749c
Use standard source location within containers
cuducos e3fd9e7
Use yarn in docker-compose
cuducos f5c78d0
Add yarn.lock to Dockerfile-elm
cuducos c7eb5e4
Add node_modules as a volume in Elm container
cuducos 0f8c57d
Create a shared volume for the frontend static dir
cuducos d81e210
Try to make Elm compile to staticfiles
cuducos 5c5e696
Fix nginx static path
cuducos 46ce3cf
Use assets named data volume
cuducos 3002eea
Clean some stuff
79a5f79
Add settings for develop
f6bcac4
Improve layer usage
ca2052f
Improve layer usage
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
FROM python:3.5 | ||
COPY requirements.txt /requirements.txt | ||
|
||
RUN echo "America/Sao_Paulo" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
postgresql \ | ||
postgresql-contrib | ||
|
||
RUN python -m pip install -U pip | ||
|
||
COPY requirements.txt /requirements.txt | ||
|
||
RUN python -m pip install -r requirements.txt | ||
RUN apt-get update && apt-get install -y postgresql postgresql-contrib | ||
COPY .env /code/.env | ||
COPY manage.py /code/manage.py | ||
COPY jarbas /code/jarbas | ||
|
||
COPY ./ /code | ||
WORKDIR /code | ||
RUN echo "America/Sao_Paulo" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata | ||
VOLUME /code/staticfiles | ||
|
||
CMD ["gunicorn", "jarbas.wsgi:application", "--reload", "--bind", "0.0.0.0:8001", "--workers", "4"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
FROM node:6.9.1 | ||
|
||
RUN npm install -g yarn | ||
|
||
COPY ./ /code | ||
WORKDIR /code | ||
COPY elm-package.json elm-package.json | ||
COPY package.json package.json | ||
COPY gulpfile.js gulpfile.js | ||
RUN yarn install | ||
COPY jarbas jarbas | ||
|
||
RUN yarn | ||
|
||
CMD yarn assets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FROM nginx:1.11.5 | ||
|
||
COPY contrib/nginx.docker /etc/nginx/conf.d/default.conf | ||
RUN mkdir -p /opt/jarbas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: '2' | ||
services: | ||
|
||
jarbas: | ||
volumes: | ||
- "./:/code" | ||
|
||
elm: | ||
volumes: | ||
- "./:/code" | ||
- "/code/node_modules" | ||
command: [yarn, watch] | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The ideia is keep development in default docker-compose file.