Skip to content

Building the Deployment Executable Yourself

Adina Shanholtz edited this page Mar 15, 2023 · 3 revisions

Building the deployment executable yourself

Building on Linux

Preqrequisites:
.NET 6 SDK for Linux. Get instructions for your Linux distro and version to install the SDK.

For example, instructions for Ubuntu 18.04 are available here and below for convenience:

wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt-get update && \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-7.0

Building on Windows

Preqrequisites:
.NET 7 SDK for Windows. Get the executable and follow the wizard to install the SDK.

Recommended:
VS 2022

Build steps

  1. Clone the Cromwell on Azure repository
  2. Build the solution using dotnet build on bash or Powershell. For Windows, you can choose to build and test using VS 2022
  3. Run tests using dotnet test on bash or Powershell
  4. Publish the deploy-cromwell-on-azure project as a self-contained deployment with your target runtime identifier (RID) to produce the executable

Example
Linux: dotnet publish -r linux-x64
Windows: dotnet publish -r win-x64

Learn more about dotnet commands here

Clone this wiki locally