From 7e2fed1911dbdc13c5145df9f445f9b8e8c10b3c Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Tue, 4 Apr 2017 18:33:48 +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: Iec54c7e1aac6204e83653754d27683da7e086e41 --- 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 8fea3d6..32df6d6 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 4c0aa6e..8fa87bc 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 5de30bf..3b0d4d2 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