This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/docker-playground/+/21019 )
Change subject: introduce 'REGISTRY' argument to all Dockerfiles
......................................................................
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
---
M alpine-build/Dockerfile
M centos-repo-install-test/Dockerfile
M centos8-build/Dockerfile
M debian-buster-build/Dockerfile
M debian-buster-erlang/Dockerfile
M debian-jessie-build/Dockerfile
M debian-jessie-osmocom/Dockerfile
M debian-repo-install-test/Dockerfile
M debian-sid-build/Dockerfile
M debian-stretch-build/Dockerfile
M debian-stretch-jenkins/Dockerfile
M debian-stretch-titan/Dockerfile
M gr-gsm-master/Dockerfile
M make/Makefile
M open5gs-master/Dockerfile
M osmo-bsc-latest/Dockerfile
M osmo-bts-latest/Dockerfile
M osmo-cn-latest/Dockerfile
M osmo-ggsn-latest/Dockerfile
M osmo-hlr-latest/Dockerfile
M osmo-hnbgw-latest/Dockerfile
M osmo-mgw-latest/Dockerfile
M osmo-msc-latest/Dockerfile
M osmo-nitb-latest/Dockerfile
M osmo-pcu-latest/Dockerfile
M osmo-remsim-latest/Dockerfile
M osmo-sgsn-latest/Dockerfile
M osmo-sip-latest/Dockerfile
M osmo-stp-latest/Dockerfile
M ubuntu-zesty-build/Dockerfile
30 files changed, 60 insertions(+), 30 deletions(-)
Approvals:
laforge: Looks good to me, approved; Verified
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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at gmail.com>
diff --git a/make/Makefile b/make/Makefile
index d483082..1a13c4d 100644
--- a/make/Makefile
+++ b/make/Makefile
@@ -59,6 +59,7 @@
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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at gnumonks.org>
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/21019
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I32d4ee6256033c809108c1b86cb6b6c58d880f49
Gerrit-Change-Number: 21019
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201102/9abd4de1/attachment.htm>