If you have Pode's source code checked out locally on your machine, you can follow these steps to build Pode:
-
Install InvokeBuild Module
Install-Module InvokeBuild -Scope CurrentUser
choco install invoke-build
-
Test
To run the unit tests, run the following command from the root of the repository (this will build Pode and, if needed, auto-install Pester/.NET):
Invoke-Build Test
-
Build
To just build Pode, before running any examples, run the following:
Invoke-Build Build
-
Packaging
To create a Pode package. Please note that docker has to be present to create the containers.
Invoke-Build Pack
-
Install locally
To install Pode from the repository, run the following:
Invoke-Build Install-Module
To uninstall, use:
Invoke-Build Remove-Module
-
CleanUp
To clean up after a build or a pack, run the following:
Invoke-Build clean
-
Register the Microsoft Repository
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc sudo curl -o /etc/yum.repos.d/microsoft.repo https://packages.microsoft.com/config/centos/8/prod.repo
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc sudo curl -o /etc/yum.repos.d/microsoft.repo https://packages.microsoft.com/config/rhel/9/prod.repo
sudo apt-get update sudo apt-get install -y wget apt-transport-https software-properties-common wget https://packages.microsoft.com/config/debian/$(lsb_release -rs)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo apt-get update;
-
Install InvokeBuild Module
Install-Module InvokeBuild -Scope CurrentUser
-
Test
To run the unit tests, run the following command from the root of the repository (this will build Pode and, if needed, auto-install Pester/.NET):
Invoke-Build Test
-
Build
To just build Pode, before running any examples, run the following:
Invoke-Build Build
-
Packaging
To create a Pode package. Please note that docker has to be present to create the containers.
Invoke-Build Pack
-
Install locally
To install Pode from the repository, run the following:
Invoke-Build Install-Module
To uninstall, use:
Invoke-Build Remove-Module
An easy way to install the required components is to use brew:
-
Install dotnet:
brew install dotnet
-
Install InvokeBuild Module
Install-Module InvokeBuild -Scope CurrentUser
-
Test
To run the unit tests, run the following command from the root of the repository (this will build Pode and, if needed, auto-install Pester/.NET):
Invoke-Build Test
-
Build
To just build Pode, before running any examples, run the following:
Invoke-Build Build
-
Packaging
To create a Pode package. Please note that docker has to be present to create the containers.
Invoke-Build Pack
-
Install locally
To install Pode from the repository, run the following:
Invoke-Build Install-Module
To uninstall, use:
Invoke-Build Remove-Module