Service managing k8s cluster with our business logics.
- .NET Core 2.1 SDK (download)
- Docker (any relatively new version will do)
Other than the above prerequisites this application requires no additional special setup on your machine. Open the solution or root folder in your editor of choice and start cracking!
To run the application locally you have two options e.g. in a container or directly on your machine using dotnet cli.
Not defined yet.
To run the application you first need to execute a script located in the repository root. This will restore any dependencies and build both the application and also a container image using Docker. Run the following on your command line in the repository root:
$ ./pipeline.sh
Please note: the script above is a linux bash script and needs a bash runtime to execute.
Now you should be able to start a container by running the following on your command line:
$ docker run -it --rm -p 8080:80 k8s-janitor
You should be able to navigate to http://localhost:8080
in a browser.
To run the application on your local machine run the following on your command line in
the /src
folder in your repository:
$ dotnet build
Followed by:
$ dotnet run --project K8sJanitor.WebApi/K8sJanitor.WebApi.csproj