Skip to content

Commit 72aad40

Browse files
reyrahadianRey Rahadian
andauthored
#326 updated readme to explain the usage of SITECORE_LICENSE_LOCATION in 9.3 docker images (#327)
Co-authored-by: Rey Rahadian <rey.rahadian@akqa.com>
1 parent c524ece commit 72aad40

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ When completed then...
6969
1. Run `Set-LicenseEnvironmentVariable.ps1 -Path C:\license\license.xml` (use the `PersistForCurrentUser` switch to persist the license for future sessions). This will gzip and base64 encode the license file content and save it in `$env:SITECORE_LICENSE`.
7070
1. Switch directory to `.\windows\tests\9.3.x\` and then run any of the docker-compose files, for example an XM with: `docker-compose --file .\docker-compose.xm.yml up`
7171

72+
9.3 docker images still supports mounting the license file inside the container, if for some reason you need to use this method please see [License file volume mount configuration for 9.3 docker images](#license-file-volume-mount-configuration-for-9.3-docker-images)
73+
7274
**For Sitecore 9.2.x:**
7375

7476
1. Place your Sitecore license file at `C:\license\license.xml`, or override location using the environment variable `LICENSE_PATH` like so: `$env:LICENSE_PATH="D:\my\sitecore\licenses"`
@@ -251,6 +253,37 @@ SitecoreImageBuilder\Invoke-Build `
251253
252254
```
253255

256+
### License file volume mount configuration for 9.3 docker images
257+
258+
If you've been using the license file mounted approach in 9.2 docker images, you can still continue using the same approach in 9.3 docker images. Follow these steps
259+
260+
1. Place your Sitecore license file at `C:\license\license.xml`, or override location using the environment variable `LICENSE_PATH` like so: `$env:LICENSE_PATH="D:\my\sitecore\licenses"`
261+
1. Switch directory to `.\windows\tests\9.3.x\` and then run any of the docker-compose files, for example an XM with: `docker-compose --file .\docker-compose.xm.yml up` after the docker compose file has been updated following the instruction below
262+
263+
#### For cm and cd
264+
1. Add a new volume mount configuration using the environment variable `LICENSE_PATH` to a folder inside the container, for example `C:\license`
265+
1. Add a new environment variable `SITECORE_LICENSE_LOCATION` that point to the license file path inside the container, for example: `C:\license\license.xml`
266+
267+
```
268+
cm:
269+
environment:
270+
SITECORE_LICENSE_LOCATION: C:\license\license.xml
271+
volumes:
272+
- ${LICENSE_PATH}:C:\license
273+
```
274+
275+
#### For xconnect, xconnect-automationengine, xconnect-indexworker, xconnect-processingengine
276+
1. Add a new volume mount configuration using the environment variable `LICENSE_PATH` to a folder inside the container, for example `C:\license`
277+
1. Add a new environment variable `SITECORE_LICENSE_LOCATION` that point to the license file folder path inside the container, for example: `C:\license`
278+
279+
```
280+
xconnect:
281+
environment:
282+
SITECORE_LICENSE_LOCATION: C:\license
283+
volumes:
284+
- ${LICENSE_PATH}:C:\license
285+
```
286+
254287
## Cleanup
255288

256289
Its recommended to clean up you Docker engine hosts (developer workstations, build agents etc.) regularly.

0 commit comments

Comments
 (0)