File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,33 @@ RUN apk --update add ca-certificates git
4
4
5
5
RUN go get github.com/github/hub
6
6
7
+ FROM python:3.7 as yq
8
+
9
+ ARG YQ_VERSION=2.10.0
10
+
11
+ RUN pip install yq==${YQ_VERSION} && \
12
+ pip install pyinstaller==3.6 && \
13
+ pyinstaller --onefile /usr/local/bin/yq --dist /tmp/
14
+
7
15
FROM codefresh/node:10.15.3-alpine3.11
8
16
9
17
RUN apk --update add --no-cache ca-certificates git curl bash yarn
10
18
11
19
COPY --from=go /go/bin/hub /usr/local/bin/hub
20
+ COPY --from=yq /tmp/yq /usr/local/bin/yq
21
+
22
+ # add glibc compatibility layer for the compiled yq
23
+ RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
24
+ wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.30-r0/glibc-2.30-r0.apk && \
25
+ wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.30-r0/glibc-bin-2.30-r0.apk && \
26
+ apk add glibc-2.30-r0.apk glibc-bin-2.30-r0.apk && \
27
+ rm /etc/apk/keys/sgerrand.rsa.pub
12
28
13
29
ARG JQ_VERSION=1.6
14
- ARG YQ_VERSION=2.4.1
15
30
16
31
RUN wget -O /usr/local/bin/jq https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64 && \
17
32
chmod +x /usr/local/bin/*
18
33
19
- RUN apk add py-pip && pip install yq
20
34
WORKDIR /cf-cli
21
35
22
36
COPY package.json /cf-cli
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.41.1 " ,
3
+ "version" : " 0.41.11 " ,
4
4
"description" : " Codefresh command line utility" ,
5
5
"main" : " index.js" ,
6
6
"preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments