mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 08:53:15 +01:00
Pin gradle builder container image
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
This commit is contained in:
parent
091fd1f0b0
commit
65e4e17590
@ -4,7 +4,7 @@ set -uxe
|
|||||||
# note: this can be easily done in a 1-liner, however circle CI does NOT allow volume mounts from the host in docker executors (since they are on remote hosts, where the host files are inaccessible)
|
# note: this can be easily done in a 1-liner, however circle CI does NOT allow volume mounts from the host in docker executors (since they are on remote hosts, where the host files are inaccessible)
|
||||||
|
|
||||||
PKGSDIR=$1
|
PKGSDIR=$1
|
||||||
CTRID=$(docker create -u "$(id -u):$(id -g)" -v /example-java-app -w /example-java-app gradle:jdk gradle build)
|
CTRID=$(docker create -u "$(id -u):$(id -g)" -v /example-java-app -w /example-java-app gradle:6.8.3-jdk gradle build)
|
||||||
|
|
||||||
function cleanup() {
|
function cleanup() {
|
||||||
docker rm "${CTRID}"
|
docker rm "${CTRID}"
|
||||||
@ -16,4 +16,4 @@ set +e
|
|||||||
docker cp "$(pwd)/example-java-app" "${CTRID}:/"
|
docker cp "$(pwd)/example-java-app" "${CTRID}:/"
|
||||||
docker start -a "${CTRID}"
|
docker start -a "${CTRID}"
|
||||||
mkdir -p "$PKGSDIR"
|
mkdir -p "$PKGSDIR"
|
||||||
docker cp "${CTRID}:/example-java-app/build/libs/example-java-app-gradle-0.1.0.jar" "$PKGSDIR"
|
docker cp "${CTRID}:/example-java-app/build/libs/example-java-app-gradle-0.1.0.jar" "$PKGSDIR"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user