Created
December 16, 2021 00:53
-
-
Save georgechang/8076361c8271ad1e32722281a032f0a7 to your computer and use it in GitHub Desktop.
Coveo Assets Dockerfiles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG WINDOWS_VERSION | |
ARG WINDOWS_LTSC_VERSION | |
FROM mcr.microsoft.com/windows/servercore:${WINDOWS_LTSC_VERSION} as builder | |
ARG COVEO_VERSION=5.0.1039.1 | |
ARG COVEO_PACKAGE_URL=https://static.cloud.coveo.com/coveoforsitecore/packages/v${COVEO_VERSION}/Coveo%20for%20Sitecore%2010.1%20${COVEO_VERSION}.scwdp.zip | |
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | |
RUN Write-Host ('Preparing Coveo...'); \ | |
Write-Host ('Downloading {0}...' -f $env:COVEO_PACKAGE_URL); \ | |
Invoke-WebRequest -Uri $env:COVEO_PACKAGE_URL -OutFile 'coveo.zip'; \ | |
Write-Host 'Expanding...'; \ | |
Expand-Archive coveo.zip -DestinationPath C:\temp; \ | |
Move-Item -Path C:\temp -Destination C:\coveo; | |
FROM mcr.microsoft.com/windows/nanoserver:${WINDOWS_VERSION} | |
RUN mkdir module\cm\content | |
RUN mkdir module\cd\content | |
RUN mkdir module\db | |
COPY --from=builder /coveo/core.dacpac /module/db/Sitecore.Core.dacpac | |
COPY --from=builder /coveo/master.dacpac /module/db/Sitecore.Master.dacpac | |
COPY --from=builder /coveo/Content/Website /module/cm/content | |
COPY --from=builder /coveo/Content/Website /module/cd/content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG WINDOWS_VERSION | |
ARG WINDOWS_LTSC_VERSION | |
FROM mcr.microsoft.com/windows/servercore:${WINDOWS_LTSC_VERSION} as builder | |
ARG COVEO_VERSION=5.0.1039.1 | |
ARG COVEO_SXA_PACKAGE_URL=https://static.cloud.coveo.com/coveoforsitecore/packages/v${COVEO_VERSION}/Coveo%20for%20Sitecore%20SXA%2010.1%20${COVEO_VERSION}.scwdp.zip | |
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | |
RUN Write-Host ('Preparing Coveo...'); \ | |
Write-Host ('Downloading {0}...' -f $env:COVEO_SXA_PACKAGE_URL); \ | |
Invoke-WebRequest -Uri $env:COVEO_SXA_PACKAGE_URL -OutFile 'coveo.zip'; \ | |
Write-Host 'Expanding...'; \ | |
Expand-Archive coveo.zip -DestinationPath C:\temp; \ | |
Move-Item -Path C:\temp -Destination C:\coveo; | |
FROM mcr.microsoft.com/windows/nanoserver:${WINDOWS_VERSION} | |
RUN mkdir module\cm\content | |
RUN mkdir module\cd\content | |
RUN mkdir module\db | |
COPY --from=builder /coveo/master.dacpac /module/db/Sitecore.Master.dacpac | |
COPY --from=builder /coveo/Content/Website /module/cm/content | |
COPY --from=builder /coveo/Content/Website /module/cd/content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment