From fd25c2a704d82e640209550d7535a1d45c97864d Mon Sep 17 00:00:00 2001 From: Konstantinos Smanis Date: Sun, 15 Oct 2023 16:45:55 +0300 Subject: [PATCH] refactor: use portage Docker image to reduce infra load --- .renovaterc.json | 3 ++- Dockerfile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.renovaterc.json b/.renovaterc.json index 661ca37..437c19f 100644 --- a/.renovaterc.json +++ b/.renovaterc.json @@ -9,7 +9,8 @@ "docker" ], "matchPackageNames": [ - "ksmanis/gentoo-distcc" + "ksmanis/gentoo-distcc", + "ksmanis/portage" ], "pinDigests": false }, diff --git a/Dockerfile b/Dockerfile index bba4f5e..3401b7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ # syntax=docker/dockerfile:1.2 FROM ksmanis/stage3:20231009@sha256:dfacaaba621b54aa887dc6d08f50157c3d61896423d69d4b07c60d77c2d74b25 AS distcc-builder RUN --mount=type=bind,from=ksmanis/gentoo-distcc:tcp,source=/var/cache/binpkgs,target=/cache \ + --mount=type=bind,from=ksmanis/portage,source=/var/db/repos/gentoo,target=/var/db/repos/gentoo \ set -eux; \ cp -av /cache/. /var/cache/binpkgs; \ export EMERGE_DEFAULT_OPTS="--buildpkg --color=y --quiet-build --tree --usepkg --verbose"; \ - emerge-webrsync; \ emerge --info; \ emerge distcc; \ distcc --version; \