forked from rancher/gitjob
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dapper
34 lines (29 loc) · 1.22 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
33
34
FROM ghcr.io/oracle/oraclelinux:7-slim
ARG DAPPER_HOST_ARCH
ENV ARCH $DAPPER_HOST_ARCH
RUN yum-config-manager --enable ol7_optional_latest && \
yum-config-manager --enable ol7_addons && \
yum -y update && \
yum -y install bash git docker vim less file curl wget && \
# install golang 1.17
yum install -y oracle-golang-release-el7 && \
yum-config-manager --enable ol7_developer_golang118 && \
yum install -y golang-1.18.5 && \
# original Dockerfile.dapper used Helm v3.2 - 3.3.4 is the nearest available version (on olcne12 repo)
yum-config-manager --add-repo https://yum.oracle.com/repo/OracleLinux/OL7/olcne12/x86_64/ && \
yum -y install helm-3.3.4 && \
yum clean all
RUN if [ "${ARCH}" == "amd64" ]; then \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.46.2; \
fi
ENV DAPPER_ENV REPO TAG DRONE_TAG
ENV DAPPER_SOURCE /go/src/github.com/rancher/gitjob/
ENV DAPPER_OUTPUT ./bin ./dist
ENV DAPPER_DOCKER_SOCKET true
ENV DAPPER_RUN_ARGS "-v gitjob-pkg:/go/pkg -v gitjob-cache:/root/.cache/go-build"
ENV GOPATH /go
ENV GOCACHE /root/.cache/go-build
ENV HOME ${DAPPER_SOURCE}
WORKDIR ${DAPPER_SOURCE}
ENTRYPOINT ["./scripts/entry"]
CMD ["ci"]