-
Notifications
You must be signed in to change notification settings - Fork 156
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
Showing
32 changed files
with
675 additions
and
417 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
10 changes: 10 additions & 0 deletions
10
build-info-extractor-docker/src/test/resources/artifactory/Dockerfile
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,10 @@ | ||
# Wrap jfrog-testing-infra in a contaner for the docker tests. | ||
# We run a container with Artifactory since docker tests may need to spin up a contaner to build images inside. | ||
|
||
FROM golang:buster | ||
RUN go install github.com/jfrog/jfrog-testing-infra/local-rt-setup@latest | ||
ENV JFROG_HOME=/jfrog_home | ||
WORKDIR /jfrog_home | ||
EXPOSE 8082 | ||
EXPOSE 8081 | ||
CMD ["sh","-c","local-rt-setup; sleep infinity"] |
4 changes: 4 additions & 0 deletions
4
build-info-extractor-docker/src/test/resources/artifactory/start.sh
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,4 @@ | ||
docker build -t artifactory . | ||
docker network prune -f | ||
docker network create "test-network" | ||
docker run -p 8082:8082 -p 8081:8081 -d -t --name artifactory --network "test-network" --env RTLIC="$RTLIC" --env GOPROXY="direct" artifactory |
4 changes: 4 additions & 0 deletions
4
build-info-extractor-docker/src/test/resources/artifactory/stop.sh
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,4 @@ | ||
#!/bin/bash | ||
|
||
docker rm --force -v "artifactory" | ||
docker network rm "test-network" |
4 changes: 4 additions & 0 deletions
4
...tractor-docker/src/test/resources/integration/settings/build-info-tests-docker-local.json
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,4 @@ | ||
{ | ||
"rclass": "local", | ||
"packageType": "docker" | ||
} |
6 changes: 6 additions & 0 deletions
6
...ractor-docker/src/test/resources/integration/settings/build-info-tests-docker-remote.json
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,6 @@ | ||
{ | ||
"rclass": "remote", | ||
"packageType": "docker", | ||
"repoLayoutRef": "simple-default", | ||
"url": "https://registry-1.docker.io/" | ||
} |
9 changes: 9 additions & 0 deletions
9
...actor-docker/src/test/resources/integration/settings/build-info-tests-docker-virtual.json
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,9 @@ | ||
{ | ||
"rclass": "virtual", | ||
"packageType": "docker", | ||
"repositories": [ | ||
"${LOCAL_REPO_1}", | ||
"${REMOTE_REPO}" | ||
], | ||
"defaultDeploymentRepo": "${LOCAL_REPO_1}" | ||
} |
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
Oops, something went wrong.