-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
2,605 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ARG BASE_IMAGE=docker.io/bitpoke/wordpress-runtime:bedrock-php-8.1 | ||
FROM ${BASE_IMAGE} as bedrock | ||
WORKDIR /src | ||
# Install project dependencies as first build step for child images so that we | ||
# heat up composer cache | ||
ONBUILD COPY --chown=www-data:www-data composer.json composer.lock /src/ | ||
ONBUILD RUN composer install --no-dev --no-interaction --no-progress --no-ansi --no-scripts | ||
|
||
ONBUILD COPY --chown=www-data:www-data . /src | ||
ONBUILD RUN composer install --no-dev --no-interaction --no-progress --no-ansi --no-scripts | ||
ONBUILD RUN cp -a /src/. /app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ARG PHP_BASE_IMAGE=docker.io/bitpoke/php-runtime:8.1 | ||
FROM ${PHP_BASE_IMAGE} as bedrock | ||
|
||
ENV WP_CLI_VERSION=2.6.0 | ||
ENV WP_CLI_CONFIG_PATH=/app/wp-cli.yml | ||
ENV DOCUMENT_ROOT=/app/web | ||
ENV WP_CONTENT_DIR=${DOCUMENT_ROOT}/app | ||
ENV STACK_MEDIA_PATH=/app/uploads | ||
USER root | ||
COPY docker/build-scripts /usr/local/docker/build-scripts/ | ||
RUN set -ex \ | ||
&& /usr/local/docker/build-scripts/install-wp-cli \ | ||
&& rm -rf /app \ | ||
&& mkdir -p /app/web /src \ | ||
&& { \ | ||
echo "path: $DOCUMENT_ROOT/wp"; \ | ||
} | tee /app/wp-cli.yml >&2 \ | ||
&& chown -R www-data:www-data /app /src | ||
|
||
COPY --chown=www-data:www-data ./docker /usr/local/docker | ||
USER www-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
DB_NAME='database_name' | ||
DB_USER='database_user' | ||
DB_PASSWORD='database_password' | ||
|
||
# Optionally, you can use a data source name (DSN) | ||
# When using a DSN, you can remove the DB_NAME, DB_USER, DB_PASSWORD, and DB_HOST variables | ||
# DATABASE_URL='mysql://database_user:database_password@database_host:database_port/database_name' | ||
|
||
# Optional database variables | ||
# DB_HOST='localhost' | ||
# DB_PREFIX='wp_' | ||
|
||
WP_ENV='development' | ||
WP_HOME='http://example.com' | ||
WP_SITEURL="${WP_HOME}/wp" | ||
|
||
# Specify optional debug.log path | ||
# WP_DEBUG_LOG='/path/to/debug.log' | ||
|
||
# Generate your keys here: https://roots.io/salts.html | ||
AUTH_KEY='generateme' | ||
SECURE_AUTH_KEY='generateme' | ||
LOGGED_IN_KEY='generateme' | ||
NONCE_KEY='generateme' | ||
AUTH_SALT='generateme' | ||
SECURE_AUTH_SALT='generateme' | ||
LOGGED_IN_SALT='generateme' | ||
NONCE_SALT='generateme' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Application | ||
web/app/plugins/* | ||
!web/app/plugins/.gitkeep | ||
web/app/mu-plugins/*/ | ||
web/app/upgrade | ||
web/app/uploads/* | ||
!web/app/uploads/.gitkeep | ||
web/app/cache/* | ||
|
||
# WordPress | ||
web/wp | ||
web/.htaccess | ||
|
||
# Logs | ||
*.log | ||
|
||
# Dotenv | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
# Composer | ||
/vendor | ||
|
||
# WP-CLI | ||
wp-cli.local.yml |
Oops, something went wrong.