From f6679e1e21e458705257d18adf28dd5aaa0732a0 Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Tue, 4 Apr 2017 18:34:32 +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: Ic082408d222cbb9ba1761ce262a9703d8992e0d9 --- 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 12c24dc..b1a8e61 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 a71ceb2..86b5616 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 cc5d7ff..a56f1f3 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