forked from submariner-io/submariner
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.dapper
19 lines (14 loc) · 985 Bytes
/
Dockerfile.dapper
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
ARG BASE_BRANCH
FROM quay.io/submariner/shipyard-dapper-base:${BASE_BRANCH}
ENV DAPPER_ENV="REPO MAKEFLAGS TAG QUAY_USERNAME QUAY_PASSWORD GITHUB_REF CLUSTERS_ARGS DEPLOY_ARGS CLEANUP_ARGS IMAGES_ARGS RELEASE_ARGS FOCUS SKIP PLUGIN" \
DAPPER_SOURCE=/go/src/github.com/submariner-io/submariner DAPPER_DOCKER_SOCKET=true
ENV DAPPER_OUTPUT=${DAPPER_SOURCE}/output
ENV PROTOC_VERSION=3.15.5
# alternative: dnf install -y --nodocs --setopt=install_weak_deps=False golang-google-protobuf protobuf-compiler && dnf -y clean all
RUN curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.15.5/protoc-${PROTOC_VERSION}-linux-x86_64.zip && \
unzip protoc-${PROTOC_VERSION}-linux-x86_64.zip -d /usr/local && \
rm -f protoc-${PROTOC_VERSION}-linux-x86_64.zip && \
GO111MODULE=off go get google.golang.org/protobuf/cmd/protoc-gen-go && \
GO111MODULE=off go get github.com/uw-labs/lichen
WORKDIR ${DAPPER_SOURCE}
ENTRYPOINT ["/opt/shipyard/scripts/entry"]