File tree Expand file tree Collapse file tree 2 files changed +8
-16
lines changed Expand file tree Collapse file tree 2 files changed +8
-16
lines changed Original file line number Diff line number Diff line change
1
+ # go hub binary
1
2
FROM golang:alpine as go
2
-
3
3
RUN apk --update add ca-certificates git
4
-
5
4
RUN go get github.com/github/hub
6
5
7
- FROM python:3.7 as yq
8
-
6
+ # python yq binary
7
+ FROM six8/pyinstaller-alpine as yq
9
8
ARG YQ_VERSION=2.10.0
9
+ ENV PATH="/pyinstaller:$PATH"
10
+ RUN pip install yq==${YQ_VERSION}
11
+ RUN pyinstaller --noconfirm --onefile --log-level DEBUG --clean --distpath /tmp/ $(which yq)
10
12
11
- RUN pip install yq==${YQ_VERSION} && \
12
- pip install pyinstaller==3.6 && \
13
- pyinstaller --onefile /usr/local/bin/yq --dist /tmp/
14
-
13
+ # Main
15
14
FROM codefresh/node:10.15.3-alpine3.11
16
15
17
16
RUN apk --update add --no-cache ca-certificates git curl bash yarn
18
17
19
18
COPY --from=go /go/bin/hub /usr/local/bin/hub
20
19
COPY --from=yq /tmp/yq /usr/local/bin/yq
21
20
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
28
-
29
21
ARG JQ_VERSION=1.6
30
22
31
23
RUN wget -O /usr/local/bin/jq https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64 && \
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.41.11 " ,
3
+ "version" : " 0.41.12 " ,
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