Update to more recent Ubuntu LTS (#1575)

Move to Jammy LTS release of Ubuntu in an effort to fix the current
build behaviour on github.
This commit is contained in:
Darragh Bailey 2022-09-03 12:32:42 +01:00 committed by GitHub
parent d282a9dbd6
commit 42411eb005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
ARG VAGRANT_VERSION=2.3.0
FROM ubuntu:bionic as base
FROM ubuntu:jammy as base
RUN apt update \
&& apt install -y --no-install-recommends \
@ -12,7 +12,7 @@ RUN apt update \
git \
gosu \
kmod \
libvirt-bin \
libvirt-clients \
openssh-client \
qemu-utils \
rsync \
@ -38,7 +38,7 @@ FROM base as build
# allow caching of packages for build
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
RUN sed -i '/deb-src/s/^# //' /etc/apt/sources.list
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
RUN --mount=id=apt-cache-v1,type=cache,target=/var/cache/apt --mount=id=apt-lib-v1,type=cache,target=/var/lib/apt \
apt update \
&& apt build-dep -y \
vagrant \