-
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.
Various fixes and tweaks to make the library usable
- Loading branch information
1 parent
05893bb
commit ba352b7
Showing
7 changed files
with
31 additions
and
14 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
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,18 +1,25 @@ | ||
FROM python:3.12-alpine AS build | ||
RUN pip install uv && uv install tenint | ||
RUN pip install uv && uv pip install --system tenint | ||
RUN addgroup -S connector && adduser connector -S -G connector -h /connector | ||
|
||
ADD --chown=connector:connector ./ /connector/ | ||
|
||
RUN uv pip install --system -r /connector/pyproject.toml | ||
|
||
|
||
FROM build AS test | ||
WORKDIR /connector/ | ||
RUN uv pip install --system "tenint[testing]" \ | ||
&& uv pip install --system --extra testing -r /connector/pyproject.toml | ||
RUN ruff check | ||
RUN python -m pytest | ||
RUN uv export --format requirements-txt | uv tool run pip-audit | ||
RUN uv tool run \ | ||
--with "bandit[toml,baseline,sarif]" \ | ||
bandit -c pyproject.toml -r . -ll | ||
RUN tenint marketplace | ||
|
||
FROM build AS release | ||
WORKDIR /connector/ | ||
COPY --from=test --chown=connector:connector /connector/marketplace.json marketplace.json | ||
ENTRYPOINT ["python", "connector.py"] |
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