Skip to content

Commit

Permalink
Merge branch 'ubuntu-22.04' into rework_add-networking-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
clay-lake authored Oct 31, 2024
2 parents c1258fd + b00a016 commit 2822efa
Show file tree
Hide file tree
Showing 15 changed files with 210 additions and 16 deletions.
1 change: 1 addition & 0 deletions chisel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ format: v1

archives:
ubuntu:
default: true
version: 22.04
components: [main, universe]
suites: [jammy, jammy-security, jammy-updates]
Expand Down
7 changes: 7 additions & 0 deletions slices/base-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ slices:
/etc/os-release:
/usr/lib/os-release:

# Dedicated slice for generating the Chisel manifest.
chisel:
essential:
- base-files_var
contents:
/var/lib/chisel/**: {generate: manifest}

copyright:
contents:
/usr/share/doc/base-files/copyright:
22 changes: 22 additions & 0 deletions slices/crun.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package: crun

essential:
- crun_copyright

slices:
bins:
essential:
- crun_libs
- libc6_libs
- libcap2_libs
- libseccomp2_libs
- libsystemd0_libs
- libyajl2_libs
contents:
/usr/bin/crun:
libs:
contents:
/usr/lib/*-linux-*/libcrun.a:
copyright:
contents:
/usr/share/doc/crun/copyright:
12 changes: 12 additions & 0 deletions slices/libaudit-common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package: libaudit-common

essential:
- libaudit-common_copyright

slices:
config:
contents:
/etc/libaudit.conf:
copyright:
contents:
/usr/share/doc/libaudit-common/copyright:
16 changes: 16 additions & 0 deletions slices/libaudit1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package: libaudit1

essential:
- libaudit1_copyright

slices:
libs:
essential:
- libaudit-common_config
- libc6_libs
- libcap-ng0_libs
contents:
/lib/*-linux-*/libaudit.so.1*:
copyright:
contents:
/usr/share/doc/libaudit1/copyright:
14 changes: 14 additions & 0 deletions slices/libcap-ng0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package: libcap-ng0

essential:
- libcap-ng0_copyright

slices:
libs:
essential:
- libc6_libs
contents:
/lib/*-linux-*/libcap-ng.so.0*:
copyright:
contents:
/usr/share/doc/libcap-ng0/copyright:
14 changes: 14 additions & 0 deletions slices/libcap2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package: libcap2

essential:
- libcap2_copyright

slices:
libs:
essential:
- libc6_libs
contents:
/lib/*-linux-*/libcap.so.2*:
copyright:
contents:
/usr/share/doc/libcap2/copyright:
14 changes: 14 additions & 0 deletions slices/liblz4-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package: liblz4-1

essential:
- liblz4-1_copyright

slices:
libs:
essential:
- libc6_libs
contents:
/usr/lib/*-linux-*/liblz4.so.1*:
copyright:
contents:
/usr/share/doc/liblz4-1/copyright:
14 changes: 14 additions & 0 deletions slices/libseccomp2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package: libseccomp2

essential:
- libseccomp2_copyright

slices:
libs:
essential:
- libc6_libs
contents:
/usr/lib/*-linux-*/libseccomp.so.2*:
copyright:
contents:
/usr/share/doc/libseccomp2/copyright:
19 changes: 19 additions & 0 deletions slices/libsystemd0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package: libsystemd0

essential:
- libsystemd0_copyright

slices:
libs:
essential:
- libc6_libs
- libcap2_libs
- libgcrypt20_libs
- liblz4-1_libs
- liblzma5_libs
- libzstd1_libs
contents:
/usr/lib/*-linux-*/libsystemd.so.0*:
copyright:
contents:
/usr/share/doc/libsystemd0/copyright:
14 changes: 14 additions & 0 deletions slices/libyajl2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package: libyajl2

essential:
- libyajl2_copyright

slices:
libs:
essential:
- libc6_libs
contents:
/usr/lib/*-linux-*/libyajl.so.2*:
copyright:
contents:
/usr/share/doc/libyajl2/copyright:
42 changes: 29 additions & 13 deletions slices/openjdk-8-jre-headless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ slices:
- libc6_libs
- libgcc-s1_libs
- libstdc++6_libs
- openjdk-8-jre-headless_client-vm
- openjdk-8-jre-headless_server-vm
- zlib1g_libs
contents:
/etc/java-8-openjdk/calendars.properties:
Expand All @@ -20,8 +22,6 @@ slices:
# various classes and how they can interact with the system.
/etc/java-8-openjdk/security/java.policy:
/usr/lib/jvm/java-8-openjdk-*/jre/bin/java:
/usr/lib/jvm/java-8-openjdk-*/jre/lib/*/client/libjsig.so: {arch: armhf}
/usr/lib/jvm/java-8-openjdk-*/jre/lib/*/client/libjvm.so: {arch: armhf}
/usr/lib/jvm/java-8-openjdk-*/jre/lib/*/jli/libjli.so:
/usr/lib/jvm/java-8-openjdk-*/jre/lib/*/jvm.cfg-default:
/usr/lib/jvm/java-8-openjdk-*/jre/lib/*/libjava.so:
Expand All @@ -30,17 +30,6 @@ slices:
/usr/lib/jvm/java-8-openjdk-*/jre/lib/*/libnio.so:
/usr/lib/jvm/java-8-openjdk-*/jre/lib/*/libverify.so:
/usr/lib/jvm/java-8-openjdk-*/jre/lib/*/libzip.so:
/usr/lib/jvm/java-8-openjdk-*/jre/lib/*/server/libjsig.so:
arch:
- amd64
- arm64
- ppc64el
/usr/lib/jvm/java-8-openjdk-*/jre/lib/*/server/libjvm.so:
arch:
- amd64
- arm64
- ppc64el
- s390x
/usr/lib/jvm/java-8-openjdk-*/jre/lib/calendars.properties:
/usr/lib/jvm/java-8-openjdk-*/jre/lib/content-types.properties:
/usr/lib/jvm/java-8-openjdk-*/jre/lib/currency.data:
Expand All @@ -53,6 +42,33 @@ slices:
/usr/lib/jvm/java-8-openjdk-*/jre/lib/security/java.policy:
/usr/lib/jvm/java-8-openjdk-*/jre/lib/tzdb.dat:

client-vm:
essential:
- libc6_libs
- libgcc-s1_libs
- libstdc++6_libs
contents:
/usr/lib/jvm/java-8-openjdk-*/jre/lib/*/client/libjsig.so: {arch: armhf}
/usr/lib/jvm/java-8-openjdk-*/jre/lib/*/client/libjvm.so: {arch: armhf}

server-vm:
essential:
- libc6_libs
- libgcc-s1_libs
- libstdc++6_libs
contents:
/usr/lib/jvm/java-8-openjdk-*/jre/lib/*/server/libjsig.so:
arch:
- amd64
- arm64
- ppc64el
/usr/lib/jvm/java-8-openjdk-*/jre/lib/*/server/libjvm.so:
arch:
- amd64
- arm64
- ppc64el
- s390x

locale:
essential:
- openjdk-8-jre-headless_core
Expand Down
17 changes: 17 additions & 0 deletions slices/uidmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package: uidmap

essential:
- uidmap_copyright

slices:
bins:
essential:
- libaudit1_libs
- libc6_libs
- libselinux1_libs
contents:
/usr/bin/newgidmap:
/usr/bin/newuidmap:
copyright:
contents:
/usr/share/doc/uidmap/copyright:
6 changes: 3 additions & 3 deletions spread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,16 @@ backends:
prepare: |
# Deb arch to GOARCH
arch="$(dpkg --print-architecture | sed -e 's/armhf/arm/g' -e 's/ppc64el/ppc64le/g')"
chisel_tar="chisel.tar.gz"
apt install -y curl wget
curl -s https://api.github.com/repos/canonical/chisel/releases/latest \
| awk "/browser_download_url/ && /chisel_v/ && /$arch/" \
| cut -d : -f 2,3 \
| tr -d \" \
| xargs wget -O $chisel_tar
| xargs wget
tar -xf $chisel_tar -C /usr/local/bin
sha384sum -c chisel_v*sha384
tar -xf chisel_v*tar.gz -C /usr/local/bin
prepare-each: chisel version

Expand Down
14 changes: 14 additions & 0 deletions tests/spread/integration/crun/task.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
summary: Integration tests for crun

execute: |
rootfs="$(install-slices crun_bins)"
# crun needs proc mounted
mkdir "${rootfs}"/proc
mount --bind /proc "${rootfs}"/proc
chroot "$rootfs" crun --help
chroot "$rootfs" crun list
chroot "$rootfs" crun spec
test -f "$rootfs"/config.json

0 comments on commit 2822efa

Please sign in to comment.