-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug 1562412 - Notarization poller worker (#121)
* [notarization_poller] initial commit * [notarization_poller] worker.py * [notarization_poller] add exceptions.py * [notarization_poller] add task.py * [notarization_poller] add config.py * [notarization_poller] add constants.py * .gitignore pip-wheel-metadata * [scriptworker_client] init_config changes * update old scriptworker comments, vars, and docstrings * address review comments * address review comments + fix bugs found while testing * moar review comments * frozendict->immutabledict; pin requirements * also pin notarization_poller * review comments * moar review comments * moar review comments
- Loading branch information
1 parent
75e06d9
commit bd93447
Showing
49 changed files
with
2,748 additions
and
16 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
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
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,5 @@ | ||
[run] | ||
branch = True | ||
omit = | ||
tests/* | ||
.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
update: all | ||
pin: True | ||
schedule: "every week on wednesday" |
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,24 @@ | ||
FROM python:3.7 | ||
|
||
RUN groupadd --gid 10001 app && \ | ||
useradd -g app --uid 10001 --shell /usr/sbin/nologin --create-home --home-dir /app app | ||
|
||
RUN apt-get update \ | ||
&& ln -s /app/docker.d/healthcheck /bin/healthcheck | ||
|
||
USER app | ||
WORKDIR /app | ||
|
||
COPY . /app | ||
|
||
RUN python -m venv /app \ | ||
&& cd notarization_poller \ | ||
&& /app/bin/pip install -r requirements/base.txt \ | ||
&& /app/bin/pip install . \ | ||
&& python -m venv /app/configloader_venv \ | ||
&& cd /app/configloader \ | ||
&& /app/configloader_venv/bin/pip install -r requirements/base.txt \ | ||
&& /app/configloader_venv/bin/pip install . \ | ||
&& cd /app | ||
|
||
CMD ["/app/docker.d/init.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
ARG PYTHON_VERSION | ||
|
||
FROM python:${PYTHON_VERSION} | ||
|
||
WORKDIR /app | ||
|
||
COPY MANIFEST.in setup.py tox.ini /app/ | ||
COPY requirements/ /app/requirements/ | ||
|
||
RUN pip install -r requirements/local.txt | ||
|
||
COPY src/ /app/src/ | ||
|
||
ENTRYPOINT ["/usr/local/bin/tox", "-e"] |
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,13 @@ | ||
Change Log | ||
========== | ||
|
||
All notable changes to this project will be documented in this file. | ||
This project adheres to `Semantic Versioning <http://semver.org/>`__. | ||
|
||
[Unreleased] - 2019-12-xx | ||
------------------------- | ||
|
||
Added | ||
~~~~~ | ||
|
||
- Initial ``notarization_poller`` deployment |
Oops, something went wrong.