forked from rancher/fleet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dapper
20 lines (15 loc) · 691 Bytes
/
Dockerfile.dapper
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM registry.suse.com/bci/golang:1.21
ARG DAPPER_HOST_ARCH
ENV ARCH $DAPPER_HOST_ARCH
RUN zypper -n install git docker vim wget
RUN curl -sL https://get.helm.sh/helm-v3.9.3-linux-${ARCH}.tar.gz | tar xvzf - -C /usr/local/bin --strip-components=1
# Temporarily needed for running cmd/codegen/hack/patch_crd_descriptions.sh
RUN zypper -n install jq python3-pip && python3 -m pip install yq
ENV DAPPER_ENV REPO TAG DRONE_TAG CROSS DEBUG
ENV DAPPER_SOURCE /go/src/github.com/rancher/fleet/
ENV DAPPER_OUTPUT ./bin ./dist
ENV DAPPER_DOCKER_SOCKET true
ENV DAPPER_RUN_ARGS "-v fleet-pkg:/go/pkg -v fleet-cache:/root/.cache"
WORKDIR ${DAPPER_SOURCE}
ENTRYPOINT ["./scripts/entry"]
CMD ["ci"]