Skip to content

Commit

Permalink
Added a requirements file to update Docker pip version
Browse files Browse the repository at this point in the history
  • Loading branch information
zenmonkeykstop committed Nov 19, 2019
1 parent ed014be commit 4f79c07
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ update-python3-requirements: ## Update Python 3 requirements with pip-compile.
@$(DEVSHELL) pip-compile --generate-hashes \
--output-file requirements/python3/securedrop-app-code-requirements.txt \
requirements/python3/securedrop-app-code-requirements.in
@$(DEVSHELL) pip-compile --generate-hashes \
--allow-unsafe \
--output-file requirements/python3/docker-requirements.txt \
requirements/python3/docker-requirements.in

.PHONY: update-pip-requirements
update-pip-requirements: update-admin-pip-requirements update-python3-requirements ## Update all requirements with pip-compile.
Expand Down
2 changes: 1 addition & 1 deletion admin/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,4 @@ wrapt==1.10.11 \

# WARNING: The following packages were not pinned, but pip requires them to be
# pinned when the requirements file includes hashes. Consider using the --allow-unsafe flag.
# setuptools==41.2.0 # via d2to1, pytest
# setuptools==41.6.0 # via d2to1, pytest
2 changes: 1 addition & 1 deletion admin/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,4 @@ wcwidth==0.1.7 \

# WARNING: The following packages were not pinned, but pip requires them to be
# pinned when the requirements file includes hashes. Consider using the --allow-unsafe flag.
# setuptools==41.2.0 # via ansible
# setuptools==41.6.0 # via ansible
1 change: 1 addition & 0 deletions securedrop/dockerfiles/xenial/python3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckod

COPY requirements requirements
RUN python3 -m venv /opt/venvs/securedrop-app-code && \
/opt/venvs/securedrop-app-code/bin/pip3 install --require-hashes -r requirements/python3/docker-requirements.txt && \
/opt/venvs/securedrop-app-code/bin/pip3 install --require-hashes -r requirements/python3/securedrop-app-code-requirements.txt && \
/opt/venvs/securedrop-app-code/bin/pip3 install --require-hashes -r requirements/python3/test-requirements.txt

Expand Down
2 changes: 1 addition & 1 deletion securedrop/requirements/python3/develop-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --generate-hashes --allow-unsafe --output-file=requirements/python3/develop-requirements.txt ../admin/requirements-ansible.in ../admin/requirements.in requirements/python3/develop-requirements.in
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements/python3/develop-requirements.txt ../admin/requirements-ansible.in ../admin/requirements.in requirements/python3/develop-requirements.in
#
alabaster==0.7.10 \
--hash=sha256:2eef172f44e8d301d25aff8068fddd65f767a3f04b5f15b0f4922f113aa1c732 \
Expand Down
2 changes: 2 additions & 0 deletions securedrop/requirements/python3/docker-requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pip==19.1
setuptools
14 changes: 14 additions & 0 deletions securedrop/requirements/python3/docker-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements/python3/docker-requirements.txt requirements/python3/docker-requirements.in
#

# The following packages are considered to be unsafe in a requirements file:
pip==19.1 \
--hash=sha256:8f59b6cf84584d7962d79fd1be7a8ec0eb198aa52ea864896551736b3614eee9 \
--hash=sha256:d9137cb543d8a4d73140a3282f6d777b2e786bb6abb8add3ac5b6539c82cd624
setuptools==41.6.0 \
--hash=sha256:3e8e8505e563631e7cb110d9ad82d135ee866b8146d5efe06e42be07a72db20a \
--hash=sha256:6afa61b391dcd16cb8890ec9f66cc4015a8a31a6e1c2b4e0c464514be1a3d722

0 comments on commit 4f79c07

Please sign in to comment.