Skip to content
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Name of the Docker container
DOCKER_IMAGE=node:22-slim
VIS_DOCKER_IMAGE_NAME_PREFIX=ghcr.io/local-connectivity-lab
VIS_DOCKER_IMAGE_NAME=ccn-coverage-vis
include .env

Expand All @@ -18,7 +17,7 @@ clean:
build-test:
@echo "Create test docker container for $(VIS_DOCKER_IMAGE_NAME)"

docker build --build-arg NGINX_CONFIG="local-nginx.conf" -t $(VIS_DOCKER_IMAGE_NAME_PREFIX)/$(VIS_DOCKER_IMAGE_NAME) -f vis.dockerfile .
docker build --build-arg NGINX_CONFIG="local-nginx.conf" -t $(VIS_DOCKER_IMAGE_NAME) -f vis.dockerfile .

# Validate semantic version format
validate-semver-%:
Expand All @@ -31,12 +30,12 @@ validate-semver-%:
.PHONY: build
build:
@echo "Create docker container for $(VIS_DOCKER_IMAGE_NAME)"
docker build -t $(VIS_DOCKER_IMAGE_NAME_PREFIX)/$(VIS_DOCKER_IMAGE_NAME) -f vis.dockerfile .
docker build -t $(VIS_DOCKER_IMAGE_NAME) -f vis.dockerfile .

# Build with specific version (e.g., make build-1.2.3)
build-%: validate-semver-%
@echo "Create docker container for $(VIS_DOCKER_IMAGE_NAME) with version $*"
docker build -t $(VIS_DOCKER_IMAGE_NAME_PREFIX)/$(VIS_DOCKER_IMAGE_NAME):$* -f vis.dockerfile .
docker build -t $(VIS_DOCKER_IMAGE_NAME):$* -f vis.dockerfile .


# The target for development
Expand Down