From 13062e23e86b5d86020949754540460cb5b0b4fe Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Wed, 13 May 2015 06:46:24 -0500 Subject: Restructure builds to allow more flexibility As a restructure, nothing is changed from the original behaviour and naming despite the file structure changing. The symlinks to build had to be updated generating lots of "deleted" and "new_file". The new structure is: docker/${base_distro}/${type}/${container} base_distro == centos, ubuntu, fedora, etc type == source, binary, rdo type rdo is a symlink to binary for backwards compatibility Two new flags are added to the build-all script to support the ability to support different base distros and a flag to support binary or source containers. There are several added folders that are empty to hold the directory structure for future containers of these types. To use a prefix other than centos-rdo- you can set PREFIX in the toplevel directory .buildconf file Change-Id: Ifc7bac0d827470f506c8b5c004a833da9ce13b90 --- docker/swift/swift-account/Dockerfile | 6 ----- docker/swift/swift-account/build | 1 - docker/swift/swift-account/start.sh | 35 ------------------------------ docker/swift/swift-base/24q124 | 8 ------- docker/swift/swift-base/Dockerfile | 8 ------- docker/swift/swift-base/build | 1 - docker/swift/swift-container/Dockerfile | 6 ----- docker/swift/swift-container/build | 1 - docker/swift/swift-container/start.sh | 35 ------------------------------ docker/swift/swift-object/Dockerfile | 6 ----- docker/swift/swift-object/build | 1 - docker/swift/swift-object/start.sh | 35 ------------------------------ docker/swift/swift-proxy-server/Dockerfile | 6 ----- docker/swift/swift-proxy-server/build | 1 - docker/swift/swift-proxy-server/start.sh | 5 ----- 15 files changed, 155 deletions(-) delete mode 100644 docker/swift/swift-account/Dockerfile delete mode 120000 docker/swift/swift-account/build delete mode 100644 docker/swift/swift-account/start.sh delete mode 100644 docker/swift/swift-base/24q124 delete mode 100644 docker/swift/swift-base/Dockerfile delete mode 120000 docker/swift/swift-base/build delete mode 100644 docker/swift/swift-container/Dockerfile delete mode 120000 docker/swift/swift-container/build delete mode 100644 docker/swift/swift-container/start.sh delete mode 100644 docker/swift/swift-object/Dockerfile delete mode 120000 docker/swift/swift-object/build delete mode 100644 docker/swift/swift-object/start.sh delete mode 100644 docker/swift/swift-proxy-server/Dockerfile delete mode 120000 docker/swift/swift-proxy-server/build delete mode 100644 docker/swift/swift-proxy-server/start.sh (limited to 'docker/swift') diff --git a/docker/swift/swift-account/Dockerfile b/docker/swift/swift-account/Dockerfile deleted file mode 100644 index 2c26802e3..000000000 --- a/docker/swift/swift-account/Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%swift-base:%%KOLLA_TAG%% -MAINTAINER Kolla Project (https://launchpad.net/kolla) - -ADD ./start.sh /start.sh -CMD ["/start.sh"] - diff --git a/docker/swift/swift-account/build b/docker/swift/swift-account/build deleted file mode 120000 index 43944faa0..000000000 --- a/docker/swift/swift-account/build +++ /dev/null @@ -1 +0,0 @@ -../../../tools/build-docker-image \ No newline at end of file diff --git a/docker/swift/swift-account/start.sh b/docker/swift/swift-account/start.sh deleted file mode 100644 index f634f6e54..000000000 --- a/docker/swift/swift-account/start.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash - -: ${SWIFT_DB_USER:=swift} -: ${SWIFT_DB_NAME:=swift} -: ${KEYSTONE_AUTH_PROTOCOL:=http} -: ${SWIFT_KEYSTONE_USER:=swift} -: ${ADMIN_TENANT_NAME:=admin} - -check_required_vars KEYSTONE_ADMIN_TOKEN KEYSTONE_ADMIN_SERVICE_HOST \ - SWIFT_ADMIN_PASSWORD -fail_unless_db -fail_unless_os_service_running keystone - -if ! [ "$SWIFT_DB_PASSWORD" ]; then - SWIFT_DB_PASSWORD=$(openssl rand -hex 15) - export SWIFT_DB_PASSWORD -fi - -sh /opt/swift/config-swift.sh account-server - -mysql -h ${MARIADB_SERVICE_HOST} -u root \ - -p${DB_ROOT_PASSWORD} mysql < - -RUN yum -y install openstack-utils openstack-swift && yum clean all - -# These will come after we sort out start time config -RUN mkdir /opt/swift -#COPY config-swift.sh /opt/swift/config-swift.sh diff --git a/docker/swift/swift-base/Dockerfile b/docker/swift/swift-base/Dockerfile deleted file mode 100644 index 59600a23d..000000000 --- a/docker/swift/swift-base/Dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%% -MAINTAINER Kolla Project (https://launchpad.net/kolla) - -RUN yum -y install openstack-utils openstack-swift && yum clean all - -# These will come after we sort out start time config -RUN mkdir /opt/swift -config-swift.sh /opt/swift/config-swift.sh diff --git a/docker/swift/swift-base/build b/docker/swift/swift-base/build deleted file mode 120000 index 43944faa0..000000000 --- a/docker/swift/swift-base/build +++ /dev/null @@ -1 +0,0 @@ -../../../tools/build-docker-image \ No newline at end of file diff --git a/docker/swift/swift-container/Dockerfile b/docker/swift/swift-container/Dockerfile deleted file mode 100644 index 2c26802e3..000000000 --- a/docker/swift/swift-container/Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%swift-base:%%KOLLA_TAG%% -MAINTAINER Kolla Project (https://launchpad.net/kolla) - -ADD ./start.sh /start.sh -CMD ["/start.sh"] - diff --git a/docker/swift/swift-container/build b/docker/swift/swift-container/build deleted file mode 120000 index 43944faa0..000000000 --- a/docker/swift/swift-container/build +++ /dev/null @@ -1 +0,0 @@ -../../../tools/build-docker-image \ No newline at end of file diff --git a/docker/swift/swift-container/start.sh b/docker/swift/swift-container/start.sh deleted file mode 100644 index 6e303872b..000000000 --- a/docker/swift/swift-container/start.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash - -: ${SWIFT_DB_USER:=swift} -: ${SWIFT_DB_NAME:=swift} -: ${KEYSTONE_AUTH_PROTOCOL:=http} -: ${SWIFT_KEYSTONE_USER:=swift} -: ${ADMIN_TENANT_NAME:=admin} - -check_required_vars KEYSTONE_ADMIN_TOKEN KEYSTONE_ADMIN_SERVICE_HOST \ - SWIFT_ADMIN_PASSWORD -fail_unless_db -fail_unless_os_service_running keystone - -if ! [ "$SWIFT_DB_PASSWORD" ]; then - SWIFT_DB_PASSWORD=$(openssl rand -hex 15) - export SWIFT_DB_PASSWORD -fi - -sh /opt/swift/config-swift.sh container - -mysql -h ${MARIADB_SERVICE_HOST} -u root \ - -p${DB_ROOT_PASSWORD} mysql <