Skip to content

Commit 45a9d81

Browse files
Merge pull request #30 from markojot/main
Added-Docker-Into-Deployment-Flow
2 parents d3f09ff + 8bdf273 commit 45a9d81

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

.github/ISSUE_TEMPLATE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ IF SUFFICIENT INFORMATION IS NOT PROVIDED VIA THE FOLLOWING TEMPLATE THE ISSUE M
88
```
99
- [ ] bug report -> please search issues before submitting
1010
- [ ] feature request
11-
- [ ] documentation issue or request
11+
- [x] documentation issue or request
1212
- [ ] regression (a behavior that used to work and stopped in a new release)
1313
```
1414

@@ -28,6 +28,6 @@ IF SUFFICIENT INFORMATION IS NOT PROVIDED VIA THE FOLLOWING TEMPLATE THE ISSUE M
2828
>
2929
3030
### Mention any other details that might be useful
31-
31+
Adding steps to help the flow of the deployment.
3232
> ---------------------------------------------------------------
3333
> Thanks! We'll be in touch soon.

README.md

+33
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,39 @@ resource "azurerm_role_assignment" "acr_pull_assignment" {
433433
}
434434
```
435435

436+
## Build Docker Images
437+
438+
After deploying the infrastructure, it's essential to build and push Docker images to the Azure Container Registry (ACR). This ensures that the container apps which are deployed by the Terraform applicaton module have the necessary images available in ACR for deployment.
439+
440+
Before you begin using any scripts in the src folder, first customize the variables in the the `00-variables.sh` file. This file, found in the same folder, sets up variables used by all subsequent scripts, including:
441+
442+
```bash
443+
# Variables
444+
445+
# Azure Container Registry
446+
prefix="Blue"
447+
acrName="${prefix}Registry"
448+
acrResourceGrougName="${prefix}RG"
449+
location="EastUS"
450+
451+
# Python Files
452+
docAppFile="doc.py"
453+
chatAppFile="chat.py"
454+
455+
# Docker Images
456+
docImageName="doc"
457+
chatImageName="chat"
458+
tag="v1"
459+
port="8000"
460+
461+
# Arrays
462+
images=($docImageName $chatImageName)
463+
filenames=($docAppFile $chatAppFile)
464+
```
465+
466+
After customizing the variables, start the Docker image building process with the `src/01-build-docker-images.sh` Bash script. This script automatically creates the Docker container image for both applications. Then, use the `src/03-push-docker-image.sh` script to upload your images to the Azure Container Registry.
467+
468+
436469
## Deploy the Applications
437470

438471
Before deploying the Terraform modules in the `terraform/apps` folder, specify a value for the following variables in the [terraform.tfvars](https://developer.hashicorp.com/terraform/language/values/variables#variable-definitions-tfvars-files) variable definitions file.

0 commit comments

Comments
 (0)