Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asizikov/asp-net-container
Sample .NET Core app with container structure tests
https://github.com/asizikov/asp-net-container
container-structure-test dockerfile
Last synced: 2 days ago
JSON representation
Sample .NET Core app with container structure tests
- Host: GitHub
- URL: https://github.com/asizikov/asp-net-container
- Owner: asizikov
- Created: 2020-09-27T15:13:23.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-28T21:37:10.000Z (over 4 years ago)
- Last Synced: 2024-11-10T15:50:44.667Z (2 months ago)
- Topics: container-structure-test, dockerfile
- Language: C#
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Description
This repository contains a .NET Core Web application, unit tests and Dockerfile.
This Dockerfile is horrible, you may want to fork this repository, fix all the problems and try to update the workflow.
I recommend you to use https://github.com/marketplace/actions/container-structure-test-action to ensure the docker image quality.
There is also one more file: `Dockerfile.fixed` with some fixes applied to it. If you build an image using this docker file this image will pass CI tests.
## How to run this application
``` bash
docker image build -t asp-net-container:latest .
docker run -p 801:80 --name asp-net-container asp-net-container:latest
```this will build an image, start a new container with would serve http requests on localhost, port 801.
http://localhost:801/health
## How to run container structure tests
### Local run.
Make sure you cave container-structure-tests installed. You can follow the instructions from [the official repo](https://github.com/GoogleContainerTools/container-structure-test).
```bash
container-structure-test test --image asp-net-container:latest --config container-structure-tests.yaml
```