diff options
| author | Vladislav Belogrudov <vladislav.belogrudov@oracle.com> | 2015-09-02 17:36:46 +0300 |
|---|---|---|
| committer | Vladislav Belogrudov <vladislav.belogrudov@oracle.com> | 2015-09-03 16:49:50 +0300 |
| commit | c22cf33268979db15f06f2bab347750127e5d7ee (patch) | |
| tree | d591aa2e08b0b0443f4e37264465293025552067 /docker/nova/nova-base | |
| parent | 233864ff32af10a2c927cdbca3475b537c8e6808 (diff) | |
| download | kolla-c22cf33268979db15f06f2bab347750127e5d7ee.tar.gz kolla-c22cf33268979db15f06f2bab347750127e5d7ee.zip | |
Allow arbitrary source archive name to be imported into Dockerfile
Currently we cannot import source archives with names different
than expected by hardcoded line in Dockerfiles. This worked well
for Openstack services' tarballs where we expected SERVICE-* root
folder after extraction or kanaka-noVNC for nova-novncproxy docker.
The latter fails if one tries to clone or get tarball under other
names. This fix allows any archive (tar,tgz,zip) or repo name to be
imported into dockerfile.
Change-Id: I869a6a19afaf0e93925572746c22b7589b6600c9
Closes-Bug: #1491415
Diffstat (limited to 'docker/nova/nova-base')
| -rw-r--r-- | docker/nova/nova-base/Dockerfile.j2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/nova/nova-base/Dockerfile.j2 b/docker/nova/nova-base/Dockerfile.j2 index ad43bb9c4..476c7bca9 100644 --- a/docker/nova/nova-base/Dockerfile.j2 +++ b/docker/nova/nova-base/Dockerfile.j2 @@ -39,8 +39,8 @@ RUN apt-get install -y --no-install-recommends \ {% endif %} -ADD nova-base.tar / -RUN ln -s /nova-* nova \ +ADD nova-base-archive /nova-base-source +RUN ln -s nova-base-source/* nova \ && useradd --user-group nova \ && pip --no-cache-dir install /nova \ && mkdir -p /etc/nova /var/log/nova /home/nova \ |
