forked from rancher/support-bundle-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dapper
32 lines (26 loc) · 1.03 KB
/
Dockerfile.dapper
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
FROM registry.suse.com/bci/golang:1.18
ARG DAPPER_HOST_ARCH
ENV ARCH $DAPPER_HOST_ARCH
# -- for make rules
## install docker client
RUN zypper -n install ca-certificates awk lsb-release rsync docker containerd
## install golangci
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin" v1.50.1;
## install k8s.io and generate openapi spec
RUN mkdir -p /go/src/github.com/kubernetes && \
cd /go/src/github.com/kubernetes && \
git clone https://github.com/kubernetes/kubernetes && \
cd kubernetes && \
git checkout v1.23.7 && \
make generated_files
# -- for dapper
ENV DAPPER_RUN_ARGS --privileged --network host -v /run/containerd/containerd.sock:/run/containerd/containerd.sock
ENV GO111MODULE off
ENV DAPPER_ENV REPO TAG DRONE_TAG CROSS GOPROXY
ENV DAPPER_DOCKER_SOCKET true
ENV DAPPER_SOURCE /go/src/github.com/rancher/support-bundle-kit/
ENV DAPPER_OUTPUT ./bin ./dist
# -- for dapper
WORKDIR ${DAPPER_SOURCE}
ENTRYPOINT ["./scripts/entry"]
CMD ["ci"]