Skip to content

Commit

Permalink
Create a separate rootfs image for Yggdrasil (#243)
Browse files Browse the repository at this point in the history
* Create a separate rootfs image for Yggdrasil

* The Yggdrasil image does not require any custom locales

* Upgrade from `libicu63` to `libicu67`
  • Loading branch information
DilumAluthge authored Jan 18, 2023
1 parent 7a06704 commit 939120f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ jobs:
# The `xvfb` image is used in the CI for the PkgEval.jl repo
- 'xvfb.aarch64'
- 'xvfb.x86_64'

# The `yggdrasil` image is used in the CI for the Yggdrasil repo
- 'yggdrasil.x86_64'
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
Expand Down
37 changes: 37 additions & 0 deletions linux/yggdrasil.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using RootfsUtils: parse_build_args, upload_gha, test_sandbox
using RootfsUtils: debootstrap
using RootfsUtils: root_chroot

args = parse_build_args(ARGS, @__FILE__)
arch = args.arch
archive = args.archive
image = args.image

packages = [
"apt-transport-https",
"bzip2",
"curl",
"expect",
"git",
"gnupg2",
"iproute2",
"jq",
"libgomp1",
"libicu67",
"localepurge",
"locales",
"openssh-client",
"openssl",
"p7zip",
"python3",
"ssh",
"unzip",
"vim",
"wget",
"xz-utils",
"zstd",
]

artifact_hash, tarball_path, = debootstrap(arch, image; archive, packages)
upload_gha(tarball_path)
test_sandbox(artifact_hash)

0 comments on commit 939120f

Please sign in to comment.