diff options
author | Oliver Smith <osmith@sysmocom.de> | 2021-12-10 11:39:28 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2021-12-11 15:16:54 +0000 |
commit | db275974b8a3a119ab5576ce6306202a4c8c59f6 (patch) | |
tree | f34d824ccd6a12e2b24637b24105ebb42d2bf8df /centos7-build | |
parent | 39ae7ed2f3de4c0a43a8621db14b5356425bbb75 (diff) |
Add centos7 containers
Related: SYS#5754
Change-Id: Iadf3d0d7143c2d81ea5e87fd07a3f4cd9239cb46
Diffstat (limited to 'centos7-build')
-rw-r--r-- | centos7-build/Dockerfile | 65 | ||||
-rw-r--r-- | centos7-build/Makefile | 3 |
2 files changed, 68 insertions, 0 deletions
diff --git a/centos7-build/Dockerfile b/centos7-build/Dockerfile new file mode 100644 index 0000000..2e04efb --- /dev/null +++ b/centos7-build/Dockerfile @@ -0,0 +1,65 @@ +ARG REGISTRY=docker.io +ARG UPSTREAM_DISTRO=centos:centos7 +FROM ${REGISTRY}/${UPSTREAM_DISTRO} +# Arguments used after FROM must be specified again +ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org" +ARG OSMOCOM_REPO_PATH="repositories/network:/osmocom:" + +# Use dnf package manager instead of yum, so we can use all the dnf codepaths +# that were originally written for CentOS8 in this CentOS7 image too +RUN yum install -y dnf + +# Let package metadata expire after 60 seconds instead of 48 hours +RUN echo "metadata_expire=60" >> /etc/dnf/dnf.conf && cat /etc/dnf/dnf.conf + +# Set up Osmocom OBS repository +RUN export MIRROR_HTTPS="$(echo $OSMOCOM_REPO_MIRROR | sed s/^http:/https:/)" && \ + { echo "[network_osmocom_nightly]"; \ + echo "name=Nightly packages of the Osmocom project (CentOS_7)"; \ + echo "type=rpm-md"; \ + echo "baseurl=${OSMOCOM_REPO_MIRROR}/${OSMOCOM_REPO_PATH}/nightly/CentOS_7/"; \ + echo "gpgcheck=1"; \ + echo "gpgkey=${MIRROR_HTTPS}/${OSMOCOM_REPO_PATH}/nightly/CentOS_7/repodata/repomd.xml.key"; \ + echo "enabled=1"; \ + } > /etc/yum.repos.d/network:osmocom:nightly.repo + +RUN dnf install -y \ + autoconf \ + autoconf-archive \ + autogen \ + automake \ + bison \ + c-ares-devel \ + doxygen \ + fftw-devel \ + flex \ + gawk \ + gcc \ + gcc-c++ \ + git \ + gnupg \ + gnutls-devel \ + gsm-devel \ + libdbi-dbd-sqlite \ + libdbi-devel \ + libpcap-devel \ + libtalloc-devel \ + libtool \ + libusb1-devel \ + lksctp-tools-devel \ + make \ + ncurses-devel \ + openssl-devel \ + ortp-devel \ + pcsc-lite-devel \ + pkgconfig \ + readline-devel \ + sqlite \ + sqlite-devel \ + telnet + +# Make respawn.sh part of this image, so it can be used by other images based on it +COPY .common/respawn.sh /usr/local/bin/respawn.sh + +# Invalidate cache once the repository is updated +ADD ${OSMOCOM_REPO_MIRROR}/${OSMOCOM_REPO_PATH}/nightly/CentOS_7/repodata/repomd.xml /tmp/repomd.xml diff --git a/centos7-build/Makefile b/centos7-build/Makefile new file mode 100644 index 0000000..f93f5c0 --- /dev/null +++ b/centos7-build/Makefile @@ -0,0 +1,3 @@ +UPSTREAM_DISTRO:=centos:centos7 +DISTRO:=centos7 +include ../make/Makefile |