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
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into cuducos-public-admin-architecture-refactor
- Loading branch information
Showing
67 changed files
with
4,632 additions
and
2,956 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
*.sqlite3 | ||
htmlcov/ | ||
npm-debug.log | ||
db/ | ||
|
||
# cache, compiled & downloaded files | ||
*.pyc | ||
|
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 |
---|---|---|
@@ -1,12 +1,30 @@ | ||
FROM python:3.5 | ||
COPY requirements.txt /requirements.txt | ||
COPY requirements-dev.txt /requirements-dev.txt | ||
RUN python -m pip install -U pip | ||
RUN python -m pip install -r requirements-dev.txt | ||
RUN apt-get update && apt-get install -y postgresql postgresql-contrib | ||
FROM python:3.5.4-alpine | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
# set timezone | ||
RUN apk update && apk add --no-cache tzdata && \ | ||
cp /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime && \ | ||
echo "America/Sao_Paulo" > /etc/timezone | ||
|
||
# pyscopg2 dependencies | ||
RUN apk update && apk add --no-cache \ | ||
gcc \ | ||
musl-dev \ | ||
postgresql-dev \ | ||
python3-dev | ||
|
||
# install git so we can pip install from github repos | ||
RUN apk update && apk add --no-cache git | ||
|
||
WORKDIR /code | ||
|
||
COPY ./requirements.txt /code/requirements.txt | ||
COPY ./requirements-dev.txt /code/requirements-dev.txt | ||
RUN python -m pip install -U pip && \ | ||
python -m pip install -r requirements-dev.txt | ||
|
||
COPY manage.py /code/manage.py | ||
COPY jarbas /code/jarbas | ||
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"] | ||
RUN python manage.py collectstatic --no-input | ||
|
||
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] |
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,14 +1,20 @@ | ||
FROM node:6.9.1 | ||
FROM node:8.4.0 | ||
|
||
# npm5 issue with updating itself: https://github.com/npm/npm/issues/18278 | ||
# RUN npm install -g npm@latest | ||
|
||
RUN npm install yarn | ||
RUN ln -s /node_modules/yarn/bin/yarn.js /usr/bin/yarn | ||
WORKDIR /code | ||
|
||
COPY yarn.lock yarn.lock | ||
COPY package.json package.json | ||
COPY package-lock.json package-lock.json | ||
COPY elm-package.json elm-package.json | ||
COPY gulpfile.js gulpfile.js | ||
RUN yarn install --pure-lockfile | ||
|
||
COPY jarbas jarbas | ||
CMD ["yarn", "assets"] | ||
RUN npm install | ||
|
||
# npm5 issue w/ postinstall: https://github.com/npm/npm/issues/17316 | ||
RUN ./node_modules/.bin/elm-package install --yes | ||
|
||
COPY ./jarbas /code/jarbas | ||
|
||
CMD ["npm", "run", "watch"] |
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,5 @@ | ||
FROM nginx:1.11.5 | ||
FROM nginx:1.13.3-alpine | ||
|
||
COPY contrib/nginx.docker /etc/nginx/conf.d/default.conf | ||
RUN mkdir -p /opt/jarbas | ||
|
||
RUN mkdir -p /code/staticfiles |
Oops, something went wrong.