Skip to content

Commit becc674

Browse files
committed
Set the WP-CLI cache directory to something we know is writable instead of ~/.wp-cli/cache.
1 parent bf6b42c commit becc674

File tree

16 files changed

+48
-0
lines changed

16 files changed

+48
-0
lines changed

images/5.3/cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh
3232

3333
RUN chmod +x /entrypoint.sh
3434

35+
# WP CLI config
36+
ENV WP_CLI_CACHE_DIR=/tmp/wp-cli
37+
3538
ENTRYPOINT [ "/entrypoint.sh" ]
3639

3740

images/5.4/cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh
3232

3333
RUN chmod +x /entrypoint.sh
3434

35+
# WP CLI config
36+
ENV WP_CLI_CACHE_DIR=/tmp/wp-cli
37+
3538
ENTRYPOINT [ "/entrypoint.sh" ]
3639

3740

images/5.5/cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh
3232

3333
RUN chmod +x /entrypoint.sh
3434

35+
# WP CLI config
36+
ENV WP_CLI_CACHE_DIR=/tmp/wp-cli
37+
3538
ENTRYPOINT [ "/entrypoint.sh" ]
3639

3740

images/5.6.20/cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh
3232

3333
RUN chmod +x /entrypoint.sh
3434

35+
# WP CLI config
36+
ENV WP_CLI_CACHE_DIR=/tmp/wp-cli
37+
3538
ENTRYPOINT [ "/entrypoint.sh" ]
3639

3740

images/5.6/cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh
3232

3333
RUN chmod +x /entrypoint.sh
3434

35+
# WP CLI config
36+
ENV WP_CLI_CACHE_DIR=/tmp/wp-cli
37+
3538
ENTRYPOINT [ "/entrypoint.sh" ]
3639

3740

images/7.0/cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh
3232

3333
RUN chmod +x /entrypoint.sh
3434

35+
# WP CLI config
36+
ENV WP_CLI_CACHE_DIR=/tmp/wp-cli
37+
3538
ENTRYPOINT [ "/entrypoint.sh" ]
3639

3740

images/7.1/cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh
3232

3333
RUN chmod +x /entrypoint.sh
3434

35+
# WP CLI config
36+
ENV WP_CLI_CACHE_DIR=/tmp/wp-cli
37+
3538
ENTRYPOINT [ "/entrypoint.sh" ]
3639

3740

images/7.2/cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh
3232

3333
RUN chmod +x /entrypoint.sh
3434

35+
# WP CLI config
36+
ENV WP_CLI_CACHE_DIR=/tmp/wp-cli
37+
3538
ENTRYPOINT [ "/entrypoint.sh" ]
3639

3740

images/7.3/cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh
3232

3333
RUN chmod +x /entrypoint.sh
3434

35+
# WP CLI config
36+
ENV WP_CLI_CACHE_DIR=/tmp/wp-cli
37+
3538
ENTRYPOINT [ "/entrypoint.sh" ]
3639

3740

images/7.4/cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh
3232

3333
RUN chmod +x /entrypoint.sh
3434

35+
# WP CLI config
36+
ENV WP_CLI_CACHE_DIR=/tmp/wp-cli
37+
3538
ENTRYPOINT [ "/entrypoint.sh" ]
3639

3740

images/8.0/cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh
3232

3333
RUN chmod +x /entrypoint.sh
3434

35+
# WP CLI config
36+
ENV WP_CLI_CACHE_DIR=/tmp/wp-cli
37+
3538
ENTRYPOINT [ "/entrypoint.sh" ]
3639

3740

images/8.1/cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh
3232

3333
RUN chmod +x /entrypoint.sh
3434

35+
# WP CLI config
36+
ENV WP_CLI_CACHE_DIR=/tmp/wp-cli
37+
3538
ENTRYPOINT [ "/entrypoint.sh" ]
3639

3740

images/8.2/cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh
3232

3333
RUN chmod +x /entrypoint.sh
3434

35+
# WP CLI config
36+
ENV WP_CLI_CACHE_DIR=/tmp/wp-cli
37+
3538
ENTRYPOINT [ "/entrypoint.sh" ]
3639

3740

images/8.3/cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh
3232

3333
RUN chmod +x /entrypoint.sh
3434

35+
# WP CLI config
36+
ENV WP_CLI_CACHE_DIR=/tmp/wp-cli
37+
3538
ENTRYPOINT [ "/entrypoint.sh" ]
3639

3740

images/8.4/cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ COPY entrypoint.sh /entrypoint.sh
3232

3333
RUN chmod +x /entrypoint.sh
3434

35+
# WP CLI config
36+
ENV WP_CLI_CACHE_DIR=/tmp/wp-cli
37+
3538
ENTRYPOINT [ "/entrypoint.sh" ]
3639

3740

templates/Dockerfile-cli.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ COPY entrypoint.sh /entrypoint.sh
2727

2828
RUN chmod +x /entrypoint.sh
2929

30+
# WP CLI config
31+
ENV WP_CLI_CACHE_DIR=/tmp/wp-cli
32+
3033
ENTRYPOINT [ "/entrypoint.sh" ]
3134
%%/NEW_PHP%%
3235

0 commit comments

Comments
 (0)