diff options
| author | sickcodes <[email protected]> | 2021-10-31 00:09:09 +0000 |
|---|---|---|
| committer | sickcodes <[email protected]> | 2021-10-31 00:09:09 +0000 |
| commit | e6fcfd86dbbb9854ceefe82b49b957edfa19c52b (patch) | |
| tree | 64d8d2045df8d4fbc3d59cdd07319d7f30fc0dd0 /Dockerfile.auto | |
| parent | Opencore --> OpenCore (typo...) (diff) | |
| download | docker-osx-e6fcfd86dbbb9854ceefe82b49b957edfa19c52b.tar.xz docker-osx-e6fcfd86dbbb9854ceefe82b49b957edfa19c52b.zip | |
libguestfs games
Diffstat (limited to 'Dockerfile.auto')
| -rw-r--r-- | Dockerfile.auto | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/Dockerfile.auto b/Dockerfile.auto index c2666b7..f9ee9b9 100644 --- a/Dockerfile.auto +++ b/Dockerfile.auto @@ -104,17 +104,13 @@ ENV KERNEL_PACKAGE_URL=https://archive.archlinux.org/packages/l/linux/linux-5.12 ENV KERNEL_HEADERS_PACKAGE_URL=https://archive.archlinux.org/packages/l/linux/linux-headers-5.12.14.arch1-1-x86_64.pkg.tar.zst ENV LIBGUESTFS_PACKAGE_URL=https://archive.archlinux.org/packages/l/libguestfs/libguestfs-1.44.1-6-x86_64.pkg.tar.zst -ARG LINUX=true - -# required to use libguestfs inside a docker container, to create bootdisks for docker-osx on-the-fly -RUN if [[ "${LINUX}" == true ]]; then \ - sudo pacman -U "${KERNEL_PACKAGE_URL}" --noconfirm \ - ; sudo pacman -U "${LIBGUESTFS_PACKAGE_URL}" --noconfirm \ - ; sudo pacman -U "${KERNEL_HEADERS_PACKAGE_URL}" --noconfirm \ - ; sudo pacman -S mkinitcpio --noconfirm \ - ; sudo libguestfs-test-tool \ - ; sudo rm -rf /var/tmp/.guestfs-* \ - ; fi +RUN sudo pacman -Syy \ + && sudo pacman -Rns linux --noconfirm \ + ; sudo pacman -S mkinitcpio --noconfirm \ + && sudo pacman -U "${KERNEL_PACKAGE_URL}" --noconfirm \ + && sudo pacman -U "${LIBGUESTFS_PACKAGE_URL}" --noconfirm \ + && rm -rf /var/tmp/.guestfs-* \ + ; libguestfs-test-tool || exit 1 #### |