Skip to content

roots/bedrock-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Roots

bedrock-docker

bedrock-docker is a quick way create a Bedrock WordPress install meant for testing and continous integration. It is not a full replacement for development environments like Trellis.

bedrock-docker was developed for integration tests in Bud and Bedrock itself.

Quickstart

Run ./dev.sh to clone bedrock and sage into ./bedrock:

./dev.sh

Configure the WP_HOME and WP_SITEURL variables as needed in .env.

Build and run the container in the background:

docker compose up --build -d

Get a bash session going:

docker compose run bedrock bash

This bash session has access to composer, node and the wordpress cli.

Setup dev environment as needed:

cd web/app/themes/sage
composer install
yarn install
yarn build
wp theme activate sage

Existing installs

  1. Copy build and docker-compose.yml into the root of an existing bedrock install.
  2. Edit services.bedrock.volumes in docker-compose.yml to reference the correct path. ./bedrock:/srv/bedrock becomes ./:/srv/bedrock.

Community

Keep track of development and community news.