Skip to content

Commit 7c8b8ca

Browse files
committed
Updated README
1 parent ae60ace commit 7c8b8ca

File tree

1 file changed

+55
-1
lines changed

1 file changed

+55
-1
lines changed

README.md

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,55 @@
1-
# docker-tools
1+
# Sitecore Docker Tools
2+
3+
Sitecore Docker Tools are utilities which improve developer experience when running Sitecore in a Docker environment. This includes:
4+
5+
* `sitecore-docker-tools-assets`, a Docker image with development scripts and entrypoints which can be used during Sitecore container builds.
6+
* `SitecoreDockerTools`, a PowerShell module with functions used on the Sitecore container host to initialize the Sitecore Docker environment.
7+
8+
## Usage
9+
10+
Released versions of these utilities can be found on the Sitecore Container Registry and the Sitecore PowerShell Gallery. Usage details can be found in the [Sitecore container development documentation](https://doc.sitecore.com/developers/100/developer-tools/en/containers-in-sitecore-development.html).
11+
12+
### Docker Image
13+
The scripts found in the Docker image are intended to be copied in via your custom `Dockerfile`, then used within it or your `docker-compose` override.
14+
15+
```Dockerfile
16+
FROM ${TOOLS_IMAGE} as tools
17+
FROM ${PARENT_IMAGE}
18+
COPY --from=tools C:\tools C:\tools
19+
```
20+
21+
### PowerShell Module
22+
The PowerShell module can be installed and imported from the Sitecore PowerShell Gallery.
23+
24+
```powershell
25+
Register-PSRepository -Name SitecoreGallery -SourceLocation https://sitecore.myget.org/F/sc-powershell/api/v2
26+
Install-Module SitecoreDockerTools
27+
Import-Module SitecoreDockerTools
28+
29+
# See available commands
30+
Get-Command -Module SitecoreDockerTools
31+
```
32+
33+
## Building/Using from Source
34+
35+
### Docker Image
36+
```powershell
37+
cd image\src
38+
docker-compose build
39+
```
40+
41+
### PowerShell Module
42+
```powershell
43+
Import-Module .\powershell\src\SitecoreDockerTools.psd1
44+
```
45+
46+
## Running Tests
47+
48+
Unit tests require use of [Pester v4](https://pester.dev/docs/v4/introduction/installation).
49+
50+
From the root folder of either project:
51+
52+
```powershell
53+
Import-Module Pester -RequiredVersion 4.9.0
54+
Invoke-Pester -Path .\test\*
55+
```

0 commit comments

Comments
 (0)