Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9498211

Browse files
07.02 split requirements file
1 parent 91fb72f commit 9498211

File tree

6 files changed

+28
-21
lines changed

6 files changed

+28
-21
lines changed

‎docker/django/Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ WORKDIR /app
55
ENV PYTHONUNBUFFERED 1
66
RUN python3.7 -m pip install -U pip setuptools
77

8-
COPY requirements.txt /tmp/requirements.txt
9-
RUN python3.7 -m pip install -U --no-cache-dir -r /tmp/requirements.txt
8+
COPY requirements /tmp/requirements
9+
RUN python3.7 -m pip install -U --no-cache-dir -r /tmp/requirements/development.txt
1010

1111
COPY docker/django/entrypoint.sh /usr/local/bin/entrypoint.sh
1212
RUN chmod +x /usr/local/bin/entrypoint.sh

‎docker/jupyter/Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ WORKDIR /app
55
ENV PYTHONUNBUFFERED 1
66
RUN python3.7 -m pip install -U pip setuptools
77

8-
COPY requirements.txt /tmp/requirements.txt
9-
RUN python3.7 -m pip install -U --no-cache-dir -r /tmp/requirements.txt
8+
COPY requirements /tmp/requirements
9+
RUN python3.7 -m pip install -U --no-cache-dir -r /tmp/requirements/development.txt
1010

1111
COPY docker/jupyter/entrypoint.sh /usr/local/bin/entrypoint.sh
1212
RUN chmod +x /usr/local/bin/entrypoint.sh

‎requirements.txt‎

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1 @@
1-
django-environ==0.4.5
2-
django-extensions==2.1.0
3-
django-test-plus==1.1.1
4-
django-url-checks==0.1.0
5-
Django>=2.1,<2.2
6-
djangorestframework==3.8.2
7-
factory_boy==2.11.1
8-
Faker==0.9.2
9-
flake8==3.5.0
10-
flake8-bugbear==18.2.0
11-
flake8-docstrings==1.3.0
12-
ipython==6.4.0
13-
jupyter==1.0.0
14-
pep8-naming==0.7.0
15-
pre-commit==1.10.4
16-
psycopg2-binary
17-
pytz==2018.5
1+
-r requirements/production.txt

‎requirements/base.txt‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
django-environ==0.4.5
2+
django-extensions==2.1.0
3+
django-url-checks==0.1.0
4+
Django>=2.1,<2.2
5+
djangorestframework==3.8.2
6+
ipython==6.4.0
7+
pytz==2018.5

‎requirements/development.txt‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
-r base.txt
2+
3+
django-test-plus==1.1.1
4+
factory_boy==2.11.1
5+
Faker==0.9.2
6+
flake8==3.5.0
7+
flake8-bugbear==18.2.0
8+
flake8-docstrings==1.3.0
9+
jupyter==1.0.0
10+
pep8-naming==0.7.0
11+
pre-commit==1.10.4
12+
psycopg2-binary==2.7.5

‎requirements/production.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-r base.txt
2+
3+
gunicorn==19.7.1
4+
psycopg2>=2.7,<2.8 --no-binary psycopg2

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /