2023-01-10 14:26:27 -08:00
|
|
|
image_name := js-v0.21
|
2023-01-24 09:52:44 -08:00
|
|
|
TEST_SOURCES := $(wildcard test/*.ts)
|
2023-01-10 14:26:27 -08:00
|
|
|
|
2023-01-24 09:52:44 -08:00
|
|
|
all: chromium-image.json node-image.json
|
|
|
|
|
|
|
|
chromium-image.json: ChromiumDockerfile $(TEST_SOURCES) package.json package-lock.json
|
|
|
|
IMAGE_NAME=chromium-${image_name} ../../dockerBuildWrapper.sh -f ChromiumDockerfile .
|
|
|
|
docker image inspect chromium-${image_name} -f "{{.Id}}" | \
|
|
|
|
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@
|
|
|
|
|
|
|
|
node-image.json: Dockerfile $(TEST_SOURCES) package.json package-lock.json
|
|
|
|
IMAGE_NAME=node-${image_name} ../../dockerBuildWrapper.sh -f Dockerfile .
|
|
|
|
docker image inspect node-${image_name} -f "{{.Id}}" | \
|
2023-01-10 14:26:27 -08:00
|
|
|
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
2023-01-24 09:52:44 -08:00
|
|
|
rm *image.json
|