diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
| commit | 8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch) | |
| tree | efdc32587159d0050a69009bdf2330a531727d95 /bitbake/contrib/prserv | |
| parent | d412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff) | |
| download | poky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz | |
The poky repository master branch is no longer being updated.
You can either:
a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs
b) use the new bitbake-setup
You can find information about either approach in our documentation:
https://docs.yoctoproject.org/
Note that "poky" the distro setting is still available in meta-yocto as
before and we continue to use and maintain that.
Long live Poky!
Some further information on the background of this change can be found
in: https://lists.openembedded.org/g/openembedded-architecture/message/2179
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/contrib/prserv')
| -rw-r--r-- | bitbake/contrib/prserv/Dockerfile | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/bitbake/contrib/prserv/Dockerfile b/bitbake/contrib/prserv/Dockerfile deleted file mode 100644 index 9585fe3f07..0000000000 --- a/bitbake/contrib/prserv/Dockerfile +++ /dev/null | |||
| @@ -1,62 +0,0 @@ | |||
| 1 | # SPDX-License-Identifier: MIT | ||
| 2 | # | ||
| 3 | # Copyright (c) 2022 Daniel Gomez <daniel@qtec.com> | ||
| 4 | # | ||
| 5 | # Dockerfile to build a bitbake PR service container | ||
| 6 | # | ||
| 7 | # From the root of the bitbake repository, run: | ||
| 8 | # | ||
| 9 | # docker build -f contrib/prserv/Dockerfile . -t prserv | ||
| 10 | # | ||
| 11 | # Running examples: | ||
| 12 | # | ||
| 13 | # 1. PR Service in RW mode, port 18585: | ||
| 14 | # | ||
| 15 | # docker run --detach --tty \ | ||
| 16 | # --env PORT=18585 \ | ||
| 17 | # --publish 18585:18585 \ | ||
| 18 | # --volume $PWD:/var/lib/bbprserv \ | ||
| 19 | # prserv | ||
| 20 | # | ||
| 21 | # 2. PR Service in RO mode, default port (8585) and custom LOGFILE: | ||
| 22 | # | ||
| 23 | # docker run --detach --tty \ | ||
| 24 | # --env DBMODE="--read-only" \ | ||
| 25 | # --env LOGFILE=/var/lib/bbprserv/prservro.log \ | ||
| 26 | # --publish 8585:8585 \ | ||
| 27 | # --volume $PWD:/var/lib/bbprserv \ | ||
| 28 | # prserv | ||
| 29 | # | ||
| 30 | |||
| 31 | FROM alpine:3.14.4 | ||
| 32 | |||
| 33 | RUN apk add --no-cache python3 | ||
| 34 | |||
| 35 | COPY bin/bitbake-prserv /opt/bbprserv/bin/ | ||
| 36 | COPY lib/prserv /opt/bbprserv/lib/prserv/ | ||
| 37 | COPY lib/bb /opt/bbprserv/lib/bb/ | ||
| 38 | COPY lib/codegen.py /opt/bbprserv/lib/codegen.py | ||
| 39 | COPY lib/ply /opt/bbprserv/lib/ply/ | ||
| 40 | COPY lib/bs4 /opt/bbprserv/lib/bs4/ | ||
| 41 | |||
| 42 | ENV PATH=$PATH:/opt/bbprserv/bin | ||
| 43 | |||
| 44 | RUN mkdir -p /var/lib/bbprserv | ||
| 45 | |||
| 46 | ENV DBFILE=/var/lib/bbprserv/prserv.sqlite3 \ | ||
| 47 | LOGFILE=/var/lib/bbprserv/prserv.log \ | ||
| 48 | LOGLEVEL=debug \ | ||
| 49 | HOST=0.0.0.0 \ | ||
| 50 | PORT=8585 \ | ||
| 51 | DBMODE="" | ||
| 52 | |||
| 53 | ENTRYPOINT [ "/bin/sh", "-c", \ | ||
| 54 | "bitbake-prserv \ | ||
| 55 | --file=$DBFILE \ | ||
| 56 | --log=$LOGFILE \ | ||
| 57 | --loglevel=$LOGLEVEL \ | ||
| 58 | --start \ | ||
| 59 | --host=$HOST \ | ||
| 60 | --port=$PORT \ | ||
| 61 | $DBMODE \ | ||
| 62 | && tail -f $LOGFILE"] | ||
