Images: Update all images to allow base image over-rides

This PS updates all dockerfiles to allow base image over-rides as
required by many consumers of OSH.

Change-Id: I53daac9c1ec4707628565abc912116d8997eba16
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
This commit is contained in:
Pete Birley
2019-08-29 13:02:02 -05:00
committed by Andrii Ostapenko
parent 97bc7964dc
commit 5046975869
20 changed files with 44 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
ARG baseimg=docker.io/ubuntu:xenial ARG FROM=docker.io/ubuntu:xenial
FROM ${baseimg} FROM ${FROM}
ARG CEPH_RELEASE=mimic ARG CEPH_RELEASE=mimic
ARG CEPH_REPO=https://mirror.mirantis.com/testing/ceph-mimic/xenial/ ARG CEPH_REPO=https://mirror.mirantis.com/testing/ceph-mimic/xenial/

View File

@@ -1,5 +1,5 @@
ARG baseimg=docker.io/ubuntu:xenial ARG FROM=docker.io/ubuntu:xenial
FROM ${baseimg} FROM ${FROM}
ARG CEPH_RELEASE=mimic ARG CEPH_RELEASE=mimic
ARG CEPH_REPO=https://mirror.mirantis.com/testing/ceph-mimic/xenial/ ARG CEPH_REPO=https://mirror.mirantis.com/testing/ceph-mimic/xenial/

View File

@@ -1,4 +1,5 @@
FROM docker.io/elasticsearch:5.6.4 ARG FROM=docker.io/elasticsearch:5.6.4
FROM ${FROM}
RUN wget -O jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 \ RUN wget -O jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 \
&& chmod +x ./jq \ && chmod +x ./jq \

View File

@@ -1,4 +1,5 @@
FROM docker.elastic.co/elasticsearch/elasticsearch-oss:7.1.0 ARG FROM=docker.elastic.co/elasticsearch/elasticsearch-oss:7.1.0
FROM ${FROM}
RUN wget -O jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64; \ RUN wget -O jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64; \
chmod +x ./jq ;\ chmod +x ./jq ;\

View File

@@ -1,4 +1,5 @@
FROM docker.io/fluent/fluentd-kubernetes-daemonset:v1.10.1-debian-elasticsearch7-1.0 ARG FROM=docker.io/fluent/fluentd-kubernetes-daemonset:v1.10.1-debian-elasticsearch7-1.0
FROM ${FROM}
RUN set -ex; \ RUN set -ex; \
apt-get update; \ apt-get update; \

View File

@@ -1,3 +1,4 @@
FROM gcr.io/google-containers/debian-base-amd64:0.3 ARG FROM=gcr.io/google-containers/debian-base-amd64:0.3
FROM ${FROM}
RUN /usr/local/bin/clean-install ipcalc RUN /usr/local/bin/clean-install ipcalc

View File

@@ -1,4 +1,6 @@
FROM opensuse/leap:15.1 ARG FROM=opensuse/leap:15.1
FROM ${FROM}
LABEL maintainer="containers@suse.com" LABEL maintainer="containers@suse.com"
ARG PROJECT=nova ARG PROJECT=nova

View File

@@ -1,5 +1,6 @@
FROM docker.io/mariadb@sha256:b3116f425f51353e2ba71b04647977b035c2c578d276e2d4285bd2798e8199ae # mariadb:10.4.12
#FROM mariadb:10.4.12 ARG FROM=docker.io/mariadb@sha256:b3116f425f51353e2ba71b04647977b035c2c578d276e2d4285bd2798e8199ae
FROM ${FROM}
RUN set -ex ;\ RUN set -ex ;\
apt-get update ;\ apt-get update ;\

View File

@@ -12,9 +12,9 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
ARG FROM_UBUNTU=ubuntu:16.04 ARG BUILD_FROM=ubuntu:16.04
ARG FROM_NGINX=nginx ARG FROM=nginx
FROM ${FROM_UBUNTU} as aptly FROM ${BUILD_FROM} as aptly
ARG APTLY_CONFIG_PATH=etc/aptly.conf ARG APTLY_CONFIG_PATH=etc/aptly.conf
ARG MIRROR_SOURCE_FILE=mini-mirror-sources.yaml ARG MIRROR_SOURCE_FILE=mini-mirror-sources.yaml
@@ -40,8 +40,7 @@ COPY tools/publish_snapshots.sh /opt/publish_snapshots.sh
RUN /opt/publish_snapshots.sh "${RELEASE_SIGN_KEY_PASSPHRASE}" RUN /opt/publish_snapshots.sh "${RELEASE_SIGN_KEY_PASSPHRASE}"
FROM ${FROM_NGINX} FROM ${FROM}
ARG APTLY_SNAPSHOT_DIR=/srv ARG APTLY_SNAPSHOT_DIR=/srv
# NOTE(drewwalters96): This must match the location provided in the NGINX # NOTE(drewwalters96): This must match the location provided in the NGINX

View File

@@ -10,7 +10,8 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
FROM docker.io/ubuntu:bionic ARG FROM=docker.io/ubuntu:bionic
FROM ${FROM}
MAINTAINER andrii.ostapenko@att.com MAINTAINER andrii.ostapenko@att.com
ARG UBUNTU_URL=http://archive.ubuntu.com/ubuntu/ ARG UBUNTU_URL=http://archive.ubuntu.com/ubuntu/

View File

@@ -1,4 +1,5 @@
FROM docker.io/ubuntu:bionic ARG FROM=docker.io/ubuntu:bionic
FROM ${FROM}
ARG NPD_VERSION="v0.8.2" ARG NPD_VERSION="v0.8.2"
ARG NPD_SRC_URL="https://github.com/kubernetes/node-problem-detector/releases/download/${NPD_VERSION}" ARG NPD_SRC_URL="https://github.com/kubernetes/node-problem-detector/releases/download/${NPD_VERSION}"

View File

@@ -1,4 +1,5 @@
FROM k8s.gcr.io/debian-iptables-amd64:v10 ARG FROM=k8s.gcr.io/debian-iptables-amd64:v10
FROM ${FROM}
LABEL maintainer="pete.birley@att.com" LABEL maintainer="pete.birley@att.com"
ARG OVS_VERSION=2.8.1 ARG OVS_VERSION=2.8.1

View File

@@ -1,8 +1,8 @@
FROM docker.io/ubuntu:bionic ARG FROM=docker.io/ubuntu:bionic
FROM ${FROM}
LABEL maintainer="cheng1.li@intel.com" LABEL maintainer="cheng1.li@intel.com"
RUN set -ex; \ RUN set -ex; \
apt-get update; \ apt-get update; \
apt-get install -y openvswitch-switch; \ apt-get install -y openvswitch-switch; \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*

View File

@@ -1,4 +1,5 @@
FROM opensuse/leap:15.0 ARG FROM=opensuse/leap:15.0
FROM ${FROM}
LABEL maintainer="cloud-devel@suse.com" LABEL maintainer="cloud-devel@suse.com"
COPY linux_signing_key.pub /tmp/ COPY linux_signing_key.pub /tmp/

View File

@@ -1,4 +1,5 @@
FROM docker.io/ubuntu:bionic ARG FROM=docker.io/ubuntu:bionic
FROM ${FROM}
RUN apt-get -y update \ RUN apt-get -y update \
&& apt-get install --no-install-recommends -y python3 python3-pip unzip wget gnupg \ && apt-get install --no-install-recommends -y python3 python3-pip unzip wget gnupg \

View File

@@ -1,4 +1,5 @@
FROM postgres:9.5 ARG FROM=postgres:9.5
FROM ${FROM}
MAINTAINER Alexander Kukushkin <alexander.kukushkin@zalando.de> MAINTAINER Alexander Kukushkin <alexander.kukushkin@zalando.de>
ARG PATRONI_VERSION ARG PATRONI_VERSION

View File

@@ -1,4 +1,5 @@
FROM opensuse/leap:15.0 ARG FROM=opensuse/leap:15.0
FROM ${FROM}
LABEL maintainer="cloud-devel@suse.com" LABEL maintainer="cloud-devel@suse.com"
ARG VERSION=Master ARG VERSION=Master

View File

@@ -1,4 +1,5 @@
FROM ubuntu:18.04 ARG FROM=ubuntu:18.04
FROM ${FROM}
RUN set -ex ;\ RUN set -ex ;\
export DEBIAN_FRONTEND=noninteractive ;\ export DEBIAN_FRONTEND=noninteractive ;\

View File

@@ -1,4 +1,5 @@
FROM ubuntu:16.04 ARG FROM=ubuntu:16.04
FROM ${FROM}
RUN set -ex ;\ RUN set -ex ;\
export DEBIAN_FRONTEND=noninteractive ;\ export DEBIAN_FRONTEND=noninteractive ;\

View File

@@ -1,4 +1,5 @@
FROM centos:7 ARG FROM=centos:7
FROM ${FROM}
LABEL maintainer="pete.birley@att.com" LABEL maintainer="pete.birley@att.com"
ARG PROJECT=nova ARG PROJECT=nova