diff options
author | Chris Evich <cevich@redhat.com> | 2020-04-15 12:01:23 -0400 |
---|---|---|
committer | Chris Evich <cevich@redhat.com> | 2020-04-24 08:22:50 -0400 |
commit | 97ecd21b59fd6cd3b45cf1742f60eff6d32eef3d (patch) | |
tree | 54c7d6fc02cbcd71d1de8e215780fa6aee68a58a /Dockerfile.ubuntu | |
parent | 2c457a632c73cad3acfd5946633e67ef26211b34 (diff) | |
download | podman-97ecd21b59fd6cd3b45cf1742f60eff6d32eef3d.tar.gz podman-97ecd21b59fd6cd3b45cf1742f60eff6d32eef3d.tar.bz2 podman-97ecd21b59fd6cd3b45cf1742f60eff6d32eef3d.zip |
Cirrus: Unify package installation
Also, test-build critical container images depended upon for
CI-purposes.
Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'Dockerfile.ubuntu')
-rw-r--r-- | Dockerfile.ubuntu | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu new file mode 100644 index 000000000..3a8f837b9 --- /dev/null +++ b/Dockerfile.ubuntu @@ -0,0 +1,29 @@ +# Must resemble $UBUNTU_BASE_IMAGE in ./contrib/cirrus/lib.sh +FROM ubuntu:latest + +# This container image is intended for building and testing libpod +# from inside a container environment. It is assumed that the source +# to be tested will overwrite $GOSRC (below) at runtime. +ENV GOPATH=/var/tmp/go +ENV GOSRC=$GOPATH/src/github.com/containers/libpod +ENV SCRIPT_BASE=./contrib/cirrus +ENV PACKER_BASE=$SCRIPT_BASE/packer + +RUN export DEBIAN_FRONTEND="noninteractive" && \ + apt-get -qq update --yes && \ + apt-get -qq upgrade --yes && \ + apt-get -qq install curl git && \ + apt-get -qq autoremove --yes && \ + rm -rf /var/cache/apt + +# Only add minimal tooling necessary to complete setup. +ADD / $GOSRC +WORKDIR $GOSRC + +# Re-use repositories and package setup as in VMs under CI +RUN bash $PACKER_BASE/ubuntu_packaging.sh && \ + apt-get -qq autoremove --yes && \ + rm -rf /var/cache/apt + +# Mirror steps taken under CI +RUN bash -c 'source $GOSRC/$SCRIPT_BASE/lib.sh && install_test_configs' |