Skip to content

Commit 336d713

Browse files
committed
run pkg_in_pipe in docker
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
1 parent ccfe71f commit 336d713

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

scripts/pkg_in_pipe/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM fedora:41
2+
RUN dnf install -y koji python3-requests python3-pip
3+
RUN pip install specfile
4+
ADD pkg_in_pipe.py /
5+
ENTRYPOINT ["/pkg_in_pipe.py"]

scripts/pkg_in_pipe/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,22 @@ Generates an html report with the packages in the current tags.
55
# Requirements
66

77
An environmnt variable `PLANE_TOKEN` must be defined when running the generator.
8+
9+
# Run in docker
10+
11+
Before running in docker, the docker image must be built with:
12+
13+
```sh
14+
docker build -t pkg_in_pipe .
15+
```
16+
17+
Several options are required to run the generator in docker:
18+
19+
* a `PLANE_TOKEN` environment variable with the rights required to request all the cards in the XCPNG project;
20+
* a (read only) mount of a directory containing the requeried certificates to connect to koji in `/root/.koji`
21+
* a mount of the output directory in `/output`
22+
* the path of the generated report
23+
24+
```sh
25+
docker run -v ~/.koji:/root/.koji:z -e PLANE_TOKEN=<plane token> -v /out/dir:/output:z pkg_in_pipe /output/index.html
26+
```

0 commit comments

Comments
 (0)