You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+50-26
Original file line number
Diff line number
Diff line change
@@ -4,75 +4,99 @@ Run Sitecore 9 (with XConnect) using Docker and Windows containers.
4
4
This repository contains experimental code that we use in development setups. We do not consider the current code in this repository ready for production.
5
5
Hopefully this will help you to get up and running with Sitecore and Docker. By no means we consider ourselves Docker experts and thus expect these images to still contain a lot of bugs. Great help for creating this setup was provided by the [sitecoreops](https://github.com/sitecoreops/sitecore-images) and [sitecore-nine-docker](https://github.com/pbering/sitecore-nine-docker) repos. Please feel free to provide feedback by creating an issue, PR, etc.
6
6
7
+
7
8
# Requirements
8
9
- Windows 10 update 1709 (with Hyper-V enabled)
9
10
- Docker for Windows (version 1712 or better): https://docs.docker.com/docker-for-windows/
10
11
- Visual Studio 15.5.3
11
12
- Sitecore installation files
13
+
-[Nuke.build](https://nuke.build)
14
+
12
15
13
16
# Build
14
17
As Sitecore does not distribute Docker images, the first step is to build the required Docker images.
15
-
For this you need the Sitecore installation files and a Sitecore license file. What files to use are set by environment variables (interpreted by docker-compose); download all the packages that are defined by variables in the `.env` file and place them in the `files` directory.
18
+
19
+
## Pre-build steps
20
+
For this you need the Sitecore installation files and a Sitecore license file.
21
+
What files to use are set in the [build configuration](./build/Build.cs).
16
22
17
23
The xp0 Sitecore topology requires SSL between the services, for this we need self signed certificates for the
18
24
xConnect and SOLR roles. You can generate these by running the `./Generate-Certificates.ps1` script (note that this requires an Administrator elevated powershell environment and you may need to set the correct execution policy, e.g. `PS> powershell.exe -ExecutionPolicy Unrestricted`).
19
25
20
-
Next, modify the `.env` file and change the build parameters if needed:
| SQL_SA_PASSWORD | The password to use for the SQL sa user |
25
-
| SQL_DB_PREFIX | Prefix to use for all DB names |
26
-
| SOLR_HOST_NAME | Host name to use for the SOLR instance |
27
-
| SOLR_PORT | Port to use for the SOLR instance |
28
-
| SOLR_SERVICE_NAME | Name of the SOLR Windows service |
29
-
| XCONNECT_SITE_NAME | Host name of the Xconnect site |
30
-
| XCONNECT_SOLR_CORE_PREFIX | Prefix to use for the XConnect SOLR cores |
31
-
| SITECORE_SITE_NAME | Host name of the Sitecore site |
32
-
| SITECORE_SOLR_CORE_PREFIX | Prefix to use for the Sitecore SOLR cores |
33
-
34
-
Now perform the Docker build step:
26
+
## Build
27
+
Build all images using:
28
+
```
29
+
PS> nuke
35
30
```
36
-
PS> docker-compose build
37
-
```
38
31
39
32
The build results in the following Docker images:
40
33
- sitecore: IIS + ASP.NET + Sitecore
41
34
- mssql: MS SQL + Sitecore databases
42
35
- solr: Apache Solr
43
36
- xconnect: IIS + ASP.NET + XConnect
44
37
45
-
As final step build all Solr indexes (populate and re-build indexes) from Sitecore (reachable at https://sitecore/sitecore), and perform a Docker commit for the Solr image to persist the changes (otherwise you will have to redo this step each time):
0 commit comments