File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 32
32
- { dockerfile: 'Dockerfile-OpenSuse-latest', tag: 'opensuse:latest' }
33
33
- { dockerfile: 'Dockerfile-Arch', tag: 'arch:latest' }
34
34
- { dockerfile: 'Dockerfile-Debian', tag: 'debian:latest' }
35
+ - { dockerfile: 'Dockerfile-Gentoo', tag: 'gentoo:latest' }
35
36
steps :
36
37
- name : Check out the repo
37
38
uses : actions/checkout@v2
Original file line number Diff line number Diff line change 16
16
- " arch"
17
17
- " debian"
18
18
- " opensuse"
19
+ - " gentoo"
19
20
20
21
jobs :
21
22
test :
Original file line number Diff line number Diff line change
1
+ FROM docker.io/gentoo/portage:latest as portage
2
+
3
+ # kernel and its dependencies in a separate builder
4
+ FROM docker.io/gentoo/stage3:musl as kernel
5
+ COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo
6
+ RUN emerge -qv virtual/dist-kernel
7
+
8
+ FROM docker.io/gentoo/stage3:musl
9
+ COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo
10
+ COPY --from=kernel /boot /boot
11
+ COPY --from=kernel /lib/modules /lib/modules
12
+
13
+ MAINTAINER https://github.com/dracutdevs/dracut
14
+
15
+ ENV container docker
16
+ LABEL RUN="docker run -it --name NAME --privileged --ipc=host --net=host --pid=host -e NAME=NAME -e IMAGE=IMAGE IMAGE"
17
+
18
+ RUN echo 'export DRACUT_NO_XATTR=1 KVERSION=$(cd /lib/modules; ls -1 | tail -1)' > /etc/profile.d/dracut-test.sh
19
+
20
+ # Install needed packages for the dracut CI container
21
+ RUN emerge -qv \
22
+ app-arch/cpio \
23
+ app-emulation/qemu \
24
+ app-shells/dash \
25
+ sys-apps/busybox \
26
+ sys-fs/btrfs-progs \
27
+ sys-fs/squashfs-tools \
28
+ && rm -rf /var/cache/* /usr/share/doc/* /usr/share/man/* /var/db/repos/gentoo
29
+
30
+ # Set default command
31
+ CMD ["/usr/bin/bash"]
You can’t perform that action at this time.
0 commit comments