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

https://github.com/asizikov/aci-echo

Sample dockerized .NET6 API with Azure Container Instances as a deployment target.
https://github.com/asizikov/aci-echo

azure azure-container-instances docker dotnet-core dotnet6 web-api-core

Last synced: about 2 months ago
JSON representation

Sample dockerized .NET6 API with Azure Container Instances as a deployment target.

Awesome Lists containing this project

README

          

![build-application](https://github.com/asizikov/aci-echo/workflows/build-application/badge.svg)

Build and run docker container:

`docker build -t local . && docker run -p 8081:80 --name echo-api local `

Verify that it's up and running:

```bash
curl -GET http://localhost:8081/echo\?message\=Hi
{"message":"Hi"}
```

Make sure you have Azure CLI installed:

```bash
az --version
```

Create a resource group

```bash
az group create \
--name rg-aci-echo \
--location westeurope
```
then create ACI resource
```bash
az container create --resource-group rg-aci-echo \
--location westeurope \
--name aci-echo-api \
--image asizikov/echo-api:latest \
--cpu 1 --memory 0.5 \
--dns-name-label echo-api \
--ip-address Public
```

verify that it's up and running:

```bash
curl -GET $(az container show -g rg-aci-echo -n aci-echo-api --query "ipAddress.fqdn" -o tsv)/echo\?message\=Hi
```