mirror of
https://github.com/containers/podman.git
synced 2025-06-02 02:26:52 +08:00

Also, test-build critical container images depended upon for CI-purposes. Signed-off-by: Chris Evich <cevich@redhat.com>
30 lines
999 B
Docker
30 lines
999 B
Docker
# 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'
|