aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-11-02 14:24:39 +0100
committerHarald Welte <laforge@osmocom.org>2020-11-02 17:02:26 +0100
commit027826fdba19a8211d5787cc80955bdf91336f45 (patch)
tree11b2f0462699fbc32a644ff3aa9dc838afa3b33b
parenta90660bef88a6cbb3b6856ec543f7685085bb620 (diff)
introduce 'REGISTRY' argument to all Dockerfiles
This is initialized to docker.io, keeping the default behaviour if not specified. However, it allows us to specify a private registry later on. Related: OS#4839 Change-Id: I32d4ee6256033c809108c1b86cb6b6c58d880f49
-rw-r--r--alpine-build/Dockerfile3
-rw-r--r--centos-repo-install-test/Dockerfile3
-rw-r--r--centos8-build/Dockerfile3
-rw-r--r--debian-buster-build/Dockerfile3
-rw-r--r--debian-buster-erlang/Dockerfile3
-rw-r--r--debian-jessie-build/Dockerfile3
-rw-r--r--debian-jessie-osmocom/Dockerfile3
-rw-r--r--debian-repo-install-test/Dockerfile3
-rw-r--r--debian-sid-build/Dockerfile3
-rw-r--r--debian-stretch-build/Dockerfile3
-rw-r--r--debian-stretch-jenkins/Dockerfile5
-rw-r--r--debian-stretch-titan/Dockerfile3
-rw-r--r--gr-gsm-master/Dockerfile3
-rw-r--r--make/Makefile1
-rw-r--r--open5gs-master/Dockerfile3
-rw-r--r--osmo-bsc-latest/Dockerfile3
-rw-r--r--osmo-bts-latest/Dockerfile3
-rw-r--r--osmo-cn-latest/Dockerfile3
-rw-r--r--osmo-ggsn-latest/Dockerfile3
-rw-r--r--osmo-hlr-latest/Dockerfile3
-rw-r--r--osmo-hnbgw-latest/Dockerfile3
-rw-r--r--osmo-mgw-latest/Dockerfile3
-rw-r--r--osmo-msc-latest/Dockerfile3
-rw-r--r--osmo-nitb-latest/Dockerfile3
-rw-r--r--osmo-pcu-latest/Dockerfile3
-rw-r--r--osmo-remsim-latest/Dockerfile3
-rw-r--r--osmo-sgsn-latest/Dockerfile3
-rw-r--r--osmo-sip-latest/Dockerfile3
-rw-r--r--osmo-stp-latest/Dockerfile3
-rw-r--r--ubuntu-zesty-build/Dockerfile3
30 files changed, 60 insertions, 30 deletions
diff --git a/alpine-build/Dockerfile b/alpine-build/Dockerfile
index 622b838..26b8d29 100644
--- a/alpine-build/Dockerfile
+++ b/alpine-build/Dockerfile
@@ -1,4 +1,5 @@
-FROM alpine:3.6
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/alpine:3.6
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/centos-repo-install-test/Dockerfile b/centos-repo-install-test/Dockerfile
index 45f0ba4..3f53650 100644
--- a/centos-repo-install-test/Dockerfile
+++ b/centos-repo-install-test/Dockerfile
@@ -1,5 +1,6 @@
ARG USER
-FROM centos:centos8
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/centos:centos8
# dnf-utils: for repoquery
RUN dnf install -y \
diff --git a/centos8-build/Dockerfile b/centos8-build/Dockerfile
index 511f350..46ce23e 100644
--- a/centos8-build/Dockerfile
+++ b/centos8-build/Dockerfile
@@ -1,4 +1,5 @@
-FROM centos:centos8
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/centos:centos8
# 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
diff --git a/debian-buster-build/Dockerfile b/debian-buster-build/Dockerfile
index 28116ab..119afea 100644
--- a/debian-buster-build/Dockerfile
+++ b/debian-buster-build/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:buster
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:buster
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/debian-buster-erlang/Dockerfile b/debian-buster-erlang/Dockerfile
index 23da345..8ac470f 100644
--- a/debian-buster-erlang/Dockerfile
+++ b/debian-buster-erlang/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:buster
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:buster
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/debian-jessie-build/Dockerfile b/debian-jessie-build/Dockerfile
index 9a2f9fc..60f6ca9 100644
--- a/debian-jessie-build/Dockerfile
+++ b/debian-jessie-build/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:jessie
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:jessie
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/debian-jessie-osmocom/Dockerfile b/debian-jessie-osmocom/Dockerfile
index e3709b2..77c223f 100644
--- a/debian-jessie-osmocom/Dockerfile
+++ b/debian-jessie-osmocom/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:jessie
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:jessie
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/debian-repo-install-test/Dockerfile b/debian-repo-install-test/Dockerfile
index 5448fd6..e718a23 100644
--- a/debian-repo-install-test/Dockerfile
+++ b/debian-repo-install-test/Dockerfile
@@ -1,5 +1,6 @@
ARG USER
-FROM debian:stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:stretch
COPY Release.key /tmp/Release.key
diff --git a/debian-sid-build/Dockerfile b/debian-sid-build/Dockerfile
index 6348fc7..ffa86e2 100644
--- a/debian-sid-build/Dockerfile
+++ b/debian-sid-build/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:sid
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:sid
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/debian-stretch-build/Dockerfile b/debian-stretch-build/Dockerfile
index 35440a0..ac52708 100644
--- a/debian-stretch-build/Dockerfile
+++ b/debian-stretch-build/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:stretch
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/debian-stretch-jenkins/Dockerfile b/debian-stretch-jenkins/Dockerfile
index e73b7ae..c682d9c 100644
--- a/debian-stretch-jenkins/Dockerfile
+++ b/debian-stretch-jenkins/Dockerfile
@@ -1,8 +1,9 @@
# Image used to run contrib/jenkins.sh scripts of most Osmocom projects.
# See master-builds.yml, gerrit-verifications.yml in osmo-ci.git.
-ARG DEBIAN_VERSION=stretch
-FROM debian:${DEBIAN_VERSION}
+ARG DEBIAN_VERSION=stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:${DEBIAN_VERSION}
# Make "$DEBIAN_VERSION" available after FROM
# https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
diff --git a/debian-stretch-titan/Dockerfile b/debian-stretch-titan/Dockerfile
index 15e4492..303e4a3 100644
--- a/debian-stretch-titan/Dockerfile
+++ b/debian-stretch-titan/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:stretch
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/gr-gsm-master/Dockerfile b/gr-gsm-master/Dockerfile
index a756b88..71dc610 100644
--- a/gr-gsm-master/Dockerfile
+++ b/gr-gsm-master/Dockerfile
@@ -1,4 +1,5 @@
-FROM archlinux/base
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/archlinux/base
MAINTAINER Vadim Yanitskiy <axilirator@gmail.com>
diff --git a/make/Makefile b/make/Makefile
index d483082..1a13c4d 100644
--- a/make/Makefile
+++ b/make/Makefile
@@ -59,6 +59,7 @@ post-push:
docker-build: .release
docker build \
--build-arg USER=$(USERNAME) \
+ --build-arg REGISTRY=$(REGISTRY_HOST) \
--build-arg OSMO_TTCN3_BRANCH=$(OSMO_TTCN3_BRANCH) \
--build-arg DISTRO=$(DISTRO) \
--build-arg LIBOSMOCORE_BRANCH=$(LIBOSMOCORE_BRANCH) \
diff --git a/open5gs-master/Dockerfile b/open5gs-master/Dockerfile
index 37344cf..2af9f12 100644
--- a/open5gs-master/Dockerfile
+++ b/open5gs-master/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:buster
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:buster
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/osmo-bsc-latest/Dockerfile b/osmo-bsc-latest/Dockerfile
index 5206a08..1ab1e02 100644
--- a/osmo-bsc-latest/Dockerfile
+++ b/osmo-bsc-latest/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:stretch
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/osmo-bts-latest/Dockerfile b/osmo-bts-latest/Dockerfile
index 05c27fd..df1d832 100644
--- a/osmo-bts-latest/Dockerfile
+++ b/osmo-bts-latest/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:stretch
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/osmo-cn-latest/Dockerfile b/osmo-cn-latest/Dockerfile
index 3b49c29..ba98621 100644
--- a/osmo-cn-latest/Dockerfile
+++ b/osmo-cn-latest/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:stretch
MAINTAINER Daniel Willmann <dwillmann@sysmocom.de>
diff --git a/osmo-ggsn-latest/Dockerfile b/osmo-ggsn-latest/Dockerfile
index 5259d51..ac50c4e 100644
--- a/osmo-ggsn-latest/Dockerfile
+++ b/osmo-ggsn-latest/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:stretch
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/osmo-hlr-latest/Dockerfile b/osmo-hlr-latest/Dockerfile
index f00c2d9..606a2df 100644
--- a/osmo-hlr-latest/Dockerfile
+++ b/osmo-hlr-latest/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:stretch
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/osmo-hnbgw-latest/Dockerfile b/osmo-hnbgw-latest/Dockerfile
index 161480b..15e515f 100644
--- a/osmo-hnbgw-latest/Dockerfile
+++ b/osmo-hnbgw-latest/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:stretch
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/osmo-mgw-latest/Dockerfile b/osmo-mgw-latest/Dockerfile
index 9a403f8..eba9ace 100644
--- a/osmo-mgw-latest/Dockerfile
+++ b/osmo-mgw-latest/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:stretch
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/osmo-msc-latest/Dockerfile b/osmo-msc-latest/Dockerfile
index 5780f71..6fc5858 100644
--- a/osmo-msc-latest/Dockerfile
+++ b/osmo-msc-latest/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:stretch
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/osmo-nitb-latest/Dockerfile b/osmo-nitb-latest/Dockerfile
index 9e7ebdf..5dafc33 100644
--- a/osmo-nitb-latest/Dockerfile
+++ b/osmo-nitb-latest/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:stretch
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/osmo-pcu-latest/Dockerfile b/osmo-pcu-latest/Dockerfile
index fdd5e56..ccd492c 100644
--- a/osmo-pcu-latest/Dockerfile
+++ b/osmo-pcu-latest/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:stretch
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/osmo-remsim-latest/Dockerfile b/osmo-remsim-latest/Dockerfile
index c2d0e67..2229032 100644
--- a/osmo-remsim-latest/Dockerfile
+++ b/osmo-remsim-latest/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:stretch
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/osmo-sgsn-latest/Dockerfile b/osmo-sgsn-latest/Dockerfile
index 17ea516..f24b11c 100644
--- a/osmo-sgsn-latest/Dockerfile
+++ b/osmo-sgsn-latest/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:stretch
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/osmo-sip-latest/Dockerfile b/osmo-sip-latest/Dockerfile
index 24dfefa..cdf1315 100644
--- a/osmo-sip-latest/Dockerfile
+++ b/osmo-sip-latest/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:stretch
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/osmo-stp-latest/Dockerfile b/osmo-stp-latest/Dockerfile
index 563378b..aca833f 100644
--- a/osmo-stp-latest/Dockerfile
+++ b/osmo-stp-latest/Dockerfile
@@ -1,4 +1,5 @@
-FROM debian:stretch
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/debian:stretch
MAINTAINER Harald Welte <laforge@gnumonks.org>
diff --git a/ubuntu-zesty-build/Dockerfile b/ubuntu-zesty-build/Dockerfile
index b524c27..cfda27f 100644
--- a/ubuntu-zesty-build/Dockerfile
+++ b/ubuntu-zesty-build/Dockerfile
@@ -1,4 +1,5 @@
-FROM ubuntu:zesty
+ARG REGISTRY=docker.io
+FROM ${REGISTRY}/ubuntu:zesty
MAINTAINER Harald Welte <laforge@gnumonks.org>