forked from jenkins-x/jx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-boot
36 lines (24 loc) · 899 Bytes
/
Dockerfile-boot
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
FROM alpine:3.12
ARG BUILD_DATE
ARG VERSION
ARG REVISION
ARG TARGETARCH
ARG TARGETOS
LABEL maintainer="jenkins-x"
RUN addgroup -S app \
&& adduser -S -g app app \
&& apk --no-cache add \
ca-certificates curl git make netcat-openbsd
ENV JX_HOME /root/.jx
ENV JX3_HOME /root/.jx
ENV YQ_VERSION "4.6.1"
RUN echo using yq version ${YQ_VERSION} and OS ${TARGETOS} arch ${TARGETARCH} && \
curl -L -s https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_${TARGETOS}_${TARGETARCH} > yq && \
chmod +x yq && mv yq /usr/bin
RUN echo using jx version ${VERSION} and OS ${TARGETOS} arch ${TARGETARCH} && \
mkdir -p /home/.jx3 && \
curl -L https://github.com/jenkins-x/jx/releases/download/v${VERSION}/jx-${TARGETOS}-${TARGETARCH}.tar.gz | tar xzv && \
mv jx /usr/bin
RUN jx upgrade plugins --boot --path /usr/bin
#RUN chown -R app:app /usr/bin/jx /home
#USER app