Skip to content

Commit 0ea5d56

Browse files
committed
build(compose): make devlake image registry configurable
Introduce DEVLAKE_IMAGE_REGISTRY (default: devlake.docker.scarf.sh) for the pre-built devlake-dashboard and devlake-config-ui images in the docker-compose-dev-*.yml files. Operators can override it (e.g. docker.io) to pull directly from Docker Hub and opt out of Scarf download tracking. Default behavior is unchanged. Signed-off-by: DoDiODev <DoDiDev@proton.me>
1 parent 9e8ca1b commit 0ea5d56

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

docker-compose-dev-mysql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ services:
3434
--skip-log-bin
3535

3636
grafana:
37-
image: devlake.docker.scarf.sh/apache/devlake-dashboard:latest
37+
image: ${DEVLAKE_IMAGE_REGISTRY:-devlake.docker.scarf.sh}/apache/devlake-dashboard:latest
3838
build:
3939
context: grafana/
4040
ports:
@@ -82,7 +82,7 @@ services:
8282
- mysql
8383

8484
config-ui:
85-
image: devlake.docker.scarf.sh/apache/devlake-config-ui:latest
85+
image: ${DEVLAKE_IMAGE_REGISTRY:-devlake.docker.scarf.sh}/apache/devlake-config-ui:latest
8686
build:
8787
context: "config-ui"
8888
ports:

docker-compose-dev-postgresql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
TZ: UTC
3131

3232
grafana:
33-
image: devlake.docker.scarf.sh/apache/devlake-dashboard:latest
33+
image: ${DEVLAKE_IMAGE_REGISTRY:-devlake.docker.scarf.sh}/apache/devlake-dashboard:latest
3434
build:
3535
context: grafana/
3636
ports:
@@ -78,7 +78,7 @@ services:
7878
- postgres
7979

8080
config-ui:
81-
image: devlake.docker.scarf.sh/apache/devlake-config-ui:latest
81+
image: ${DEVLAKE_IMAGE_REGISTRY:-devlake.docker.scarf.sh}/apache/devlake-config-ui:latest
8282
build:
8383
context: "config-ui"
8484
ports:

env.example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
# Lake core #
1919
#############
2020

21+
# Container image registry/prefix for the pre-built devlake-dashboard and
22+
# devlake-config-ui images used by the docker-compose-dev-*.yml files.
23+
# Upstream default is the Scarf gateway (download analytics for the Apache
24+
# project). Override locally (e.g. DEVLAKE_IMAGE_REGISTRY=docker.io) to pull
25+
# directly from Docker Hub and avoid Scarf download tracking.
26+
DEVLAKE_IMAGE_REGISTRY=devlake.docker.scarf.sh
27+
2128
# Lake plugin dir, absolute path or relative path
2229
PLUGIN_DIR=bin/plugins
2330
REMOTE_PLUGIN_DIR=python/plugins

0 commit comments

Comments
 (0)