Sample .NET Core MVC Application with docker for deployment to Apprenda
The repository contains basic .NET Core MVC template provided by Microsoft with the addition of a Dockerfile for packaging in a docker container. Additionally, an Apprenda archive is provided if you wish to deploy to an Apprenda environment with docker enabled.
There are two options to follow in order to deploy in your environment:
- Deploy the already provided and built docker image
- Build the application and your own docker image for deployment
- Deploy the Archive.zip file to Apprenda as a new application. The file is provided within the archive folder in this repository.
- Navigate to the src directory of the repository
- Run "dotnet publish" in order to build and publish your application files.
- Build a docker image using the provided Dockerfile and push to your repository of choice.
- Modify the DeploymentManifest file provided in the archive folder with the correct information (Image Name).
- Zip the linuxServices and DeploymentManifest files to create an Apprenda Archive.
- Deploy to Apprenda.
If you want to deploy this application to Kubernetes, you can use the provided Deployment spec located in the archive folder of this repository.