2020-04-30 16:37:04 +03:00
|
|
|
FROM ubuntu:18.04
|
2019-02-27 03:35:49 +03:00
|
|
|
WORKDIR /usr/src/app
|
2019-06-20 02:28:12 +03:00
|
|
|
COPY . ./
|
|
|
|
RUN apt-get update \
|
2019-07-08 04:16:25 +03:00
|
|
|
&& apt-get install -y wget unzip \
|
2019-06-20 02:28:12 +03:00
|
|
|
&& rm -rf /var/lib/apt/lists \
|
|
|
|
&& wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb \
|
|
|
|
&& dpkg -i packages-microsoft-prod.deb \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install -y powershell \
|
|
|
|
&& pwsh -Command "Install-Module -Name Az -Force" \
|
|
|
|
&& pwsh -Command "Install-Module -Name Pester -Force" \
|
2019-07-08 04:16:25 +03:00
|
|
|
&& pwsh -Command "Install-Module -Name Az.ResourceGraph -Force" \
|
2020-04-30 16:37:04 +03:00
|
|
|
&& pwsh -Command "Install-Module -Name Az.Accounts -Force" \
|
2019-07-08 04:16:25 +03:00
|
|
|
&& export VER="1.4.1" \
|
|
|
|
&& wget -q https://releases.hashicorp.com/packer/${VER}/packer_${VER}_linux_amd64.zip \
|
|
|
|
&& unzip packer_${VER}_linux_amd64.zip \
|
|
|
|
&& mv packer /usr/local/bin \
|
|
|
|
&& apt-get install -y curl apt-transport-https lsb-release gnupg \
|
|
|
|
&& curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/microsoft.asc.gpg > /dev/null \
|
|
|
|
&& AZ_REPO=$(lsb_release -cs) \
|
|
|
|
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | tee /etc/apt/sources.list.d/azure-cli.list \
|
|
|
|
&& apt-get install apt-transport-https \
|
|
|
|
&& apt-get update \
|
2019-08-24 08:31:50 +03:00
|
|
|
&& apt-get install azure-cli \
|
|
|
|
&& apt-get install -y dotnet-sdk-2.2 \
|
|
|
|
&& dotnet build Orchestration/OrchestrationService/TopologicalSort/TopologicalSort.csproj --configuration Release
|
2020-04-30 16:37:04 +03:00
|
|
|
|
|
|
|
RUN chmod 755 /usr/src/app
|
|
|
|
|
|
|
|
COPY entrypoint1.ps1 /usr/src/app/entrypoint1.ps1
|
|
|
|
ENTRYPOINT [ "pwsh", "-c", "./entrypoint1.ps1" ]
|