Skip to content

Commit db7dfe1

Browse files
committed
Add a storm-base image
Refactor storm image dependencies. Previously we had: base -> storm -> monasca-thresh Both storm and monasca-thresh images are final, and each includes a footer. This causes issues when the footer expects to be at the end of the image, or there to be only a single footer. In particular, since I2592a736206eaec811290e9fbdbf2540c0518ffe, the footer used in CI jobs reverts to the public package mirrors. This change introduces a storm-base image, and refactors the dependency chain: base -> storm-base -> storm base -> storm-base -> monasca-thresh Related-Bug: #1902101 Change-Id: I53e8ba8d4baa4434cf3c49ed94d1f7cb44099bee (cherry picked from commit 93204ec)
1 parent cf795f3 commit db7dfe1

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

docker/monasca/monasca-thresh/Dockerfile.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
FROM {{ namespace }}/{{ infra_image_prefix }}storm:{{ tag }}
1+
FROM {{ namespace }}/{{ infra_image_prefix }}storm-base:{{ tag }}
22
{% block labels %}
33
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
44
{% endblock %}
55

6-
USER root
7-
86
{% block monasca_thresh_header %}{% endblock %}
97

108
{% import "macros.j2" as macros with context %}

docker/storm/Dockerfile.j2 renamed to docker/storm/storm-base/Dockerfile.j2

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM {{ namespace }}/{{ infra_image_prefix }}base:{{ tag }}
33
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
44
{% endblock %}
55

6-
{% block storm %}{% endblock %}
6+
{% block storm_base_header %}{% endblock %}
77

88
{% import "macros.j2" as macros with context %}
99

@@ -52,7 +52,4 @@ ENV PYTHON={{ '/usr/bin/python' ~ distro_python_version }}
5252
COPY extend_start.sh /usr/local/bin/kolla_extend_start
5353
RUN chmod 755 /usr/local/bin/kolla_extend_start
5454

55-
{% block storm_footer %}{% endblock %}
56-
{% block footer %}{% endblock %}
57-
58-
USER storm
55+
{% block storm_base_footer %}{% endblock %}
File renamed without changes.

docker/storm/storm/Dockerfile.j2

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM {{ namespace }}/{{ infra_image_prefix }}storm-base:{{ tag }}
2+
{% block labels %}
3+
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
4+
{% endblock %}
5+
6+
{% block storm_header %}{% endblock %}
7+
8+
{% import "macros.j2" as macros with context %}
9+
10+
{% block storm_footer %}{% endblock %}
11+
{% block footer %}{% endblock %}
12+
13+
USER storm

0 commit comments

Comments
 (0)