Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 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.

Before run docker make sure that you have changed containers name

Build and run the container in the background:

docker compose up --build

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

After container up you need modify file hosts

For mac located: /private/etc/hosts

For windows located: c:\Windows\System32\Drivers\etc\hosts

For linux located: /etc/hosts

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.

About

https://roots.io/bedrock/

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages