Git Product home page Git Product logo

docker-tools's Introduction

Sitecore Docker Tools

Sitecore Docker Tools are utilities which improve developer experience when running Sitecore in a Docker environment. This includes:

  • sitecore-docker-tools-assets, a Docker image with development scripts and entrypoints which can be used during Sitecore container builds.
    Image Build Status
  • SitecoreDockerTools, a PowerShell module with functions used on the Sitecore container host to initialize the Sitecore Docker environment.
    PowrShell Build Status

Usage

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.

Docker Image

The scripts found in the Docker image are intended to be copied in via your custom Dockerfile.

FROM ${TOOLS_IMAGE} as tools
FROM ${PARENT_IMAGE}
COPY --from=tools C:\tools C:\tools

You can enable the development entrypoint in your docker-compose override.

entrypoint: powershell.exe -Command "& C:\tools\entrypoints\iis\Development.ps1"

The development entrypoint also enables the application of development-specific configuration patches and configuration transforms at runtime via the SITECORE_DEVELOPMENT_PATCHES environment variable. You can see available patches here.

environment:
  SITECORE_DEVELOPMENT_PATCHES: DevEnvOn,CustomErrorsOff,DebugOn,DiagnosticsOff,InitMessagesOff,RobotDetectionOff

PowerShell Module

The PowerShell module can be installed and imported from the Sitecore PowerShell Gallery.

Register-PSRepository -Name SitecoreGallery -SourceLocation https://sitecore.myget.org/F/sc-powershell/api/v2
Install-Module SitecoreDockerTools
Import-Module SitecoreDockerTools

# See available commands
Get-Command -Module SitecoreDockerTools

Building/Using from Source

Docker Image

cd image\src
docker-compose build

PowerShell Module

Import-Module .\powershell\src\SitecoreDockerTools.psd1

Running Tests

Unit tests require use of Pester v4.

From the root folder of either project:

Import-Module Pester -RequiredVersion 4.9.0
Invoke-Pester -Path .\test\*

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.