Skip to content

Commit f89e20a

Browse files
authored
Pull LNT image from ghcr.io in the Docker Compose file (#127)
Instead of building the image from scratch from the Docker Compose file, use the image that we automatically build and push to ghcr.io.
1 parent 8e6cf69 commit f89e20a

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.github/workflows/build-docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Docker image
1+
name: Build LNT Docker image
22

33
on:
44
- push

docker/compose.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# of a container running a Postgres database and a container running a
33
# production LNT webserver.
44
#
5-
# In order to build the full service, some secrets are required. They are taken
5+
# In order to compose the full service, some secrets are required. They are taken
66
# as environment variables, which means they can be stored in a file and included
77
# via `--env-file <secrets-file>`. These environment variables are:
88
#
@@ -18,9 +18,7 @@ name: llvm-lnt
1818
services:
1919
webserver:
2020
container_name: webserver
21-
build:
22-
context: ../
23-
dockerfile: docker/lnt.dockerfile
21+
image: ghcr.io/llvm/llvm-lnt:latest
2422
environment:
2523
- DB_USER=lntuser
2624
- DB_HOST=dbserver

docker/lnt.dockerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# This Dockerfile defines an image that contains a production LNT server.
2-
# This image is intended to be built from a Docker Compose file, as it
3-
# requires additional information passed as environment variables:
2+
# It requires additional information passed as environment variables:
43
#
54
# DB_USER
65
# The username to use for logging into the database.
@@ -17,6 +16,15 @@
1716
# AUTH_TOKEN_FILE
1817
# File containing the authentication token used to require authentication
1918
# to perform destructive actions.
19+
#
20+
# It also stores information in the following volumes:
21+
#
22+
# /var/lib/lnt
23+
# The actual LNT instance data (schema files, configuration files, etc).
24+
#
25+
# /var/log/lnt
26+
# Log files for the instance.
27+
#
2028

2129
FROM python:3.10-alpine
2230

0 commit comments

Comments
 (0)