Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (31 loc) · 1.42 KB
/
Copy pathMakefile
File metadata and controls
38 lines (31 loc) · 1.42 KB
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
30
31
32
33
34
35
36
37
38
ifndef TEST_IMAGE
export TEST_IMAGE=ghcr.io/aquasecurity/trivy-test-images
endif
build-busybox:
docker build -t $(TEST_IMAGE):busybox-with-lockfile busybox-with-lockfile
docker push $(TEST_IMAGE):busybox-with-lockfile
docker rmi -f $(TEST_IMAGE):busybox-with-lockfile
build-containerd:
docker build -t $(TEST_IMAGE)/containerd:latest containerd
docker push $(TEST_IMAGE)/containerd:latest
docker rmi -f $(TEST_IMAGE)/containerd:latest
# CI pushes the crypto image on every change under crypto/, and gen.sh creates new keys on
# every run. Trivy golden files depend on the keys of a published tag, so regenerated material
# needs a new tag.
CRYPTO_TAG := crypto-v3
build-crypto:
docker build -t $(TEST_IMAGE):$(CRYPTO_TAG) crypto
docker push $(TEST_IMAGE):$(CRYPTO_TAG)
docker rmi -f $(TEST_IMAGE):$(CRYPTO_TAG)
gen-crypto:
docker run --rm -v "$(CURDIR)/crypto:/work" -w /work --entrypoint sh alpine/openssl:3.5.4 gen.sh
docker run --rm -v "$(CURDIR)/crypto:/work" -w /work --entrypoint sh eclipse-temurin:21.0.12.1_1-jre-alpine gen-jks.sh
build-spring4shell:
docker build --target jre11 -t $(TEST_IMAGE):spring4shell-jre11 spring4shell
docker push $(TEST_IMAGE):spring4shell-jre11
docker rmi -f $(TEST_IMAGE):spring4shell-jre11
docker build --target jre8 -t $(TEST_IMAGE):spring4shell-jre8 spring4shell
docker push $(TEST_IMAGE):spring4shell-jre8
docker rmi -f $(TEST_IMAGE):spring4shell-jre8
copy-images:
./copy-images.sh