Skip to content

Commit

Permalink
chore: update busybox image for acceptance tests (anchore#2663)
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Zantow <kzantow@gmail.com>
  • Loading branch information
kzantow authored Feb 22, 2024
1 parent cdf1e0b commit 108a5da
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/install/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ NAME=syft
IMAGE_NAME=$(NAME)-install.sh-env
UBUNTU_IMAGE=$(IMAGE_NAME):ubuntu-20.04
ALPINE_IMAGE=$(IMAGE_NAME):alpine-3.6
BUSYBOX_IMAGE=busybox:1.35
BUSYBOX_IMAGE=busybox:1.36.1-musl

ENVS=./environments
DOCKER_RUN=docker run --rm -t -w /project/test/install -v $(shell pwd)/../../:/project
Expand Down Expand Up @@ -32,7 +32,7 @@ ci-test-mac: unit-local acceptance-local

# note: do not add acceptance-local to this list
.PHONY: acceptance
acceptance: acceptance-ubuntu-20.04 acceptance-alpine-3.6 acceptance-busybox-1.35
acceptance: acceptance-ubuntu-20.04 acceptance-alpine-3.6 acceptance-busybox

.PHONY: unit
unit: unit-ubuntu-20.04
Expand All @@ -55,7 +55,7 @@ acceptance-previous-release-local:
syft version | grep $(shell echo $(PREVIOUS_RELEASE)| tr -d "v")

.PHONY: save
save: ubuntu-20.04 alpine-3.6 busybox-1.35
save: ubuntu-20.04 alpine-3.6 pull-busybox
@mkdir cache || true
docker image save -o cache/ubuntu-env.tar $(UBUNTU_IMAGE)
docker image save -o cache/alpine-env.tar $(ALPINE_IMAGE)
Expand Down Expand Up @@ -107,16 +107,16 @@ alpine-3.6:

# note: busybox by default will not have cacerts, so you will get TLS warnings (we want to test under these conditions)

.PHONY: acceptance-busybox-1.35
acceptance-busybox-1.35: busybox-1.35
$(call title,busybox-1.35 - acceptance)
.PHONY: acceptance-busybox
acceptance-busybox: pull-busybox
$(call title,busybox - acceptance)
$(DOCKER_RUN) $(BUSYBOX_IMAGE) \
$(ACCEPTANCE_CMD)
@echo "\n*** test note: you should see syft spit out a 'x509: certificate signed by unknown authority' error --this is expected ***"

.PHONY: busybox-1.35
busybox-1.35:
$(call title,busybox-1.35 - build environment)
.PHONY: pull-busybox
pull-busybox:
$(call title,busybox - build environment)
docker pull $(BUSYBOX_IMAGE)

## For CI ########################################################
Expand Down

0 comments on commit 108a5da

Please sign in to comment.