Skip to content

Playground for messing around with Sitecore, Windows Server Containers and Docker

Notifications You must be signed in to change notification settings

pbering/SitecoreContainers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

Sitecore + Windows Containers + Docker

Playground...

Notes

docker build -t sitecore-mssql:8.1.160519 .\images\sitecore81rev160519-mssql
docker build -t sitecore-aspnet:8.1.160519 .\images\sitecore81rev160519-aspnet

docker build -t website .\images\website
docker run -d -p 1433:1433 --env sa_password=Sitecore_Containers_Rocks_9999 --name demo-sql sitecore-mssql:8.1.160519
docker run -p 8000:8000 --env "SQL_USER=sa" --env "SQL_PASSWORD=Sitecore_Containers_Rocks_9999" --env "SQL_SERVER=demo-sql" --name demo-website --link demo-sql website

docker exec -t -i demo-website powershell
Get-Content -path C:\Sitecore\Data\logs\log.*.txt -Wait

docker rmi $(docker images -q -f dangling=true)
docker attach demo-website

docker build -t testsolution-sql .\images\testsolution\docker\sql
docker build -t testsolution-website .\images\testsolution\docker\website

docker run -d -p 1433:1433 --env sa_password=Sitecore_Containers_Rocks_9999 --name demo-testsolution-sql --volume d:/Projects/SitecoreContainers/images/testsolution/docker/sql/Sitecore/Databases:C:/Data testsolution-sql
docker run -p 8000:8000 --env "SQL_USER=sa" --env "SQL_PASSWORD=Sitecore_Containers_Rocks_9999" --env "SQL_SERVER=demo-testsolution-sql" --name demo-testsolution-website --link demo-testsolution-sql --volume d:/Projects/SitecoreContainers/images/testsolution/src/Website:C:/Workspace testsolution-website

Test Solution

docker build -t sitecore-aspnet:8.1.160519 .\images\sitecore81rev160519-aspnet
docker build -t winnginx .\images\winnginx
docker build -t wintraefik .\images\wintraefik	

Compose 1.9+ required

docker-compose build
docker-compose up

or

docker-compose up --build

TODO's

  • Logging?... (add udp logger that you can run with docker exec on sitecore containers)

Known issues

  • Doesn't matter which port you publish to on host since you can only talk to containers with their internal IPs. Known Windows NAT / Docker issue.

About

Playground for messing around with Sitecore, Windows Server Containers and Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published