Skip to content

Commit ef28748

Browse files
committed
R4.2: add gentoo
1 parent fec162a commit ef28748

11 files changed

Lines changed: 84 additions & 1 deletion

dockerfiles/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ DOCKER_IMAGES ?= \
88
vm-bullseye \
99
vm-archlinux \
1010
vm-centos-stream8 \
11+
vm-gentoo \
1112
vm-jammy \
1213
vm-fc39 \
1314
vm-fc40 \

dockerfiles/vm-gentoo.Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM gentoo/stage3:latest
2+
3+
## TODO
4+
# - add notset(?) gentoo mirror keys
5+
# - add notset(?) gentoo repositories
6+
# - add package use (see https://github.com/QubesOS/qubes-builder-gentoo/blob/main/prepare-chroot-base#L149)
7+
# - install packages (see https://github.com/QubesOS/qubes-builder-gentoo/blob/main/prepare-chroot-base#L154)
8+
9+
# ArchLinux example as a reference:
10+
# RUN pacman-key --init && pacman-key --populate && pacman -Syu --noconfirm wget sudo
11+
# RUN wget -O /tmp/qubes-repo-archlinux-key.asc https://raw.githubusercontent.com/QubesOS/qubes-builderv2/main/qubesbuilder/plugins/chroot_archlinux/keys/qubes-repo-archlinux-key.asc
12+
# RUN pacman-key --add - < /tmp/qubes-repo-archlinux-key.asc
13+
# RUN pacman-key --lsign "$(gpg --with-colons --show-key /tmp/qubes-repo-archlinux-key.asc -| grep ^fpr: | cut -d : -f 10)"
14+
#
15+
# RUN printf '\
16+
# [qubes-r4.2-current-testing]\n\
17+
# Server = https://archlinux.qubes-os.org/r4.2/current-testing/vm/archlinux/pkgs\n\
18+
# [qubes-r4.2-current]\n\
19+
# Server = https://archlinux.qubes-os.org/r4.2/current/vm/archlinux/pkgs\n\
20+
# '\ >> /etc/pacman.conf
21+
#
22+
# RUN wget -O /usr/local/bin/faketime https://raw.githubusercontent.com/rustybird/realfaketime/main/faketime
23+
#
24+
# RUN useradd -m user

r4.2/gitlab-host-vm-openqa.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ r4.2:publish:repo:
77
- r4.2:build:vm-fc41
88
- r4.2:build:vm-fc42
99
- r4.2:build:vm-archlinux
10+
- r4.2:build:vm-gentoo
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
r4.2:build:vm-gentoo:
2+
extends: .r4.2_templates_build
3+
needs:
4+
- r4.2:prep:sources

r4.2/gitlab-vm-gentoo-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
r4.2:build:vm-gentoo:
2+
extends: .r4.2_components_build
3+
needs:
4+
- r4.2:prep:sources

r4.2/gitlab-vm-gentoo-chroot.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
chroot:vm-gentoo:
2+
extends: .chroot_prepare
3+
tags:
4+
- vm
5+
- long-living-job
6+
needs:
7+
- prep:sources
8+
variables:
9+
DISTS_VM: gentoo
10+
USE_QUBES_REPO_VERSION: "4.1"
11+
USE_QUBES_REPO_TESTING: "1"
12+
13+
# chroot:vm-gentoo-minimal:
14+
# extends: .chroot_prepare
15+
# tags:
16+
# - vm
17+
# - long-living-job
18+
# needs:
19+
# - prep:sources
20+
# variables:
21+
# DISTS_VM: gentoo+minimal
22+
# USE_QUBES_REPO_VERSION: "4.1"
23+
# USE_QUBES_REPO_TESTING: "1"
24+
#
25+
# chroot:vm-gentoo-xfce:
26+
# extends: .chroot_prepare
27+
# tags:
28+
# - vm
29+
# - long-living-job
30+
# needs:
31+
# - prep:sources
32+
# variables:
33+
# DISTS_VM: gentoo+xfce
34+
# USE_QUBES_REPO_VERSION: "4.1"
35+
# USE_QUBES_REPO_TESTING: "1"

r4.2/gitlab-vm-gentoo-install.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
r4.2:build:vm-gentoo:
2+
extends: .r4.2_components_install
3+
needs:
4+
- r4.2:prep:sources
5+
- r4.2:build:vm-gentoo

r4.2/gitlab-vm-gentoo.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include:
2+
- '/r4.2/gitlab-vm-gentoo-build.yml'
3+
- '/r4.2/gitlab-vm-gentoo-install.yml'

r4.2/gitlab-vm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ include:
33
- '/r4.2/gitlab-vm-debian.yml'
44
- '/r4.2/gitlab-vm-archlinux.yml'
55
- '/r4.2/gitlab-vm-ubuntu.yml'
6-
# - '/r4.2/gitlab-vm-gentoo.yml'
6+
- '/r4.2/gitlab-vm-gentoo.yml'

scripts/gitlab-builderv2.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ distributions:
4343
- vm-focal
4444
- vm-jammy
4545
- vm-noble
46+
- vm-gentoo
4647

4748
+templates:
4849
- fedora-40:
@@ -99,6 +100,8 @@ distributions:
99100
dist: centos-stream10
100101
- archlinux:
101102
dist: archlinux
103+
- gentoo:
104+
dist: gentoo
102105

103106
executor:
104107
type: docker

0 commit comments

Comments
 (0)