forked from spinnaker/rosco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.slim
39 lines (30 loc) · 1.19 KB
/
Dockerfile.slim
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
38
FROM alpine:3.11
MAINTAINER [email protected]
COPY rosco-web/build/install/rosco /opt/rosco
COPY rosco-web/config /opt/rosco
COPY halconfig/packer /opt/rosco/config/packer
WORKDIR /packer
RUN apk --no-cache add --update bash wget curl openssl openjdk11-jre git && \
wget https://releases.hashicorp.com/packer/1.4.5/packer_1.4.5_linux_amd64.zip && \
unzip packer_1.4.5_linux_amd64.zip && \
rm packer_1.4.5_linux_amd64.zip
ENV PATH "/packer:$PATH"
# Install Helm 3
RUN wget https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get-helm-3 && \
chmod +x get-helm-3 && \
./get-helm-3 && \
rm get-helm-3 && \
mv /usr/local/bin/helm /usr/local/bin/helm3
# Install Helm 2
RUN wget https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get && \
chmod +x get && \
./get && \
rm get
RUN mkdir kustomize && \
curl -s -L https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v3.5.4/kustomize_v3.5.4_linux_amd64.tar.gz |\
tar xvz -C kustomize/
ENV PATH "kustomize:$PATH"
RUN adduser -D -S spinnaker
RUN mkdir -p /opt/rosco/plugins && chown -R spinnaker:nogroup /opt/rosco/plugins
USER spinnaker
CMD ["/opt/rosco/bin/rosco"]