From: "Magnus Granberg" <zorry@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/tinderbox-cluster:master commit in: docker/
Date: Thu, 14 Jul 2022 00:29:30 +0000 (UTC) [thread overview]
Message-ID: <1657758556.51ab5319f6134dd57b74e4cc7a94caacd9941e83.zorry@gentoo> (raw)
commit: 51ab5319f6134dd57b74e4cc7a94caacd9941e83
Author: Magnus Granberg <zorry <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 14 00:29:16 2022 +0000
Commit: Magnus Granberg <zorry <AT> gentoo <DOT> org>
CommitDate: Thu Jul 14 00:29:16 2022 +0000
URL: https://gitweb.gentoo.org/proj/tinderbox-cluster.git/commit/?id=51ab5319
Add docker file for log docker image
Signed-off-by: Magnus Granberg <zorry <AT> gentoo.org>
docker/GentooBuildbotWorkerDefault.Dockerfile | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/docker/GentooBuildbotWorkerDefault.Dockerfile b/docker/GentooBuildbotWorkerDefault.Dockerfile
new file mode 100644
index 0000000..7e1a63b
--- /dev/null
+++ b/docker/GentooBuildbotWorkerDefault.Dockerfile
@@ -0,0 +1,26 @@
+# name the portage image
+FROM gentoo/portage:latest as portage
+
+# based on stage3 image
+FROM gentoo/stage3:latest
+
+# copy the entire portage volume in
+COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo
+
+# Setup portage
+# emerge needed deps buildbot-worker, psycopg and sqlalchemy
+# get the needed buildbot-worker config
+RUN echo -e "[binhost]\npriority = 9999\nsync-uri = https://gentoo.osuosl.org/experimental/amd64/binpkg/default/linux/17.1/x86-64/\n" | cat >> /etc/portage/binrepos.conf\
+ && echo 'EMERGE_DEFAULT_OPTS="--binpkg-respect-use=n --usepkg=y --getbinpkg=y --autounmask-write --autounmask-continue --autounmask-keep-keywords=y --autounmask-use=y"' | cat >> /etc/portage/make.conf\
+ && echo 'FEATURES="-ipc-sandbox -pid-sandbox -network-sandbox -usersandbox -mount-sandbox -sandbox"' | cat >> /etc/portage/make.conf\
+ && echo 'FEATURES="${FEATURES} parallel-install parallel-fetch -merge-sync"' | cat >> /etc/portage/make.conf\
+ && echo 'FEATURES="${FEATURES} buildpkg"' | cat >> /etc/portage/make.conf\
+ && echo 'MAKEOPTS="-j8"' | cat >> /etc/portage/make.conf\
+ && echo 'dev-util/buildbot-worker' | cat >> /etc/portage/package.accept_keywords/buildbot\
+ && emerge -qv buildbot-worker sqlalchemy dev-python/psycopg rust-bin\
+ && wget https://raw.githubusercontent.com/buildbot/buildbot/master/worker/docker/buildbot.tac\
+ && cp buildbot.tac /var/lib/buildbot_worker/buildbot.tac
+
+WORKDIR /var/lib/buildbot_worker
+ENTRYPOINT ["/usr/bin/buildbot-worker"]
+CMD ["start", "--nodaemon"]
next reply other threads:[~2022-07-14 6:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-14 0:29 Magnus Granberg [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-08-18 14:50 [gentoo-commits] proj/tinderbox-cluster:master commit in: docker/ Magnus Granberg
2022-10-05 9:06 Magnus Granberg
2023-05-08 20:19 Magnus Granberg
2023-06-07 21:33 Magnus Granberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1657758556.51ab5319f6134dd57b74e4cc7a94caacd9941e83.zorry@gentoo \
--to=zorry@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox