diff options
| author | Swapnil Kulkarni <me@coolsvap.net> | 2015-08-01 01:35:32 +0000 |
|---|---|---|
| committer | Swapnil Kulkarni <me@coolsvap.net> | 2015-08-01 04:00:08 +0000 |
| commit | 7159f947bb198ac8a49c516cce6c0f54bcf2286e (patch) | |
| tree | 6cccd6c24ae14425f6e1b72a8debe0947a18bf20 /docker/centos/source/swift/swift-base | |
| parent | 72f35b14d2309fd47ae1aff3d9a828fda6cc178f (diff) | |
| download | kolla-7159f947bb198ac8a49c516cce6c0f54bcf2286e.tar.gz kolla-7159f947bb198ac8a49c516cce6c0f54bcf2286e.zip | |
Add build from source for Swift
Change-Id: I0ee4dd03752b0b822dc49b2acaed1e39fcb1ab1e
Partially-implements: blueprint install-from-source
Diffstat (limited to 'docker/centos/source/swift/swift-base')
5 files changed, 32 insertions, 0 deletions
diff --git a/docker/centos/source/swift/swift-base/.buildinfo b/docker/centos/source/swift/swift-base/.buildinfo new file mode 100644 index 000000000..ca6e05ede --- /dev/null +++ b/docker/centos/source/swift/swift-base/.buildinfo @@ -0,0 +1,10 @@ +# Build info specific to this image. All values can be overridden in .buildconf + +COMPONENT=swift +SOURCE_INSTALL_AVAILABLE=1 + +# Used for git install method +: ${CLONE_FROM:=https://github.com/openstack/swift} + +# Used for curl install method +: ${TARBALL_URI:=http://tarballs.openstack.org/swift/swift-master.tar.gz} diff --git a/docker/centos/source/swift/swift-base/Dockerfile b/docker/centos/source/swift/swift-base/Dockerfile new file mode 100644 index 000000000..2a983963b --- /dev/null +++ b/docker/centos/source/swift/swift-base/Dockerfile @@ -0,0 +1,19 @@ +FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%% +MAINTAINER Kolla Project (https://launchpad.net/kolla) + +ADD ./swift.tar / +RUN ln -s /swift-* /swift + +RUN cd /swift \ + && useradd --user-group swift \ + && pip install -r requirements.txt \ + && pip install /swift \ + && mkdir /etc/swift /var/log/swift \ + && cp -r /swift/etc/* /etc/swift/ \ + && rm -rf /root/.cache + +COPY config-swift.sh build-swift-ring.py /opt/kolla/ + +RUN mkdir /opt/swift + +CMD ["/start.sh"] diff --git a/docker/centos/source/swift/swift-base/build b/docker/centos/source/swift/swift-base/build new file mode 120000 index 000000000..ec1913803 --- /dev/null +++ b/docker/centos/source/swift/swift-base/build @@ -0,0 +1 @@ +../../../../../tools/build-docker-image
\ No newline at end of file diff --git a/docker/centos/source/swift/swift-base/build-swift-ring.py b/docker/centos/source/swift/swift-base/build-swift-ring.py new file mode 120000 index 000000000..325bf93c5 --- /dev/null +++ b/docker/centos/source/swift/swift-base/build-swift-ring.py @@ -0,0 +1 @@ +../../../../../docker/common/swift/swift-base/build-swift-ring.py
\ No newline at end of file diff --git a/docker/centos/source/swift/swift-base/config-swift.sh b/docker/centos/source/swift/swift-base/config-swift.sh new file mode 120000 index 000000000..fb883f482 --- /dev/null +++ b/docker/centos/source/swift/swift-base/config-swift.sh @@ -0,0 +1 @@ +../../../../../docker/common/swift/swift-base/config-swift.sh
\ No newline at end of file |
