Commit da62259 1 parent 20b043a commit da62259 Copy full SHA for da62259
File tree 3 files changed +11
-2
lines changed
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change
1
+ distro /
1
2
distro /* .tar. *
2
3
distro /rootfs_almalinux_ *
3
4
distro /rootfs.squashfs
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ msg() {
15
15
update_fresh_container () {
16
16
header " Upgrading and installing packages"
17
17
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq update -y > /dev/null
18
- sudo DEBIAN_FRONTEND=noninteractive apt-get -qq install dotnet-sdk-8.0 -y > /dev/null
18
+ sudo DEBIAN_FRONTEND=noninteractive apt-get -qq install dotnet-sdk-8.0 make \
19
+ gcc g++ autoconf automake m4 libtool -y > /dev/null
19
20
20
21
if [ $? -ne 0 ]; then
21
22
exit 32
Original file line number Diff line number Diff line change @@ -92,10 +92,17 @@ build_image_in_container() {
92
92
lxc image delete ${IMAGE_ALIAS} 2> /dev/null
93
93
94
94
msg " Runner build complete. Creating image snapshot."
95
- lxc publish " ${BUILD_CONTAINER} " -f --alias " ${IMAGE_ALIAS} " description=" GitHub Actions ${OS_NAME} ${OS_VERSION} Runner for ${ARCH} "
95
+ lxc snapshot " ${BUILD_CONTAINER} " " build-snapshot"
96
+ lxc publish " ${BUILD_CONTAINER} /build-snapshot" -f --alias " ${IMAGE_ALIAS} " \
97
+ --compression none \
98
+ description=" GitHub Actions ${OS_NAME} ${OS_VERSION} Runner for ${ARCH} "
96
99
97
100
msg " Export the image to ${EXPORT} for use elsewhere"
98
101
lxc image export " ${IMAGE_ALIAS} " ${EXPORT}
102
+
103
+ msg " Priming the filesystem by launching the newly built container"
104
+ lxc launch " ${IMAGE_ALIAS} " " primer"
105
+ lxc rm -f primer
99
106
else
100
107
msg " Build process failed with RC: $? - review log to determine cause of failure" >&2
101
108
fi
You can’t perform that action at this time.
0 commit comments