aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorBertrand Lallau <bertrand.lallau@thalesgroup.com>2017-03-29 14:20:13 +0200
committerBertrand Lallau <bertrand.lallau@thalesgroup.com>2017-04-06 12:28:25 +0200
commit76bc0f69cc801a5e5796f1a8a70c13d6355bd6c8 (patch)
tree65f3664fff14ce6fd56a059468215dd6b16bce95 /docker
parent3bd8fe8e101eceaeb366e8cd2cb4ae20ac3cb5b7 (diff)
downloadkolla-76bc0f69cc801a5e5796f1a8a70c13d6355bd6c8.tar.gz
kolla-76bc0f69cc801a5e5796f1a8a70c13d6355bd6c8.zip
Remove Ubuntu Trove postinst script hack
trove-common version 1:7.0.0-0ubuntu1~cloud0 coming from the following repo https://github.com/openstack/kolla/blob/master/docker/base/sources.list.ubuntu#L11 has been fixed. Temporary hack must be removed. Change-Id: I19ce6f0a5d5f0fe0d390fcb05f775f860abd146c
Diffstat (limited to 'docker')
-rw-r--r--docker/macros.j211
-rw-r--r--docker/trove/trove-base/Dockerfile.j23
2 files changed, 1 insertions, 13 deletions
diff --git a/docker/macros.j2 b/docker/macros.j2
index 24083bcc0..e40206071 100644
--- a/docker/macros.j2
+++ b/docker/macros.j2
@@ -41,17 +41,6 @@ RUN usermod --append --home {{ homedir }} --groups kolla {{ name }} \
&& chown -R {{ user.uid }}:{{ user.gid }} {{ homedir }}
{% endmacro %}
-
-{% macro ubuntu_trove_bug_1651852() %}
-{# NOTE(SamYaple): The postinst script breaks because it calls getenv instead of getent #}
-{# TODO(SamYaple): Remove once issue is fixed -- https://bugs.launchpad.net/ubuntu/+source/openstack-trove/+bug/1651852 #}
-RUN apt-get -y install --no-install-recommends trove-common \
- || sed -i 's/getenv/getent/g' /var/lib/dpkg/info/trove-common.postinst \
- && apt-get -y install -f \
- && apt-get clean
-{% endmacro %}
-
-
{% macro debian_haproxy_existing_user_fix() %}
{# NOTE(SamYaple): The postinst script breaks if the user 'haproxy' already exists #}
RUN apt-get -y install --no-install-recommends haproxy \
diff --git a/docker/trove/trove-base/Dockerfile.j2 b/docker/trove/trove-base/Dockerfile.j2
index f1cc2d72c..2682c5a3b 100644
--- a/docker/trove/trove-base/Dockerfile.j2
+++ b/docker/trove/trove-base/Dockerfile.j2
@@ -12,8 +12,7 @@ MAINTAINER {{ maintainer }}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set trove_base_packages = ['openstack-trove-common'] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
- {{ macros.ubuntu_trove_bug_1651852() }}
- {% set trove_base_packages = [] %}
+ {% set trove_base_packages = ['trove-common'] %}
{% endif %}
{{ macros.install_packages(trove_base_packages | customizable("packages")) }}