-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now dependencies are installed not as RPM packages but as python modules thought pip. JIRA:CWFHEALTH-286 Signed-off-by: Andrei Paplauski <apaplaus@redhat.com>
- Loading branch information
Showing
16 changed files
with
1,803 additions
and
88 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,11 @@ | ||
.PHONY: test dependencies | ||
|
||
pin_dependencies: | ||
tox -e pin-dependencies | ||
|
||
test: | ||
tox -r | ||
|
||
dependencies: | ||
python -m pip install --upgrade pip | ||
pip install tox |
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,2 @@ | ||
# required by cryptography | ||
setuptools-rust |
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,22 @@ | ||
# | ||
# This file is autogenerated by pip-compile | ||
# To update, run: | ||
# | ||
# pip-compile --generate-hashes --output-file=build-requirements.txt build-requirements.in | ||
# | ||
semantic-version==2.8.5 \ | ||
--hash=sha256:45e4b32ee9d6d70ba5f440ec8cc5221074c7f4b0e8918bdab748cc37912440a9 \ | ||
--hash=sha256:d2cb2de0558762934679b9a104e82eca7af448c9f4974d1f3eeccff651df8a54 | ||
# via setuptools-rust | ||
setuptools-rust==0.12.1 \ | ||
--hash=sha256:60c9bf1423a725e472c4a2a6274598251f959f3ed5ffe7698526e78bb431b9b7 \ | ||
--hash=sha256:647009e924f0ae439c7f3e0141a184a69ad247ecb9044c511dabde232d3d570e | ||
# via -r build-requirements.in | ||
toml==0.10.2 \ | ||
--hash=sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b \ | ||
--hash=sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f | ||
# via setuptools-rust | ||
|
||
# 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 |
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,29 +1,22 @@ | ||
FROM fedora:30 | ||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
RUN dnf -y install \ | ||
--setopt=deltarpm=0 \ | ||
--setopt=install_weak_deps=false \ | ||
--setopt=tsflags=nodocs \ | ||
RUN microdnf -y install \ | ||
bash \ | ||
nmap-ncat \ | ||
krb5-devel \ | ||
gcc \ | ||
openssl-devel \ | ||
python3-devel \ | ||
# Install RPM dependencies from estuary-api otherwise they'll be installed via pip which won't map | ||
# to production | ||
python3-fedmsg \ | ||
python3-flake8 \ | ||
python3-flask \ | ||
python3-koji \ | ||
python3-neomodel \ | ||
python3-pyOpenSSL \ | ||
python3-pytest \ | ||
python3-pytest-cov \ | ||
python3-pytz \ | ||
python3-requests \ | ||
python3-requests-kerberos \ | ||
python3-tox \ | ||
python3-flake8-docstrings \ | ||
&& dnf clean all | ||
&& microdnf clean all | ||
|
||
VOLUME /src | ||
WORKDIR /src | ||
|
||
COPY build-requirements.txt /tmp/build-requirements.txt | ||
COPY test-requirements.txt /tmp/test-requirements.txt | ||
# Set this variable to build cryptography package without Rust | ||
ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1 | ||
# Installing the Python dependencies for Estuary Updater | ||
RUN pip3 install -r /tmp/build-requirements.txt --require-hashes --no-deps \ | ||
&& pip3 install -r /tmp/test-requirements.txt --require-hashes --no-deps --prefix /usr | ||
CMD ["bash", "docker/test.sh"] |
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,9 +1,7 @@ | ||
#!/bin/bash | ||
|
||
echo "Installing the Python dependencies for Estuary Updater..." | ||
python3 setup.py develop --prefix /usr > /dev/null | ||
# Wait until Neo4j is up | ||
while ! nc -z -w 2 neo4j 7687; do sleep 1; done; | ||
# Run the tests | ||
pytest-3 -vvv --cov-report term-missing --cov=estuary_updater tests/ && \ | ||
pytest -vvv --cov-report term-missing --cov=estuary_updater tests/ && \ | ||
flake8 |
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,3 @@ | ||
recommonmark | ||
sphinx | ||
sphinx_rtd_theme |
Oops, something went wrong.