-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4051f29
commit 324b1ee
Showing
6 changed files
with
120 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM golang:1.19-alpine | ||
MAINTAINER CyberArk Software Ltd. | ||
LABEL id="secrets-provider-for-k8s-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 | ||
|
||
WORKDIR /secrets-provider-for-k8s | ||
|
||
RUN apk add -u curl \ | ||
gcc \ | ||
git \ | ||
mercurial \ | ||
musl-dev | ||
|
||
COPY go.mod go.sum /secrets-provider-for-k8s/ | ||
|
||
RUN go mod download | ||
|
||
COPY . . | ||
|
||
ENTRYPOINT [ "go", "test", "-v" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
echo "NOTE: Running this locally requires that you have the DEV environment values uncommented in bootstrap.env!" | ||
echo "It also assumes that you have Kubernetes enabled in Docker Desktop." | ||
|
||
docker build -f Dockerfile.e2e -t secrets-provider-for-k8s-e2e-test-runner:latest . | ||
|
||
docker run --rm -t \ | ||
--volume "$PWD"/:/secrets-provider-for-k8s/test/ \ | ||
secrets-provider-for-k8s-e2e-test-runner:latest \ | ||
./e2e \ | ||
$@ | ||
|
||
echo "E2E test exit status: $?" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters