-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
37 lines (28 loc) · 1.14 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
ARG MARKETPLACE_TOOLS_TAG
FROM marketplace.gcr.io/google/c2d-debian11 AS build
RUN apt-get update \
&& apt-get install -y --no-install-recommends gettext
ADD chart/snorkelflow /tmp/chart
RUN cd /tmp && tar -czvf /tmp/snorkelflow.tar.gz chart
ADD apptest/deployer/snorkelflow /tmp/test/chart
RUN cd /tmp/test \
&& tar -czvf /tmp/test/snorkelflow.tar.gz chart/
ADD schema.yaml /tmp/schema.yaml
ARG REGISTRY
ARG TAG
RUN cat /tmp/schema.yaml \
| env -i "REGISTRY=$REGISTRY" "TAG=$TAG" envsubst \
> /tmp/schema.yaml.new \
&& mv /tmp/schema.yaml.new /tmp/schema.yaml
ADD apptest/deployer/schema.yaml /tmp/apptest/schema.yaml
RUN cat /tmp/apptest/schema.yaml \
| env -i "REGISTRY=$REGISTRY" "TAG=$TAG" envsubst \
> /tmp/apptest/schema.yaml.new \
&& mv /tmp/apptest/schema.yaml.new /tmp/apptest/schema.yaml
FROM gcr.io/cloud-marketplace-tools/k8s/deployer_helm
COPY --from=build /tmp/snorkelflow.tar.gz /data/chart/
COPY --from=build /tmp/test/snorkelflow.tar.gz /data-test/chart/
COPY --from=build /tmp/apptest/schema.yaml /data-test/
COPY --from=build /tmp/schema.yaml /data/
ENV WAIT_FOR_READY_TIMEOUT 1800
ENV TESTER_TIMEOUT 1800