-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate to django 3.0.2, Close #15
- Loading branch information
Showing
7 changed files
with
62 additions
and
22 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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM alpine:3.6 | ||
ADD ["fachschaftszitat/requirements.txt", "/requirements.txt"] | ||
FROM alpine:3.11 | ||
ADD ["src/requirements.txt", "/requirements.txt"] | ||
RUN apk upgrade --update && \ | ||
apk add --update python3 build-base openldap-dev python3-dev py3-psycopg2 && \ | ||
pip3 install -r /requirements.txt && rm /requirements.txt | ||
WORKDIR /fs_zitat | ||
WORKDIR /quotes | ||
EXPOSE 80 | ||
VOLUME ["/fs_zitat/data"] | ||
COPY "src" "/quotes" | ||
VOLUME ["/quotes/data"] | ||
ENTRYPOINT ["python3", "manage.py"] | ||
ADD ["fachschaftszitat", "/fs_zitat"] | ||
CMD ["runserver", "0.0.0.0:80"] |
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,11 @@ | ||
FROM alpine:3.11 | ||
ADD ["src/requirements.txt", "/requirements.txt"] | ||
RUN apk upgrade --update && \ | ||
apk add --update python3 build-base openldap-dev python3-dev py3-psycopg2 && \ | ||
pip3 install -r /requirements.txt && rm /requirements.txt | ||
WORKDIR /quotes | ||
EXPOSE 80 | ||
COPY "src" "/quotes" | ||
VOLUME ["/quotes/data"] | ||
ENTRYPOINT ["python3", "manage.py"] | ||
CMD ["runserver", "0.0.0.0:80"] |
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,29 @@ | ||
version: "2" | ||
|
||
networks: | ||
pg_db: | ||
internal: true | ||
|
||
services: | ||
quotesapp: | ||
image: zitate:0.1 | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
networks: | ||
- default | ||
- pg_db | ||
env_file: | ||
- docker.env | ||
ports: | ||
- 8888:80 | ||
|
||
dbzitate: | ||
image: postgres:10-alpine | ||
networks: | ||
- pg_db | ||
volumes: | ||
- ./data/pgdata/:/var/lib/postgresql/data/ | ||
env_file: | ||
- docker.env | ||
|
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
Django==2.0.1 | ||
Django==3.0.2 | ||
django-jinja==2.4.1 | ||
Jinja2==2.10 | ||
MarkupSafe==1.0 | ||
pytz==2017.3 | ||
djangorestframework==3.9.0 | ||
django-auth-ldap==1.7.0 | ||
Jinja2==2.10.3 | ||
djangorestframework==3.11.0 | ||
django-auth-ldap==2.1.0 |
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