Skip to content

Commit a7fe4c2

Browse files
committed
tar xf the data-test/chart too
Signed-off-by: Maël Valais <mael@vls.dev>
1 parent 960ccc2 commit a7fe4c2

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

Dockerfile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,21 @@
88

99
FROM gcr.io/cloud-marketplace-tools/k8s/deployer_helm/onbuild
1010

11-
COPY data-test/ /data-test/
11+
# The schema,yaml and chart/ have already been added thanks to the
12+
# "onbuild" Dockerfile:
13+
# https://github.com/GoogleCloudPlatform/marketplace-k8s-app-tools/blob/4335f9/marketplace/deployer_helm_base/onbuild/Dockerfile#L4-L12
14+
#
15+
# Since the deployer image must only contain compressed charts, i.e.,
16+
# chart/chart.tar.gz (which is created by the "onbuild" Docker image), and
17+
# a data-test/chart/chart.tar.gz. That is why we need to tar the chart in
18+
# data-test.
19+
COPY data-test/schema.yaml /data-test/schema.yaml
20+
COPY data-test/chart /tmp/data-test/chart.tmp
21+
RUN cd /tmp/data-test \
22+
&& mv chart.tmp/* chart \
23+
&& tar -czvf /tmp/data-test/chart.tar.gz chart \
24+
&& mv chart.tar.gz /data-test/chart/
25+
1226

1327
# If you wonder what magic is this, take a look at:
1428
# https://github.com/GoogleCloudPlatform/marketplace-k8s-app-tools/blob/4335f9/marketplace/deployer_helm_base/onbuild/Dockerfile#L16-L20

0 commit comments

Comments
 (0)