Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```