summaryrefslogtreecommitdiff
path: root/ci/ci-ubuntu-1804.Dockerfile
diff options
context:
space:
mode:
authorAndrea Bolognani <abologna@redhat.com>2020-05-28 17:24:47 +0200
committerAndrea Bolognani <abologna@redhat.com>2020-05-28 18:58:45 +0200
commitff1812e0c538f15bc192403782e92aa452147771 (patch)
tree6ea70eec9212f1240050ffc984fc2b0624c85323 /ci/ci-ubuntu-1804.Dockerfile
parent6fa7e99953652e825c47e527389b7b1ee5e51b33 (diff)
downloadlibosinfo-ff1812e0c538f15bc192403782e92aa452147771.tar.gz
ci: Use GitLab container registry
Instead of using pre-built containers hosted on Quay, build containers as part of the GitLab CI pipeline and upload them to the GitLab container registry for later use. This does not slow down builds, because containers are only rebuilt when the corresponding Dockerfile has been modified. Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Diffstat (limited to 'ci/ci-ubuntu-1804.Dockerfile')
-rw-r--r--ci/ci-ubuntu-1804.Dockerfile72
1 files changed, 72 insertions, 0 deletions
diff --git a/ci/ci-ubuntu-1804.Dockerfile b/ci/ci-ubuntu-1804.Dockerfile
new file mode 100644
index 0000000..6cd6f74
--- /dev/null
+++ b/ci/ci-ubuntu-1804.Dockerfile
@@ -0,0 +1,72 @@
+FROM ubuntu:18.04
+
+RUN export DEBIAN_FRONTEND=noninteractive && \
+ apt-get update && \
+ apt-get dist-upgrade -y && \
+ apt-get install --no-install-recommends -y \
+ autoconf \
+ automake \
+ autopoint \
+ bash \
+ bash-completion \
+ ca-certificates \
+ ccache \
+ check \
+ chrony \
+ gcc \
+ gdb \
+ gettext \
+ git \
+ gtk-doc-tools \
+ hwdata \
+ intltool \
+ itstool \
+ libarchive-dev \
+ libc6-dev \
+ libgirepository1.0-dev \
+ libglib2.0-dev \
+ libjson-glib-dev \
+ libsoup2.4-dev \
+ libtool \
+ libtool-bin \
+ libxml2-dev \
+ libxml2-utils \
+ libxslt1-dev \
+ locales \
+ lsof \
+ make \
+ net-tools \
+ ninja-build \
+ patch \
+ perl \
+ pkgconf \
+ python3 \
+ python3-lxml \
+ python3-pip \
+ python3-pytest \
+ python3-requests \
+ python3-setuptools \
+ python3-wheel \
+ screen \
+ strace \
+ sudo \
+ valac \
+ vim && \
+ apt-get autoremove -y && \
+ apt-get autoclean -y && \
+ sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
+ dpkg-reconfigure locales && \
+ mkdir -p /usr/libexec/ccache-wrappers && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/$(basename /usr/bin/gcc)
+
+RUN pip3 install \
+ meson==0.49.0
+
+ENV LANG "en_US.UTF-8"
+
+ENV MAKE "/usr/bin/make"
+ENV NINJA "/usr/bin/ninja"
+ENV PYTHON "/usr/bin/python3"
+
+ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"