Skip to content

Commit 62c6bfe

Browse files
committed
Allow specifying the image to use in Docker Compose
This is useful since the upcoming Terraform configuration is going to pin down an image version for use on lnt.llvm.org. Also, leave behind breadcrumbs to rebuild the image from scratch, which is useful for local development.
1 parent d9ffa53 commit 62c6bfe

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docker/compose.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,20 @@
1212
# LNT_AUTH_TOKEN
1313
# The authentication token used to require authentication to
1414
# perform destructive actions.
15+
#
16+
# Additionally, the version of the llvm-lnt webserver image can be customized with
17+
# the LNT_IMAGE environment variable. It defaults to `latest`.
1518

1619
name: llvm-lnt
1720

1821
services:
1922
webserver:
2023
container_name: webserver
21-
image: ghcr.io/llvm/llvm-lnt:latest
24+
image: ghcr.io/llvm/llvm-lnt:${LNT_IMAGE:-latest}
25+
# Useful for local debugging
26+
# build:
27+
# context: ../
28+
# dockerfile: docker/lnt.dockerfile
2229
environment:
2330
- DB_USER=lntuser
2431
- DB_HOST=dbserver

0 commit comments

Comments
 (0)