2022-01-04 15:27:25 +00:00
|
|
|
ARG GOVERSION
|
|
|
|
ARG DISTRIBUTION
|
|
|
|
FROM golang:${GOVERSION} as builder
|
2021-12-28 11:04:01 +00:00
|
|
|
|
|
|
|
ARG TARGETARCH
|
|
|
|
|
2022-01-04 15:27:25 +00:00
|
|
|
RUN apk add g++ make
|
2021-12-28 11:04:01 +00:00
|
|
|
RUN go install github.com/go-delve/delve/cmd/dlv@latest
|
|
|
|
|
2022-01-04 15:27:25 +00:00
|
|
|
FROM ${DISTRIBUTION} as artifact
|
2021-12-28 11:04:01 +00:00
|
|
|
|
|
|
|
ARG RELEASE_MODE
|
|
|
|
ARG TARGETARCH
|
|
|
|
ARG VERSION
|
|
|
|
|
|
|
|
LABEL name="kube-arangodb" \
|
|
|
|
vendor="ArangoDB" \
|
|
|
|
version="${VERSION}" \
|
|
|
|
release="${VERSION}" \
|
|
|
|
summary="ArangoDB Kubernetes Oparator" \
|
|
|
|
description="ArangoDB Kubernetes Operator" \
|
|
|
|
maintainer="redhat@arangodb.com"
|
|
|
|
|
|
|
|
RUN apk add --no-cache libc6-compat
|
|
|
|
|
|
|
|
ADD ./LICENSE /licenses/LICENSE
|
|
|
|
ADD bin/${RELEASE_MODE}/linux/${TARGETARCH}/arangodb_operator /usr/bin/arangodb_operator
|
2022-06-13 12:44:58 +00:00
|
|
|
ADD bin/${RELEASE_MODE}/linux/${TARGETARCH}/arangodb_operator_ops /usr/bin/arangodb_operator_ops
|
2021-12-28 11:04:01 +00:00
|
|
|
|
|
|
|
COPY --from=builder /go/bin/dlv /usr/bin/dlv
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/dlv", "--listen=:2345", "--headless=true", "--continue", "--accept-multiclient", "--api-version=2", "exec", "/usr/bin/arangodb_operator", "--" ]
|
|
|
|
|