The easiest way to run your backend services locally is using Compose. To run the services type docker-compose up
from terminal located in the root folder. This will build (if needed) the Docker images and bring up all the containers.
Run docker-compose up -d podcast.db storage
from terminal located in the root folder.
Open Visual Studio select Podcast.Api as start up project and hit f5.
To configure the Github Action it is necessary to create an environment called prod
and set up the following secrets. (Consider that the action will create these resources automatically, so resource names need to be unique). Learn how to create an environment.
AZURE_CREDENTIALS
: service principal to authenticate with Azure. See Create Azure Credentials.PODCASTDB_USER_LOGIN
: Username for Podcast db.PODCASTDB_USER_PASSWORD
: Password for Podcast db.AZURE_RESOURCE_GROUP_NAME
: Existing resource group where resources will be deployed.ACR_NAME
: Container registry nameSTORAGE_NAME
: Storage namePODCASTDB_SERVER_NAME
: Azure SQL server nameKUBERNETES_ENV_NAME
: Container apps environment nameWORKSPACE_NAME
: Log Analytics workspace name