This is the continuation of https://github.com/pbering/Socker where the new Docker integration in Visual Studio 2017 is used instead.
Is is now possible to run Sitecore completely in Docker natively, you don't have to mess around with databases, IIS or anything, you don't even have to have SQL Server or IIS installed on your machine.
This repository shows how a solution could be wired up for development with the following features:
and also the Visual Studio 2017, out-of-the-box docker features like:
NOTE: Base images are build and consumed locally in this example, but in a real life scenario you would also push to an remote private repository like hub.docker.com, quay.io or an internal one, so that images can be shared within your organization. Unfortunately it has to be private repositories due to Sitecore licensing terms so we can't share images in the community.
Copy Sitecore 8.2 rev. 161221.zip into "/images/sitecore-82rev161221"
Copy license.xml into "/images/sitecore-82rev161221/Sitecore/Data"
Build image:
docker build -t sitecore:8.2.161221 .\images\sitecore-82rev161221
Copy database files from Sitecore 8.2 rev. 161221.zip into "/data/databases"
docker container ps
): docker exec CONTAINER powershell watch
NOTE: Latest Docker tooling in Visual Studio overrides ENTRYPOINT (see https://github.com/Microsoft/DockerTools/issues/9) so it is not possible to start the watcher script automatically when the container starts anymore.
To stop everything again just hit "Build -> Clear".