From becc6740684d6ff6414d6539df040633b5ac5794 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 27 Jan 2025 17:16:14 +0000 Subject: [PATCH] Set the WP-CLI cache directory to something we know is writable instead of `~/.wp-cli/cache`. --- images/5.3/cli/Dockerfile | 3 +++ images/5.4/cli/Dockerfile | 3 +++ images/5.5/cli/Dockerfile | 3 +++ images/5.6.20/cli/Dockerfile | 3 +++ images/5.6/cli/Dockerfile | 3 +++ images/7.0/cli/Dockerfile | 3 +++ images/7.1/cli/Dockerfile | 3 +++ images/7.2/cli/Dockerfile | 3 +++ images/7.3/cli/Dockerfile | 3 +++ images/7.4/cli/Dockerfile | 3 +++ images/8.0/cli/Dockerfile | 3 +++ images/8.1/cli/Dockerfile | 3 +++ images/8.2/cli/Dockerfile | 3 +++ images/8.3/cli/Dockerfile | 3 +++ images/8.4/cli/Dockerfile | 3 +++ templates/Dockerfile-cli.template | 3 +++ 16 files changed, 48 insertions(+) diff --git a/images/5.3/cli/Dockerfile b/images/5.3/cli/Dockerfile index 4c36441a..e363544c 100644 --- a/images/5.3/cli/Dockerfile +++ b/images/5.3/cli/Dockerfile @@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +# WP CLI config +ENV WP_CLI_CACHE_DIR=/tmp/wp-cli + ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/images/5.4/cli/Dockerfile b/images/5.4/cli/Dockerfile index f9e421cc..292b79a8 100644 --- a/images/5.4/cli/Dockerfile +++ b/images/5.4/cli/Dockerfile @@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +# WP CLI config +ENV WP_CLI_CACHE_DIR=/tmp/wp-cli + ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/images/5.5/cli/Dockerfile b/images/5.5/cli/Dockerfile index f69cc62a..90a56556 100644 --- a/images/5.5/cli/Dockerfile +++ b/images/5.5/cli/Dockerfile @@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +# WP CLI config +ENV WP_CLI_CACHE_DIR=/tmp/wp-cli + ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/images/5.6.20/cli/Dockerfile b/images/5.6.20/cli/Dockerfile index 0e989315..dea54dee 100644 --- a/images/5.6.20/cli/Dockerfile +++ b/images/5.6.20/cli/Dockerfile @@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +# WP CLI config +ENV WP_CLI_CACHE_DIR=/tmp/wp-cli + ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/images/5.6/cli/Dockerfile b/images/5.6/cli/Dockerfile index e7ce762d..957400a3 100644 --- a/images/5.6/cli/Dockerfile +++ b/images/5.6/cli/Dockerfile @@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +# WP CLI config +ENV WP_CLI_CACHE_DIR=/tmp/wp-cli + ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/images/7.0/cli/Dockerfile b/images/7.0/cli/Dockerfile index 258ec2fc..19194707 100644 --- a/images/7.0/cli/Dockerfile +++ b/images/7.0/cli/Dockerfile @@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +# WP CLI config +ENV WP_CLI_CACHE_DIR=/tmp/wp-cli + ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/images/7.1/cli/Dockerfile b/images/7.1/cli/Dockerfile index ee76afc7..399895f6 100644 --- a/images/7.1/cli/Dockerfile +++ b/images/7.1/cli/Dockerfile @@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +# WP CLI config +ENV WP_CLI_CACHE_DIR=/tmp/wp-cli + ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/images/7.2/cli/Dockerfile b/images/7.2/cli/Dockerfile index 14203c0f..4d9a0b16 100644 --- a/images/7.2/cli/Dockerfile +++ b/images/7.2/cli/Dockerfile @@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +# WP CLI config +ENV WP_CLI_CACHE_DIR=/tmp/wp-cli + ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/images/7.3/cli/Dockerfile b/images/7.3/cli/Dockerfile index 798c6818..e81cffb4 100644 --- a/images/7.3/cli/Dockerfile +++ b/images/7.3/cli/Dockerfile @@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +# WP CLI config +ENV WP_CLI_CACHE_DIR=/tmp/wp-cli + ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/images/7.4/cli/Dockerfile b/images/7.4/cli/Dockerfile index 19304206..49c8cc14 100644 --- a/images/7.4/cli/Dockerfile +++ b/images/7.4/cli/Dockerfile @@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +# WP CLI config +ENV WP_CLI_CACHE_DIR=/tmp/wp-cli + ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/images/8.0/cli/Dockerfile b/images/8.0/cli/Dockerfile index 7e02b699..ee1e540b 100644 --- a/images/8.0/cli/Dockerfile +++ b/images/8.0/cli/Dockerfile @@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +# WP CLI config +ENV WP_CLI_CACHE_DIR=/tmp/wp-cli + ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/images/8.1/cli/Dockerfile b/images/8.1/cli/Dockerfile index 3f548d74..e314b90c 100644 --- a/images/8.1/cli/Dockerfile +++ b/images/8.1/cli/Dockerfile @@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +# WP CLI config +ENV WP_CLI_CACHE_DIR=/tmp/wp-cli + ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/images/8.2/cli/Dockerfile b/images/8.2/cli/Dockerfile index a7170e92..51991707 100644 --- a/images/8.2/cli/Dockerfile +++ b/images/8.2/cli/Dockerfile @@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +# WP CLI config +ENV WP_CLI_CACHE_DIR=/tmp/wp-cli + ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/images/8.3/cli/Dockerfile b/images/8.3/cli/Dockerfile index 86e1a47b..09fd4541 100644 --- a/images/8.3/cli/Dockerfile +++ b/images/8.3/cli/Dockerfile @@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +# WP CLI config +ENV WP_CLI_CACHE_DIR=/tmp/wp-cli + ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/images/8.4/cli/Dockerfile b/images/8.4/cli/Dockerfile index f21132c6..91645574 100644 --- a/images/8.4/cli/Dockerfile +++ b/images/8.4/cli/Dockerfile @@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +# WP CLI config +ENV WP_CLI_CACHE_DIR=/tmp/wp-cli + ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/templates/Dockerfile-cli.template b/templates/Dockerfile-cli.template index 8ff5f468..c5d84caa 100644 --- a/templates/Dockerfile-cli.template +++ b/templates/Dockerfile-cli.template @@ -27,6 +27,9 @@ COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +# WP CLI config +ENV WP_CLI_CACHE_DIR=/tmp/wp-cli + ENTRYPOINT [ "/entrypoint.sh" ] %%/NEW_PHP%%