Skip to content

Commit

Permalink
refactor: use portage Docker image to reduce infra load
Browse files Browse the repository at this point in the history
  • Loading branch information
KSmanis committed Oct 15, 2023
1 parent df90c09 commit fd25c2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .renovaterc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"docker"
],
"matchPackageNames": [
"ksmanis/gentoo-distcc"
"ksmanis/gentoo-distcc",
"ksmanis/portage"
],
"pinDigests": false
},
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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; \
Expand Down

0 comments on commit fd25c2a

Please sign in to comment.