Giter VIP home page Giter VIP logo

sockervs2017's Introduction

Socker = Sitecore ❤️ Docker (now with Visual Studio 2017)

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:

  • Databases is persisted between restarts
  • Serialization and log folders are mounted with volumes.

and also the Visual Studio 2017, out-of-the-box docker features like:

  • Remote debugging, auto attaching to running containers with F5
  • Build, re-build, clear builds/stops/starts compose services (containers)
  • New in Visual Studio 2017 15.5: By default, Visual Studio will automatically pull, build, and run the necessary container images in the background when you open a project that has Docker support. You can disable this via the Automatically start containers in background setting in Visual Studio.

Prerequisites

  • Windows 10 Fall Creators Update
  • Docker for Windows
  • Visual Studio 2017 15.5 or later

Preparations

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.

Using Sitecore 8.2 rev. 161221

  1. Copy Sitecore 8.2 rev. 161221.zip into "/images/sitecore-82rev161221"

  2. Copy license.xml into "/images/sitecore-82rev161221/Sitecore/Data"

  3. Build image:

    docker build -t sitecore:8.2.161221 .\images\sitecore-82rev161221
    
  4. Copy database files from Sitecore 8.2 rev. 161221.zip into "/data/databases"

Daily usage

  1. Open solution...
  2. Make sure the "docker-compose" project is your startup project
  3. CTRL+F5 to run or set breakpoint and F5, Visual Studio will open your default browser automatically when the containers are ready
  4. To continuously update changes from your web project output to the running container, you need to start the watcher script (you can get the container id/name from the build output or docker container ps): docker exec CONTAINER powershell watch

    NOTE: Latest Docker tooling in Visual Studio overrides ENTRYPOINT (see microsoft/DockerTools#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".

sockervs2017's People

Contributors

pbering avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ben-m-s feanz

sockervs2017's Issues

Exception when browsing to Sitecore

I am trying out your old setup and followed your readme and end up getting the following exception.

WebApp.Processors.ExampleProcessor, WebApp (method: Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert))

Any Ideas as to why I get this exception?

Haven't tried this repository as I am not using Visual Studios. The readme on this repo says it is a pre-requisite.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.