This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #490 from eregs/django110111
Django 1.10 and 1.11 support (Django 1.11 PR #3)
- Loading branch information
Showing
86 changed files
with
982 additions
and
552 deletions.
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 |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# Compiled source # | ||
################### | ||
*.com | ||
*.class | ||
*.dll | ||
*.exe | ||
*.o | ||
*.so | ||
|
||
# Packages # | ||
############ | ||
# it's better to unpack these files and commit the raw source | ||
# git has its own built in compression methods | ||
*.7z | ||
*.dmg | ||
*.gz | ||
*.iso | ||
*.jar | ||
*.rar | ||
*.tar | ||
*.zip | ||
|
||
# Logs and databases # | ||
###################### | ||
*.log | ||
*.sql | ||
*.sqlite | ||
|
||
# OS generated files # | ||
###################### | ||
.DS_Store | ||
.DS_Store? | ||
._* | ||
.Spotlight-V100 | ||
.Trashes | ||
Icon? | ||
ehthumbs.db | ||
Thumbs.db | ||
|
||
# Grunt.js # | ||
############ | ||
node_modules/ | ||
oldphantomjs/ | ||
.grunt/ | ||
|
||
# Minified assets # | ||
############### | ||
*.min.js | ||
*.min.css | ||
|
||
# Floobits # | ||
############### | ||
.floo | ||
.flooignore | ||
.sublime-project | ||
|
||
# Custom # | ||
########## | ||
*.py[co] | ||
eregsip/ | ||
*.swp | ||
dev_local_settings.py | ||
config.json | ||
src/ | ||
_SpecRunner.html | ||
head/public/fonts | ||
regulations/static/regulations/docs/* | ||
regulations/static/regulations/js/source/require.config.js | ||
regulations/static/regulations/js/source/lib/ | ||
regulations/static/regulations/js/tests/browser/test.config.js | ||
regulations/static/regulations/js/unittests/coverage/ | ||
regulations/static/regulations/js/built/* | ||
regulations/static/regulations/js/built/regulations.js | ||
regulations/static/regulations/css/style.css | ||
docs/Makefile | ||
docs/make.bat | ||
regulations-core/ | ||
style.css.map | ||
.coverage | ||
regulations.egg-info | ||
.tox | ||
|
||
|
||
# docs output | ||
docs/_build | ||
|
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 |
---|---|---|
|
@@ -79,6 +79,7 @@ regulations-core/ | |
style.css.map | ||
.coverage | ||
regulations.egg-info | ||
.tox | ||
|
||
|
||
# docs output | ||
|
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,23 @@ | ||
FROM node:6 | ||
ARG PYTHON3=3 | ||
ENV PIP_PACKAGE=python${PYTHON3}-pip \ | ||
PIP_CMD=pip$PYTHON3 \ | ||
PYTHON_CMD=python$PYTHON3 | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y $PIP_PACKAGE \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN $PIP_CMD install --upgrade pip | ||
RUN npm install --quiet -g grunt-cli | ||
|
||
COPY ["manage.py", "package.json", "example-config.json", "setup.py", "frontendbuild.sh", "Gruntfile.js", ".babelrc", ".eslintignore", ".eslintrc", "/app/src/"] | ||
COPY ["regulations", "/app/src/regulations"] | ||
COPY ["fr_notices", "/app/src/fr_notices"] | ||
WORKDIR /app/src/ | ||
RUN ./frontendbuild.sh | ||
RUN $PIP_CMD install --no-cache-dir -e . \ | ||
&& $PYTHON_CMD manage.py migrate | ||
|
||
ENV PYTHONUNBUFFERED="1" | ||
EXPOSE 8000 | ||
CMD $PYTHON_CMD manage.py runserver 0.0.0.0:8000 |
Oops, something went wrong.