Remove dest_filename from build.ini
We can, and should, figure out the filename dynamically rather than hardcode that value in build.ini since it is not actually a configurable paramater. Change-Id: I496d6555e9fa356ab09e62063fd707f43ed08121 Closes-Bug: #1490386
This commit is contained in:
parent
5f621a4fe9
commit
45f625a73e
16
build.ini
16
build.ini
@ -1,79 +1,63 @@
|
|||||||
[ceilometer-base]
|
[ceilometer-base]
|
||||||
type = url
|
type = url
|
||||||
location = http://tarballs.openstack.org/ceilometer/ceilometer-master.tar.gz
|
location = http://tarballs.openstack.org/ceilometer/ceilometer-master.tar.gz
|
||||||
dest_filename = ceilometer.tar
|
|
||||||
|
|
||||||
[cinder-base]
|
[cinder-base]
|
||||||
type = url
|
type = url
|
||||||
location = http://tarballs.openstack.org/cinder/cinder-master.tar.gz
|
location = http://tarballs.openstack.org/cinder/cinder-master.tar.gz
|
||||||
dest_filename = cinder.tar
|
|
||||||
|
|
||||||
[designate-base]
|
[designate-base]
|
||||||
type = url
|
type = url
|
||||||
location = http://tarballs.openstack.org/designate/designate-master.tar.gz
|
location = http://tarballs.openstack.org/designate/designate-master.tar.gz
|
||||||
dest_filename = designate.tar
|
|
||||||
|
|
||||||
[glance-base]
|
[glance-base]
|
||||||
type = url
|
type = url
|
||||||
location = http://tarballs.openstack.org/glance/glance-master.tar.gz
|
location = http://tarballs.openstack.org/glance/glance-master.tar.gz
|
||||||
dest_filename = glance.tar
|
|
||||||
|
|
||||||
[gnocchi-base]
|
[gnocchi-base]
|
||||||
type = url
|
type = url
|
||||||
location = http://tarballs.openstack.org/gnocchi/gnocchi-master.tar.gz
|
location = http://tarballs.openstack.org/gnocchi/gnocchi-master.tar.gz
|
||||||
dest_filename = gnocchi.tar
|
|
||||||
|
|
||||||
[heat-base]
|
[heat-base]
|
||||||
type = url
|
type = url
|
||||||
location = http://tarballs.openstack.org/heat/heat-master.tar.gz
|
location = http://tarballs.openstack.org/heat/heat-master.tar.gz
|
||||||
dest_filename = heat.tar
|
|
||||||
|
|
||||||
[horizon]
|
[horizon]
|
||||||
type = url
|
type = url
|
||||||
location = http://tarballs.openstack.org/horizon/horizon-master.tar.gz
|
location = http://tarballs.openstack.org/horizon/horizon-master.tar.gz
|
||||||
dest_filename = horizon.tar
|
|
||||||
|
|
||||||
[ironic-base]
|
[ironic-base]
|
||||||
type = url
|
type = url
|
||||||
location = http://tarballs.openstack.org/ironic/ironic-master.tar.gz
|
location = http://tarballs.openstack.org/ironic/ironic-master.tar.gz
|
||||||
dest_filename = ironic.tar
|
|
||||||
|
|
||||||
[keystone]
|
[keystone]
|
||||||
type = url
|
type = url
|
||||||
location = http://tarballs.openstack.org/keystone/keystone-master.tar.gz
|
location = http://tarballs.openstack.org/keystone/keystone-master.tar.gz
|
||||||
dest_filename = keystone.tar
|
|
||||||
|
|
||||||
[magnum-base]
|
[magnum-base]
|
||||||
type = url
|
type = url
|
||||||
location = http://tarballs.openstack.org/magnum/magnum-master.tar.gz
|
location = http://tarballs.openstack.org/magnum/magnum-master.tar.gz
|
||||||
dest_filename = magnum.tar
|
|
||||||
|
|
||||||
[murano-base]
|
[murano-base]
|
||||||
type = url
|
type = url
|
||||||
location = http://tarballs.openstack.org/murano/murano-master.tar.gz
|
location = http://tarballs.openstack.org/murano/murano-master.tar.gz
|
||||||
dest_filename = murano.tar
|
|
||||||
|
|
||||||
[neutron-base]
|
[neutron-base]
|
||||||
type = url
|
type = url
|
||||||
location = http://tarballs.openstack.org/neutron/neutron-master.tar.gz
|
location = http://tarballs.openstack.org/neutron/neutron-master.tar.gz
|
||||||
dest_filename = neutron.tar
|
|
||||||
|
|
||||||
[nova-base]
|
[nova-base]
|
||||||
type = url
|
type = url
|
||||||
location = http://tarballs.openstack.org/nova/nova-master.tar.gz
|
location = http://tarballs.openstack.org/nova/nova-master.tar.gz
|
||||||
dest_filename = nova.tar
|
|
||||||
|
|
||||||
[nova-novncproxy]
|
[nova-novncproxy]
|
||||||
type = url
|
type = url
|
||||||
location = http://github.com/kanaka/noVNC/tarball/v0.5.1
|
location = http://github.com/kanaka/noVNC/tarball/v0.5.1
|
||||||
dest_filename = novnc.tar
|
|
||||||
|
|
||||||
[swift-base]
|
[swift-base]
|
||||||
type = url
|
type = url
|
||||||
location = http://tarballs.openstack.org/swift/swift-master.tar.gz
|
location = http://tarballs.openstack.org/swift/swift-master.tar.gz
|
||||||
dest_filename = swift.tar
|
|
||||||
|
|
||||||
[zaqar]
|
[zaqar]
|
||||||
type = url
|
type = url
|
||||||
location = http://tarballs.openstack.org/zaqar/zaqar-master.tar.gz
|
location = http://tarballs.openstack.org/zaqar/zaqar-master.tar.gz
|
||||||
dest_filename = zaqar.tar
|
|
||||||
|
@ -10,7 +10,7 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD ceilometer.tar /
|
ADD ceilometer-base.tar /
|
||||||
RUN ln -s /ceilometer-* ceilometer \
|
RUN ln -s /ceilometer-* ceilometer \
|
||||||
&& useradd --user-group ceilometer \
|
&& useradd --user-group ceilometer \
|
||||||
&& pip --no-cache-dir install /ceilometer \
|
&& pip --no-cache-dir install /ceilometer \
|
||||||
|
@ -33,7 +33,7 @@ RUN apt-get install -y --no-install-recommends lvm2 \
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
ADD cinder.tar /
|
ADD cinder-base.tar /
|
||||||
RUN ln -s /cinder-* cinder \
|
RUN ln -s /cinder-* cinder \
|
||||||
&& useradd --user-group cinder \
|
&& useradd --user-group cinder \
|
||||||
&& pip --no-cache-dir install /cinder \
|
&& pip --no-cache-dir install /cinder \
|
||||||
|
@ -26,7 +26,7 @@ RUN echo '{{ install_type}} not yet available for {{ base_distro }}' \
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD designate.tar /
|
ADD designate-base.tar /
|
||||||
RUN ln -s /designate-* designate \
|
RUN ln -s /designate-* designate \
|
||||||
&& useradd --user-group designate \
|
&& useradd --user-group designate \
|
||||||
&& pip --no-cache-dir install /designate \
|
&& pip --no-cache-dir install /designate \
|
||||||
|
@ -17,7 +17,7 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD glance.tar /
|
ADD glance-base.tar /
|
||||||
RUN ln -s /glance-* glance \
|
RUN ln -s /glance-* glance \
|
||||||
&& useradd --user-group glance \
|
&& useradd --user-group glance \
|
||||||
&& pip --no-cache-dir install /glance \
|
&& pip --no-cache-dir install /glance \
|
||||||
|
@ -14,7 +14,7 @@ RUN apt-get install -y --no-install-recommends libpq-dev \
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
ADD gnocchi.tar /
|
ADD gnocchi-base.tar /
|
||||||
RUN ln -s /gnocchi-* gnocchi \
|
RUN ln -s /gnocchi-* gnocchi \
|
||||||
&& useradd --user-group gnocchi \
|
&& useradd --user-group gnocchi \
|
||||||
&& pip --no-cache-dir install /gnocchi \
|
&& pip --no-cache-dir install /gnocchi \
|
||||||
|
@ -16,7 +16,7 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD heat.tar /
|
ADD heat-base.tar /
|
||||||
RUN ln -s /heat-* heat \
|
RUN ln -s /heat-* heat \
|
||||||
&& useradd --user-group heat \
|
&& useradd --user-group heat \
|
||||||
&& pip --no-cache-dir install /heat \
|
&& pip --no-cache-dir install /heat \
|
||||||
|
@ -22,7 +22,7 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD ironic.tar /
|
ADD ironic-base.tar /
|
||||||
RUN ln -s /ironic-* ironic \
|
RUN ln -s /ironic-* ironic \
|
||||||
&& useradd --user-group ironic \
|
&& useradd --user-group ironic \
|
||||||
&& pip --no-cache-dir install /ironic \
|
&& pip --no-cache-dir install /ironic \
|
||||||
|
@ -18,7 +18,7 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD magnum.tar /
|
ADD magnum-base.tar /
|
||||||
RUN ln -s /magnum-* magnum \
|
RUN ln -s /magnum-* magnum \
|
||||||
&& useradd --user-group magnum \
|
&& useradd --user-group magnum \
|
||||||
&& pip --no-cache-dir install /magnum \
|
&& pip --no-cache-dir install /magnum \
|
||||||
|
@ -8,7 +8,7 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
|
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD murano.tar /
|
ADD murano-base.tar /
|
||||||
RUN ln -s /murano-* murano \
|
RUN ln -s /murano-* murano \
|
||||||
&& useradd --user-group murano \
|
&& useradd --user-group murano \
|
||||||
&& pip --no-cache-dir install /murano \
|
&& pip --no-cache-dir install /murano \
|
||||||
|
@ -31,7 +31,7 @@ RUN apt-get install -y --no-install-recommends \
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
ADD neutron.tar /
|
ADD neutron-base.tar /
|
||||||
RUN ln -s /neutron-* neutron \
|
RUN ln -s /neutron-* neutron \
|
||||||
&& useradd --user-group neutron \
|
&& useradd --user-group neutron \
|
||||||
&& pip --no-cache-dir install /neutron \
|
&& pip --no-cache-dir install /neutron \
|
||||||
|
@ -39,7 +39,7 @@ RUN apt-get install -y --no-install-recommends \
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
ADD nova.tar /
|
ADD nova-base.tar /
|
||||||
RUN ln -s /nova-* nova \
|
RUN ln -s /nova-* nova \
|
||||||
&& useradd --user-group nova \
|
&& useradd --user-group nova \
|
||||||
&& pip --no-cache-dir install /nova \
|
&& pip --no-cache-dir install /nova \
|
||||||
|
@ -20,7 +20,7 @@ RUN yum -y install \
|
|||||||
|
|
||||||
{% elif base_distro in ['ubuntu', 'debian'] %}
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
||||||
|
|
||||||
ADD novnc.tar /
|
ADD nova-novncproxy.tar /
|
||||||
RUN ln -s /kanaka-noVNC-* /usr/share/novnc
|
RUN ln -s /kanaka-noVNC-* /usr/share/novnc
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -15,7 +15,7 @@ RUN echo '{{ install_type}} not yet available for {{ base_distro }}' \
|
|||||||
|
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD swift.tar /
|
ADD swift-base.tar /
|
||||||
RUN ln -s /swift-* swift \
|
RUN ln -s /swift-* swift \
|
||||||
&& useradd --user-group swift \
|
&& useradd --user-group swift \
|
||||||
&& pip --no-cache-dir install /swift \
|
&& pip --no-cache-dir install /swift \
|
||||||
|
@ -89,7 +89,7 @@ class WorkerThread(Thread):
|
|||||||
def process_source(self, image):
|
def process_source(self, image):
|
||||||
source = image['source']
|
source = image['source']
|
||||||
dest_dir = image['path']
|
dest_dir = image['path']
|
||||||
dest_tar = os.path.join(dest_dir, source['dest'])
|
dest_tar = os.path.join(dest_dir, image['name'] + '.tar')
|
||||||
|
|
||||||
if source.get('type') == 'url':
|
if source.get('type') == 'url':
|
||||||
LOG.debug("{}:Getting tarball from {}".format(image['name'],
|
LOG.debug("{}:Getting tarball from {}".format(image['name'],
|
||||||
@ -135,7 +135,7 @@ class WorkerThread(Thread):
|
|||||||
return
|
return
|
||||||
|
|
||||||
# Set time on destination tarball to epoch 0
|
# Set time on destination tarball to epoch 0
|
||||||
os.utime(os.path.join(dest_dir, source['dest']), (0, 0))
|
os.utime(dest_tar, (0, 0))
|
||||||
|
|
||||||
def builder(self, image):
|
def builder(self, image):
|
||||||
LOG.debug('{}:Processing'.format(image['name']))
|
LOG.debug('{}:Processing'.format(image['name']))
|
||||||
@ -440,8 +440,6 @@ class KollaWorker(object):
|
|||||||
'type')
|
'type')
|
||||||
image['source']['source'] = self.config.get(image['name'],
|
image['source']['source'] = self.config.get(image['name'],
|
||||||
'location')
|
'location')
|
||||||
image['source']['dest'] = self.config.get(image['name'],
|
|
||||||
'dest_filename')
|
|
||||||
if image['source']['type'] == 'git':
|
if image['source']['type'] == 'git':
|
||||||
image['source']['reference'] = \
|
image['source']['reference'] = \
|
||||||
self.config.get(image['name'], 'reference')
|
self.config.get(image['name'], 'reference')
|
||||||
|
Loading…
Reference in New Issue
Block a user