generated from MinBZK/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
162 changed files
with
318 additions
and
274 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,8 +33,8 @@ pytestdebug.log | |
# macos | ||
.DS_Store | ||
|
||
# tad tool | ||
tad.log* | ||
# amt tool | ||
amt.log* | ||
database.sqlite3 | ||
output/ | ||
|
||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ LABEL [email protected] \ | |
organization=MinBZK \ | ||
license=EUPL-1.2 \ | ||
org.opencontainers.image.description="Transparency of Algorithmic Decision making" \ | ||
org.opencontainers.image.source=https://github.com/MinBZK/tad \ | ||
org.opencontainers.image.source=https://github.com/MinBZK/amt \ | ||
org.opencontainers.image.licenses=EUPL-1.2 | ||
|
||
ENV PYTHONUNBUFFERED=1 \ | ||
|
@@ -32,7 +32,7 @@ ENV PATH="/app/.venv/bin:$PATH" | |
|
||
FROM project-base AS development | ||
|
||
COPY ./tad/ ./tad/ | ||
COPY amt/ ./amt/ | ||
COPY ./tests/ ./tests/ | ||
COPY ./script/ ./script/ | ||
COPY ./README.md ./README.md | ||
|
@@ -50,20 +50,20 @@ RUN coverage report | |
|
||
FROM project-base AS production | ||
|
||
RUN groupadd tad && \ | ||
adduser --uid 100 --system --ingroup tad tad | ||
RUN groupadd amt && \ | ||
adduser --uid 100 --system --ingroup amt amt | ||
|
||
#todo(berry): create log folder so permissions can be set to root:root | ||
# currenlt problem is that i could not get the logger to accept a path in the filerotate handler | ||
RUN chown tad:tad /app/ | ||
RUN chown amt:amt /app/ | ||
|
||
USER tad | ||
USER amt | ||
|
||
COPY --chown=root:root --chmod=755 ./tad /app/tad | ||
COPY --chown=root:root --chmod=755 amt /app/amt | ||
COPY --chown=root:root --chmod=755 alembic.ini /app/alembic.ini | ||
COPY --chown=root:root --chmod=755 prod.env /app/.env | ||
COPY --chown=root:root --chmod=755 LICENSE /app/LICENSE | ||
COPY --chown=tad:tad --chmod=755 docker-entrypoint.sh /app/docker-entrypoint.sh | ||
COPY --chown=amt:amt --chmod=755 docker-entrypoint.sh /app/docker-entrypoint.sh | ||
|
||
ENV PYTHONPATH=/app/ | ||
WORKDIR /app/ | ||
|
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
File renamed without changes.
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,4 +1,4 @@ | ||
from tad.cli import check_state | ||
from amt.cli import check_state | ||
|
||
if __name__ == "__main__": | ||
check_state.get_tasks_by_priority() |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
Oops, something went wrong.