diff --git a/.github/workflows/build-docker.yaml b/.github/workflows/build-docker.yaml index ecd1e46a..7cb2be5c 100644 --- a/.github/workflows/build-docker.yaml +++ b/.github/workflows/build-docker.yaml @@ -1,4 +1,4 @@ -name: Build Docker image +name: Build LNT Docker image on: - push diff --git a/docker/compose.yaml b/docker/compose.yaml index 7799de1b..c241e963 100644 --- a/docker/compose.yaml +++ b/docker/compose.yaml @@ -2,7 +2,7 @@ # of a container running a Postgres database and a container running a # production LNT webserver. # -# In order to build the full service, some secrets are required. They are taken +# In order to compose the full service, some secrets are required. They are taken # as environment variables, which means they can be stored in a file and included # via `--env-file `. These environment variables are: # @@ -18,9 +18,7 @@ name: llvm-lnt services: webserver: container_name: webserver - build: - context: ../ - dockerfile: docker/lnt.dockerfile + image: ghcr.io/llvm/llvm-lnt:latest environment: - DB_USER=lntuser - DB_HOST=dbserver diff --git a/docker/lnt.dockerfile b/docker/lnt.dockerfile index f24d0d04..1f00aa3c 100644 --- a/docker/lnt.dockerfile +++ b/docker/lnt.dockerfile @@ -1,6 +1,5 @@ # This Dockerfile defines an image that contains a production LNT server. -# This image is intended to be built from a Docker Compose file, as it -# requires additional information passed as environment variables: +# It requires additional information passed as environment variables: # # DB_USER # The username to use for logging into the database. @@ -17,6 +16,15 @@ # AUTH_TOKEN_FILE # File containing the authentication token used to require authentication # to perform destructive actions. +# +# It also stores information in the following volumes: +# +# /var/lib/lnt +# The actual LNT instance data (schema files, configuration files, etc). +# +# /var/log/lnt +# Log files for the instance. +# FROM python:3.10-alpine