Skip to content

Commit

Permalink
Set the WP-CLI cache directory to something we know is writable inste…
Browse files Browse the repository at this point in the history
…ad of `~/.wp-cli/cache`.
  • Loading branch information
johnbillion committed Jan 27, 2025
1 parent bf6b42c commit becc674
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 0 deletions.
3 changes: 3 additions & 0 deletions images/5.3/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]


Expand Down
3 changes: 3 additions & 0 deletions images/5.4/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]


Expand Down
3 changes: 3 additions & 0 deletions images/5.5/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]


Expand Down
3 changes: 3 additions & 0 deletions images/5.6.20/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]


Expand Down
3 changes: 3 additions & 0 deletions images/5.6/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]


Expand Down
3 changes: 3 additions & 0 deletions images/7.0/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]


Expand Down
3 changes: 3 additions & 0 deletions images/7.1/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]


Expand Down
3 changes: 3 additions & 0 deletions images/7.2/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]


Expand Down
3 changes: 3 additions & 0 deletions images/7.3/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]


Expand Down
3 changes: 3 additions & 0 deletions images/7.4/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]


Expand Down
3 changes: 3 additions & 0 deletions images/8.0/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]


Expand Down
3 changes: 3 additions & 0 deletions images/8.1/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]


Expand Down
3 changes: 3 additions & 0 deletions images/8.2/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]


Expand Down
3 changes: 3 additions & 0 deletions images/8.3/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]


Expand Down
3 changes: 3 additions & 0 deletions images/8.4/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]


Expand Down
3 changes: 3 additions & 0 deletions templates/Dockerfile-cli.template
Original file line number Diff line number Diff line change
Expand Up @@ -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%%

Expand Down

0 comments on commit becc674

Please sign in to comment.