See slides for details.
This is an example of configuring your own docker development environment from scratch.
The code base here should not be used in production and may contain security vulnerabilities. Much of the laravel application is meant to bypass authentication and allow anonymous authorization to services for the purposes of the presentation.
- Docker 18.06ce running
- Windows 10+: Docker for Windows
- MacOS Sierra: Docker for Mac
- Linux: docker, docker-compose from your distro. or binaries compiled yourself.
- Open a terminal window such as Terminal.app or Git-Bash.
- Note: Linux users may need a python environment setup with docker-compose.
- Clone repository:
git clone https://github.com/mradcliffe/docker-driven-development.git
- Change directory into this repository:
cd docker-driven-development
- Install front-end dependencies:
npm install
- Install back-end dependencies:
mkdir database/{seeds,factories} && mkdir -p storage/framework/{sessions,views,cache} && composer install
- Start:
docker-compose up -d
. - Run:
docker exec docker-driven-development_web_1 ./artisan migrate:refresh
- Run:
npm start
- Run
docker-compose stop
to stop containers. - Run
docker-compose down
to destroy all containers, but keep any volumes. - Run
docker-compose down --volume
to destroy all containers and volumes.