1
1
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.13
2
+ LABEL maintainer="pbraun@redhat.com"
2
3
3
4
ENV OPERATOR_SDK_VERSION=v0.18.2 \
4
- DELOREAN_VERSION=master \
5
5
GOFLAGS=""
6
-
7
- RUN set -o pipefail && \
8
- INSTALL_PKGS="skopeo rsync" && \
9
- yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS
10
-
11
- # install delorean (from git with no history and only the tag)
12
- # Note: Change to using pre-built binary when it's available https://issues.redhat.com/browse/DEL-288
13
- RUN mkdir -p $GOPATH/src/github.com/delorean \
14
- && cd $GOPATH/src/github.com/delorean \
15
- && git clone --depth 1 -b $DELOREAN_VERSION https://github.com/integr8ly/delorean \
16
- && cd delorean \
17
- && make build/cli \
18
- && cp delorean /usr/local/bin
19
-
20
- # install operator-sdk (from git with no history and only the tag)
21
- RUN mkdir -p $GOPATH/src/github.com/operator-framework \
22
- && cd $GOPATH/src/github.com/operator-framework \
23
- && git clone --depth 1 -b $OPERATOR_SDK_VERSION https://github.com/operator-framework/operator-sdk \
24
- && cd operator-sdk \
25
- && go mod vendor \
26
- && make tidy \
27
- && make install \
28
- && chmod -R 0777 $GOPATH \
29
- && rm -rf $GOPATH/.cache
30
-
31
- # install jq and yq
32
- RUN wget -O jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 \
33
- && chmod +x ./jq \
34
- && cp jq /usr/bin \
35
- && curl -Lo /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/3.1.2/yq_linux_amd64 \
36
- && chmod +x /usr/local/bin/yq
37
-
38
- # install nodejs
39
- ENV NODE_VERSION=12.16.3 \
40
- NPM_CONFIG_CACHE=/tmp/.npm
41
-
42
- RUN curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz" \
43
- && tar -xJf "node-v$NODE_VERSION-linux-x64.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
44
- && rm "node-v$NODE_VERSION-linux-x64.tar.xz" \
45
- && ln -s /usr/local/bin/node /usr/local/bin/nodejs
6
+ # install operator-sdk
7
+ RUN curl -LO https://github.com/operator-framework/operator-sdk/releases/download/${OPERATOR_SDK_VERSION}/operator-sdk-${OPERATOR_SDK_VERSION}-x86_64-linux-gnu && \
8
+ mv operator-sdk-${OPERATOR_SDK_VERSION}-x86_64-linux-gnu /usr/bin/operator-sdk && \
9
+ chmod +x /usr/bin/operator-sdk
0 commit comments