-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sylvain Hellegouarch <[email protected]>
- Loading branch information
Showing
18 changed files
with
2,706 additions
and
235 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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
* | ||
!requirements.txt | ||
!py12-linux.lock | ||
!pyproject.toml | ||
!README.md | ||
!chaosreport |
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 |
---|---|---|
|
@@ -114,4 +114,8 @@ junit-test-results.xml | |
|
||
|
||
journal*.json | ||
report.* | ||
report.* | ||
.ruff_cache/ | ||
.pytest_cache/ | ||
.pdm-build/ | ||
.pdm-python |
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,20 +1,20 @@ | ||
FROM ubuntu:latest | ||
FROM ubuntu:24.04 | ||
|
||
LABEL maintainer="chaostoolkit <[email protected]>" | ||
# you can overwrite this otherwise just leave it as-is as placeholder for | ||
# pdm to be happy | ||
ARG PDM_BUILD_SCM_VERSION=0.0.0 | ||
|
||
RUN groupadd -g 1001 svc && useradd -r -u 1001 -g svc svc | ||
WORKDIR /home/svc | ||
COPY . /home/svc | ||
|
||
ADD requirements.txt requirements.txt | ||
RUN export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get update && \ | ||
apt-get install -y python3 \ | ||
python3-pip \ | ||
texlive-latex-base \ | ||
texlive-fonts-recommended \ | ||
texlive-latex-extra \ | ||
curl \ | ||
pandoc && \ | ||
pip install --no-cache-dir -U pip && \ | ||
pip install --no-cache-dir -r requirements.txt && \ | ||
pip install --no-cache-dir -U chaostoolkit chaostoolkit-reporting && \ | ||
apt-get update -y && \ | ||
apt-get install -y --no-install-recommends build-essential curl gcc texlive-latex-base texlive-fonts-recommended texlive-latex-extra pandoc && \ | ||
apt-get install -y python3.12 python3.12-dev python3-pip python3.12-venv && \ | ||
curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3 - && \ | ||
export PATH=/root/.local/bin:$PATH && \ | ||
pdm install -v --prod -G ctk --no-editable --lock /py12-linux.lock && \ | ||
apt autoremove && \ | ||
apt autoclean && \ | ||
rm -rf /var/lib/apt/lists/* /var/cache/apt/* | ||
|
@@ -23,5 +23,5 @@ ENV MPLCONFIGDIR=/tmp/result/ | |
VOLUME /tmp/result | ||
WORKDIR /tmp/result | ||
|
||
ENTRYPOINT ["/usr/local/bin/chaos"] | ||
ENTRYPOINT ["/home/svc/.venv/bin/chaos"] | ||
CMD ["report", "--export-format=pdf", "/tmp/result/journal.json", "/tmp/result/report.pdf"] |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.