common: Introduce OSMOCOM_REPO_MIRROR param
This allows easily changing to another osmocom repo base URL if the default one is down. Related: OS#4862 Change-Id: I8010b08f3dabacfb3c13a44eece6c7a490e0742echanges/39/21239/2
parent
78ae9377a7
commit
7d7a06b749
|
@ -1,9 +1,11 @@
|
|||
ARG REGISTRY=docker.io
|
||||
FROM ${REGISTRY}/debian:buster
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_10/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_10/"
|
||||
|
||||
# install the erlang vm and rebar (2)
|
||||
RUN apt-get update && \
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
ARG USER
|
||||
FROM $USER/debian-buster-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_10/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_10/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
ARG REGISTRY=docker.io
|
||||
FROM ${REGISTRY}/debian:jessie
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_8.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
ARG USER
|
||||
FROM $USER/debian-stretch-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
ARG DEBIAN_VERSION=stretch
|
||||
ARG REGISTRY=docker.io
|
||||
FROM ${REGISTRY}/debian:${DEBIAN_VERSION}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
# Make "$DEBIAN_VERSION" available after FROM
|
||||
# https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
|
||||
|
@ -153,7 +155,7 @@ RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
|
|||
ENV LANG en_US.UTF-8
|
||||
|
||||
# osmo-remsim needs libulfius which is built in osmocom OBS repos:
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
COPY Release.key /tmp/Release.key
|
||||
RUN apt-key add /tmp/Release.key && \
|
||||
rm /tmp/Release.key && \
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=debian:stretch
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
gnupg
|
||||
|
|
|
@ -35,6 +35,8 @@ OSMO_STP_BRANCH?=master
|
|||
PULL?=
|
||||
UPSTREAM_DISTRO?=debian:stretch
|
||||
DISTRO?=debian-stretch
|
||||
OSMOCOM_REPO_MIRROR?=http://download.opensuse.org
|
||||
# Use if down: OSMOCOM_REPO_MIRROR=http://ftp.uni-stuttgart.de/opensuse
|
||||
|
||||
RELEASE_SUPPORT := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))/.make-release-support
|
||||
IMAGE?=$(REGISTRY_HOST)/$(USER)/$(NAME)
|
||||
|
@ -64,6 +66,7 @@ docker-build: .release
|
|||
--build-arg OSMO_TTCN3_BRANCH=$(OSMO_TTCN3_BRANCH) \
|
||||
--build-arg UPSTREAM_DISTRO=$(UPSTREAM_DISTRO) \
|
||||
--build-arg DISTRO=$(DISTRO) \
|
||||
--build-arg OSMOCOM_REPO_MIRROR=$(OSMOCOM_REPO_MIRROR) \
|
||||
--build-arg LIBOSMOCORE_BRANCH=$(LIBOSMOCORE_BRANCH) \
|
||||
--build-arg OSMO_BB_BRANCH=$(OSMO_BB_BRANCH) \
|
||||
--build-arg OSMO_BSC_BRANCH=$(OSMO_BSC_BRANCH) \
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=debian:stretch
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
ARG USER
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
FROM $USER/$DISTRO-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
@ -21,7 +23,7 @@ RUN case "$DISTRO" in \
|
|||
# we need to add this to invalidate the cache once the repository is updated.
|
||||
# unfortunately Dockerfiles don't support a conditional ARG, so we need to add both DPKG + RPM
|
||||
ADD $OSMOCOM_REPO/Release /tmp/Release
|
||||
ADD http://download.opensuse.org/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
ADD $OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
RUN case "$DISTRO" in \
|
||||
debian*) \
|
||||
apt-get update && \
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=debian:stretch
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
ARG USER
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
FROM $USER/$DISTRO-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
@ -21,7 +23,7 @@ RUN case "$DISTRO" in \
|
|||
# we need to add this to invalidate the cache once the repository is updated.
|
||||
# unfortunately Dockerfiles don't support a conditional ARG, so we need to add both DPKG + RPM
|
||||
ADD $OSMOCOM_REPO/Release /tmp/Release
|
||||
ADD http://download.opensuse.org/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
ADD $OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
RUN case "$DISTRO" in \
|
||||
debian*) \
|
||||
apt-get update && \
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=debian:stretch
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Daniel Willmann <dwillmann@sysmocom.de>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=debian:stretch
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
ARG USER
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
FROM $USER/$DISTRO-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
@ -21,7 +23,7 @@ RUN case "$DISTRO" in \
|
|||
# we need to add this to invalidate the cache once the repository is updated.
|
||||
# unfortunately Dockerfiles don't support a conditional ARG, so we need to add both DPKG + RPM
|
||||
ADD $OSMOCOM_REPO/Release /tmp/Release
|
||||
ADD http://download.opensuse.org/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
ADD $OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
RUN case "$DISTRO" in \
|
||||
debian*) \
|
||||
apt-get update && \
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
ARG USER
|
||||
FROM $USER/debian-stretch-jenkins
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Pau Espin Pedrol <pespin@sysmocom.de>
|
||||
|
||||
|
@ -75,7 +77,7 @@ RUN cd /tmp && \
|
|||
make && \
|
||||
make install
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=debian:stretch
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
ARG USER
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
FROM $USER/$DISTRO-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
@ -21,7 +23,7 @@ RUN case "$DISTRO" in \
|
|||
# we need to add this to invalidate the cache once the repository is updated.
|
||||
# unfortunately Dockerfiles don't support a conditional ARG, so we need to add both DPKG + RPM
|
||||
ADD $OSMOCOM_REPO/Release /tmp/Release
|
||||
ADD http://download.opensuse.org/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
ADD $OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
RUN case "$DISTRO" in \
|
||||
debian*) \
|
||||
apt-get update && \
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=debian:stretch
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
ARG USER
|
||||
FROM $USER/debian-stretch-build
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
FROM $USER/$DISTRO-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
@ -14,7 +18,7 @@ RUN apt-key add /tmp/Release.key && \
|
|||
# we need to add this to invalidate the cache once the repository is updated.
|
||||
# unfortunately Dockerfiles don't support a conditional ARG, so we need to add both DPKG + RPM
|
||||
ADD $OSMOCOM_REPO/Release /tmp/Release
|
||||
ADD http://download.opensuse.org/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
ADD $OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
telnet \
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=debian:stretch
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
ARG USER
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
FROM $USER/$DISTRO-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
@ -21,7 +23,7 @@ RUN case "$DISTRO" in \
|
|||
# we need to add this to invalidate the cache once the repository is updated.
|
||||
# unfortunately Dockerfiles don't support a conditional ARG, so we need to add both DPKG + RPM
|
||||
ADD $OSMOCOM_REPO/Release /tmp/Release
|
||||
ADD http://download.opensuse.org/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
ADD $OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
RUN case "$DISTRO" in \
|
||||
debian*) \
|
||||
apt-get update && \
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=debian:stretch
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
ARG USER
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
FROM $USER/$DISTRO-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
@ -21,7 +23,7 @@ RUN case "$DISTRO" in \
|
|||
# we need to add this to invalidate the cache once the repository is updated.
|
||||
# unfortunately Dockerfiles don't support a conditional ARG, so we need to add both DPKG + RPM
|
||||
ADD $OSMOCOM_REPO/Release /tmp/Release
|
||||
ADD http://download.opensuse.org/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
ADD $OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
RUN case "$DISTRO" in \
|
||||
debian*) \
|
||||
apt-get update && \
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=debian:stretch
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
|
|
@ -1,9 +1,14 @@
|
|||
ARG USER
|
||||
FROM $USER/debian-stretch-build
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
FROM $USER/$DISTRO-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
@ -14,7 +19,7 @@ RUN apt-key add /tmp/Release.key && \
|
|||
# we need to add this to invalidate the cache once the repository is updated.
|
||||
# unfortunately Dockerfiles don't support a conditional ARG, so we need to add both DPKG + RPM
|
||||
ADD $OSMOCOM_REPO/Release /tmp/Release
|
||||
ADD http://download.opensuse.org/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
ADD $OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
telnet \
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=debian:stretch
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
@ -35,4 +37,4 @@ COPY osmo-pcu.cfg /data/osmo-pcu.cfg
|
|||
WORKDIR /data
|
||||
CMD ["/usr/bin/osmo-pcu"]
|
||||
|
||||
#EXPOSE
|
||||
#EXPOSE
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
ARG USER
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
FROM $USER/$DISTRO-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
@ -21,7 +23,7 @@ RUN case "$DISTRO" in \
|
|||
# we need to add this to invalidate the cache once the repository is updated.
|
||||
# unfortunately Dockerfiles don't support a conditional ARG, so we need to add both DPKG + RPM
|
||||
ADD $OSMOCOM_REPO/Release /tmp/Release
|
||||
ADD http://download.opensuse.org/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
ADD $OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
RUN case "$DISTRO" in \
|
||||
debian*) \
|
||||
apt-get update && \
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=debian:stretch
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
@ -37,4 +39,4 @@ VOLUME /data
|
|||
WORKDIR /data
|
||||
CMD ["/bin/sh", "-c", "/usr/bin/osmo-resmim-server >/data/osmo-resmim-server.log 2>&1"]
|
||||
|
||||
#EXPOSE
|
||||
#EXPOSE
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
ARG USER
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
FROM $USER/$DISTRO-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
|
@ -31,7 +33,7 @@ RUN git clone https://github.com/frankmorgner/vsmartcard.git
|
|||
RUN cd vsmartcard/virtualsmartcard && autoreconf -fi && ./configure && make "-j$(nproc)" install
|
||||
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
@ -46,7 +48,7 @@ RUN case "$DISTRO" in \
|
|||
# we need to add this to invalidate the cache once the repository is updated.
|
||||
# unfortunately Dockerfiles don't support a conditional ARG, so we need to add both DPKG + RPM
|
||||
ADD $OSMOCOM_REPO/Release /tmp/Release
|
||||
ADD http://download.opensuse.org/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
ADD $OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
RUN case "$DISTRO" in \
|
||||
debian*) \
|
||||
apt-get update && \
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=debian:stretch
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
ARG USER
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
FROM $USER/$DISTRO-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
@ -21,7 +23,7 @@ RUN case "$DISTRO" in \
|
|||
# we need to add this to invalidate the cache once the repository is updated.
|
||||
# unfortunately Dockerfiles don't support a conditional ARG, so we need to add both DPKG + RPM
|
||||
ADD $OSMOCOM_REPO/Release /tmp/Release
|
||||
ADD http://download.opensuse.org/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
ADD $OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
RUN case "$DISTRO" in \
|
||||
debian*) \
|
||||
apt-get update && \
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=debian:stretch
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
@ -31,4 +33,4 @@ COPY osmo-sip-connector.cfg /data/osmo-sip-connector.cfg
|
|||
WORKDIR /data
|
||||
CMD ["/bin/sh", "-c", "/usr/bin/osmo-sip-connector -c /data/osmo-sip-connector.cfg >/data/osmo-sip-connector.log 2>&1"]
|
||||
|
||||
#EXPOSE
|
||||
#EXPOSE
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
ARG USER
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
FROM $USER/$DISTRO-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
@ -21,7 +23,7 @@ RUN case "$DISTRO" in \
|
|||
# we need to add this to invalidate the cache once the repository is updated.
|
||||
# unfortunately Dockerfiles don't support a conditional ARG, so we need to add both DPKG + RPM
|
||||
ADD $OSMOCOM_REPO/Release /tmp/Release
|
||||
ADD http://download.opensuse.org/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
ADD $OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
RUN case "$DISTRO" in \
|
||||
debian*) \
|
||||
apt-get update && \
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
ARG USER
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
FROM $USER/$DISTRO-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
@ -21,7 +23,7 @@ RUN case "$DISTRO" in \
|
|||
# we need to add this to invalidate the cache once the repository is updated.
|
||||
# unfortunately Dockerfiles don't support a conditional ARG, so we need to add both DPKG + RPM
|
||||
ADD $OSMOCOM_REPO/Release /tmp/Release
|
||||
ADD http://download.opensuse.org/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
ADD $OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
RUN case "$DISTRO" in \
|
||||
debian*) \
|
||||
apt-get update && \
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=debian:stretch
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
ARG USER
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
FROM $USER/$DISTRO-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
@ -21,7 +23,7 @@ RUN case "$DISTRO" in \
|
|||
# we need to add this to invalidate the cache once the repository is updated.
|
||||
# unfortunately Dockerfiles don't support a conditional ARG, so we need to add both DPKG + RPM
|
||||
ADD $OSMOCOM_REPO/Release /tmp/Release
|
||||
ADD http://download.opensuse.org/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
ADD $OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
|
||||
RUN case "$DISTRO" in \
|
||||
debian*) \
|
||||
apt-get update && \
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
ARG USER
|
||||
FROM $USER/debian-buster-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_10/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_10/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
ARG USER
|
||||
FROM $USER/debian-stretch-build
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
FROM $USER/$DISTRO-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG DISTRO
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMO_BB_BRANCH="master"
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
|
|
Loading…
Reference in New Issue