David Williamson @ Varilink Computing Ltd
Docker setup for running The Friends of Bennerley Viaduct website locally, for development and testing purposes. Contains a set of services to simulate the website locally and tools to perform development actions on the website, all defined as Docker Compose services.
Location | Contents |
---|---|
tools/ | Varilink Computing Ltd tools that are used by this repository, included here as submodules. |
wordpress/ | The FoBV - WordPress repository, included here as a submodule. |
.env docker‑compose.yml dummy.yml public.env |
Project Docker Compose configuration, excluding secret environment variables that aren't tracked for security reasons. |
WordPress theme:
docker-compose run --rm --volume="$PWD/wordpress/theme/:/npm/" npm install
Plugins (only if scaffolding new blocks using @wordpress/create-block):
docker-compose run --rm --volume="$PWD/wordpress/plugins/:/npm/" npm install
FoBV event plugin:
docker-compose run --rm --volume="$PWD/wordpress/plugins/fobv-event/:/npm/" npm install
Theme additional CSS:
docker-compose run --rm --volume="$PWD/wordpress/theme/:/npm/ npx sass --style=compressed --no-source-map for-theme-json.scss for-theme-json.css
Note: The output, which is written to for-theme-json.css
must then be copied to theme.json
as the value of styles->css
there.
Theme images (generated using GIMP):
docker-compose run --rm gimp
Note: First ensure that the directory wordpress/media/
is created.
Build FoBV event plugin's javascript and stylesheet assets:
docker-compose run --rm --volume="$PWD/wordpress/plugins/fobv-event/:/npm/" npm run build