Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Consolidate all transient dev container dirs for the catalog (#1829)
Madison Swain-Bowdenbc061822d0d2
diff --git a/catalog/Dockerfile b/catalog/Dockerfileindex b8c56f6bf..096615fa4 100644--- a/catalog/Dockerfile+++ b/catalog/Dockerfile@@ -15,6 +15,7 @@ ENV AIRFLOW_HOME=/opt/airflowENV DAGS_FOLDER=${AIRFLOW_HOME}/catalog/dagsENV PYTHONPATH=${DAGS_FOLDER}ENV PATH=${AIRFLOW_HOME}/.local/bin:$PATH+ENV IPYTHONDIR=/home/airflow/.cache/ipython# Container optimizationsENV PYTHONUNBUFFERED=1@@ -44,11 +45,11 @@ RUN apt-get update \&& apt-get autoremove -y \&& rm -rf /var/lib/apt/lists/*-# Create and set the ownership of directories so airflow user can write to them+# Create and set the ownership of the cache directory so airflow user can write to them# These directories are not needed in production but it's easier to perform# this step here while we're doing it for the output directory-RUN mkdir -p ${OUTPUT_DIR} /home/airflow/.ipython /home/airflow/.cache/pytest && \- chown airflow ${OUTPUT_DIR} /home/airflow/.ipython /home/airflow/.cache/pytest+RUN mkdir -p ${OUTPUT_DIR} /home/airflow/.cache && \+ chown airflow ${OUTPUT_DIR} /home/airflow/.cacheUSER airflowdiff --git a/docker-compose.yml b/docker-compose.ymlindex f475721f4..6f52adaab 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -21,8 +21,7 @@ x-airflow-common: &airflow-common- PROJECT_AIRFLOW_VERSION=${PROJECT_AIRFLOW_VERSION}volumes:- ./catalog:/opt/airflow/catalog- - catalog-ipython:/home/airflow/.ipython- - catalog-pytest-cache:/home/airflow/.cache/pytest+ - catalog-cache:/home/airflow/.cacheservices:# Database used by the API@@ -314,5 +313,4 @@ volumes:plausible-clickhouse:es-data:minio:- catalog-ipython:- catalog-pytest-cache:+ catalog-cache: