From 44a0b7ed108b642e3f6ff4f18eabb7f908d3d7f1 Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Tue, 4 Apr 2017 18:34:54 +0000 Subject: [PATCH] Add option to OVERRIDE Providing an OVERRIDE tarball allows any and everything about the image to be customized *before* the initial commands are run. This will be used in the gate and other CICD systems to change package sources as well as configure options. In infra specfically we will be disabling signature verification on the packages and pointing the repos to use infra repos. Regular building is 100% unaffected by this addition. Change-Id: Idc571bbd01ba9b9fd0f18feee986009369296674 --- centos/Dockerfile | 3 +++ centos/override/.gitkeep | 0 debian/Dockerfile | 3 +++ debian/override/.gitkeep | 0 ubuntu/Dockerfile | 3 +++ ubuntu/override/.gitkeep | 0 6 files changed, 9 insertions(+) create mode 100644 centos/override/.gitkeep create mode 100644 debian/override/.gitkeep create mode 100644 ubuntu/override/.gitkeep diff --git a/centos/Dockerfile b/centos/Dockerfile index 879aa96..c986e7b 100644 --- a/centos/Dockerfile +++ b/centos/Dockerfile @@ -8,6 +8,9 @@ ARG GIT_REPO=https://git.openstack.org/openstack/${PROJECT} ARG GIT_REF ARG GIT_REF_REPO=https://git.openstack.org/openstack/${PROJECT} ARG SCRIPTS=https://github.com/yaodu/common/archive/0.1.2.tar.gz +ARG OVERRIDE=override + +ADD $OVERRIDE / RUN set -x \ && yum install --setopt=tsflags=nodocs -y python curl \ diff --git a/centos/override/.gitkeep b/centos/override/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/debian/Dockerfile b/debian/Dockerfile index 8915f41..149a3dc 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile @@ -8,6 +8,9 @@ ARG GIT_REPO=https://git.openstack.org/openstack/${PROJECT} ARG GIT_REF ARG GIT_REF_REPO=https://git.openstack.org/openstack/${PROJECT} ARG SCRIPTS=https://github.com/yaodu/common/archive/0.1.2.tar.gz +ARG OVERRIDE=override + +ADD $OVERRIDE / RUN set -x \ && apt-get update \ diff --git a/debian/override/.gitkeep b/debian/override/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/ubuntu/Dockerfile b/ubuntu/Dockerfile index 0b078a9..02a8cc1 100644 --- a/ubuntu/Dockerfile +++ b/ubuntu/Dockerfile @@ -8,6 +8,9 @@ ARG GIT_REPO=https://git.openstack.org/openstack/${PROJECT} ARG GIT_REF ARG GIT_REF_REPO=https://git.openstack.org/openstack/${PROJECT} ARG SCRIPTS=https://github.com/yaodu/common/archive/0.1.2.tar.gz +ARG OVERRIDE=override + +ADD $OVERRIDE / RUN set -x \ && apt-get update \ diff --git a/ubuntu/override/.gitkeep b/ubuntu/override/.gitkeep new file mode 100644 index 0000000..e69de29