Skip to content

Building the Deployment Executable

Blair L Murri edited this page Dec 18, 2024 · 5 revisions

The deployer can easily be built from any platform (and target any other platform) using the .NET SDK and the dotnet command-line interface.

Building on Linux

Prerequisites

  • Install the .NET 8 SDK for Linux. Follow the instructions specific to your Linux distribution and version.

Building on Windows

Prerequisites

Recommended

  • Install Visual Studio 2022 (VS 2022) for an enhanced development experience.

Building on macOS

Prerequisites


Build Steps

  1. Clone the Repository
    Clone the Cromwell on Azure repository.

  2. Remove nuget.config
    Remove nuget.config from src/ga4gh-tes.
    Note: Do not remove this file if you are an official contributor to https://github.com/microsoft/ga4gh-tes. Do not commit this file deletion if you make a PR.

  3. Build the Solution
    Run the dotnet build command in your terminal (Bash, PowerShell, or Zsh).

    • On Windows, you can also build the solution using Visual Studio 2022.
  4. Run Tests
    Run the dotnet test command in your terminal to ensure everything is working correctly.

  5. Publish the Executable
    Publish the deploy-cromwell-on-azure project as a self-contained deployment using the appropriate runtime identifier (RID) for your platform.

    Example commands:

    • Linux: dotnet publish -r linux-x64
    • Windows: dotnet publish -r win-x64
    • macOS: dotnet publish -r osx-x64

    Note:
    If you encounter failures, try deleting the nuget.config file at the root of the directory before publishing.


Additional Resources

Clone this wiki locally