brandcom/silverstripe-docker-starter

Simplify the installation of a Silverstripe Dev Environment.

dev-latest 2022-07-25 09:23 UTC

This package is auto-updated.

Last update: 2022-07-25 09:25:11 UTC


README

Simplify the installation of a Silverstripe Dev Environment. The silverstripe docker starter is based on the silverstripe/installer and comes with a Docker Config to quickly setup everything you need to start coding.

Disclaimer

‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️
WARNING
This is still in beta and might change.
For local development only.
‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️

Install

Requirements

You need to have Docker installed. So if you don't have it, head over to https://www.docker.com/ and install it.

Get the Code

Via git

git clone git@github.com:brandcom/silverstripe-docker-starter.git && rm -fr silverstripe-docker-starter/.git

or composer

composer create-project -s dev  brandcom/silverstripe-docker-starter silverstripe-docker-starter

or download a zip file

https://github.com/brandcom/silverstripe-docker-starter/archive/refs/heads/latest.zip

Start the containers

cd silverstripe-docker-starter
docker-compose up -d

The first time you do this, it takes a while.

Silverstripe is now running: http://localhost:8000/
The Admin is here: http://localhost:8000/admin/ (admin/admin)

What's included?

  • SilverStripe 4.11 running on Apache with PHP8.0. Thanks to brettt89/silverstripe-docker.
  • MariaDB 10.5.15
  • Webpack 5.73.0 as frontend build tool with sass support and live reload

Running commands

composer

docker run --rm --interactive --tty --volume $PWD:/app composer <command>

npm

 docker run --rm --interactive --tty --workdir /app --volume $PWD:/app node:18.4-alpine npm <command>