Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Use published Docker image in primary docker-compose.yml (#417)

Madison Swain-Bowden22a8965b6ff8
diff --git a/docker-compose.override.yml b/docker-compose.override.yml
index a8da5057a..45d58b9c0 100644
--- a/docker-compose.override.yml
+++ b/docker-compose.override.yml
@@ -52,8 +52,10 @@ services:
- postgres
- s3
build:
+ context: .
args:
- REQUIREMENTS_FILE=requirements_dev.txt
+ dockerfile: docker/airflow/Dockerfile
# This command ensures an admin account is created on startup
command: init
volumes:
diff --git a/docker-compose.yml b/docker-compose.yml
index 7cf975e3b..78c5cdf38 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -3,10 +3,7 @@ version: '3'
services:
webserver:
- build:
- context: .
- dockerfile: docker/airflow/Dockerfile
- image: openverse-catalog
+ image: ghcr.io/wordpress/openverse-catalog:${DOCKER_IMAGE_TAG:-latest}
env_file: .env
restart: always
ports:
diff --git a/env.template b/env.template
index 97c72d31f..a7e5fa655 100644
--- a/env.template
+++ b/env.template
@@ -69,6 +69,10 @@ EMR_TEST_CONN_ID=emr_test
########################################################################################
# Other config
########################################################################################
+# Version of the catalog docker image to use. Defaults to `latest` and is not used for
+# local development (since the image is always built locally). See available tags at
+# https://ghcr.io/wordpress/openverse-catalog
+DOCKER_IMAGE_TAG=latest
# External port airflow will be mounted to
AIRFLOW_PORT=9090
# Minutes to wait until processing a file that hasn't been modified