Skip to content

Commit 0079f99

Browse files
committed
Makefile update.
1 parent 54a2546 commit 0079f99

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

docker/Makefile

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,26 @@ endef
1515

1616
.PHONY: up down restart build logs cert-check health-check
1717

18+
19+
# utility commands
20+
1821
load-env:
1922
$(WITH_ENV) echo "Environment variables loaded."
2023

2124
show-env:
2225
${WITH_ENV} >/dev/null 2>&1; printenv | grep -E "^(JUPYTER)" | sort
2326

27+
logs-dev:
28+
docker logs -f --tail 10000 ${CONTAINER_NAME_DEV}
29+
30+
logs:
31+
docker logs -f --tail 10000 $(CONTAINER_NAME)
32+
33+
health-check:
34+
${WITH_ENV} curl -k -v https://localhost:${JUPYTERHUB_INTERNAL_PORT}/
35+
36+
# start services
37+
2438
start-dev:
2539
$(WITH_ENV) docker compose -f docker-compose.dev.yml $(DC_START_CMD)
2640

@@ -35,12 +49,3 @@ start-prod:
3549

3650
stop-all:
3751
$(WITH_ENV) docker compose -f $(COMPOSE_BASE) -f docker-compose.dev.yml -f docker-compose.local.yml -f docker-compose.prod.yml docker-compose.yml ${DC_DOWN_CMD}
38-
39-
logs-dev:
40-
docker logs -f --tail 10000 ${CONTAINER_NAME_DEV}
41-
42-
logs:
43-
docker logs -f --tail 10000 $(CONTAINER_NAME)
44-
45-
health-check:
46-
curl -k -v https://localhost:8888/

0 commit comments

Comments
 (0)