forked from cyberark/conjur-authn-k8s-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.test
29 lines (23 loc) · 924 Bytes
/
Dockerfile.test
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
FROM golang:1.20-alpine
MAINTAINER CyberArk Software Ltd.
LABEL id="conjur-authn-k8s-client-test-runner"
# On CyberArk dev laptops, golang module dependencies are downloaded with a
# corporate proxy in the middle. For these connections to succeed we need to
# configure the proxy CA certificate in build containers.
#
# To allow this script to also work on non-CyberArk laptops where the CA
# certificate is not available, we copy the (potentially empty) directory
# and update container certificates based on that, rather than rely on the
# CA file itself.
ADD build_ca_certificate /usr/local/share/ca-certificates/
RUN update-ca-certificates
ENTRYPOINT [ "go", "test", "-v", "-timeout", "3m" ]
WORKDIR /conjur-authn-k8s-client
RUN apk add -u curl \
gcc \
git \
mercurial \
musl-dev
COPY go.mod go.sum /conjur-authn-k8s-client/
RUN go mod download
COPY . .