-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathDockerfile.src
29 lines (22 loc) · 1.19 KB
/
Dockerfile.src
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
# need helm CLI for final image
FROM registry.ci.openshift.org/ocp/4.8:metering-helm as helm
# image needs kubectl, so we copy `oc` from cli image to use as kubectl.
FROM registry.ci.openshift.org/ocp/4.8:cli as cli
# need golang for the unit/vendor/verify CI checks
FROM registry.ci.openshift.org/ocp/builder:golang-1.15
# go get faq via static Linux binary approach
ARG LATEST_RELEASE=0.0.6
RUN curl -Lo /usr/local/bin/faq https://github.com/jzelinskie/faq/releases/download/$LATEST_RELEASE/faq-linux-amd64
RUN chmod +x /usr/local/bin/faq
ARG OPM_RELEASE=v1.15.0
RUN curl -Lo /usr/local/bin/opm https://github.com/operator-framework/operator-registry/releases/download/$OPM_RELEASE/linux-amd64-opm
RUN chmod +x /usr/local/bin/opm
ARG OPERATOR_SDK_RELEASE=v1.2.0
RUN curl -Lo /usr/local/bin/operator-sdk https://github.com/operator-framework/operator-sdk/releases/download/$OPERATOR_SDK_RELEASE/operator-sdk-$OPERATOR_SDK_RELEASE-x86_64-linux-gnu
RUN chmod +x /usr/local/bin/operator-sdk
COPY --from=cli /usr/bin/oc /usr/bin/
COPY --from=helm /usr/local/bin/helm /usr/local/bin/helm
RUN ln -s /usr/bin/oc /usr/bin/kubectl
RUN go get -u github.com/jstemmer/go-junit-report
ENV GOCACHE='/tmp'
CMD ["/bin/bash"]