Skip to content

Commit

Permalink
now it's even more fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
dstrebel committed Sep 19, 2018
1 parent 06c6adc commit 809cb01
Showing 1 changed file with 0 additions and 59 deletions.
59 changes: 0 additions & 59 deletions labs/build-application/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,6 @@ In this lab we will build Docker containers for each of the application componen
1. Create Azure Container Registry (ACR)
* Use the same resource group that was created for AKS (in lab 1)
* In this step, you will need a unique name for your ACR instance. Use the following step to create the ACR name and then deploy.
<<<<<<< HEAD
```bash
export ACRNAME=acrhackfest$UNIQUE_SUFFIX
```
```bash
az acr create --resource-group $RGNAME --name $ACRNAME --sku Basic
```
2. Run bash script to authenticate with Azure Container Registry from AKS
* Running this script will grant the Service Principal created at cluster creation time access to ACR.
```bash
cd ~/kubernetes-hackfest/labs/build-application
```
```bash
sh reg-acr.sh $RGNAME $CLUSTERNAME $ACRNAME
```
=======

```bash
# Use the UNIQUE_SUFFIX from the first lab. Validate that the value is still set.
Expand All @@ -53,25 +37,11 @@ In this lab we will build Docker containers for each of the application componen
sh reg-acr.sh $RGNAME $CLUSTERNAME $ACRNAME
```
>>>>>>> e71d99301b775a8036d6541ca333a029881299c2

2. Deploy Cosmos DB

In this step, create a Cosmos DB account for the Mongo api. Again, we will create a random, unique name.

<<<<<<< HEAD
# Use the UNIQUE_SUFFIX from the first lab. Validate that the value is still set.

```bash
echo export COSMOSNAME=cosmos$UNIQUE_SUFFIX >> ~/.bashrc
```
```bash
source ~/.bashrc
```
```bash
az cosmosdb create --name $COSMOSNAME --resource-group $RGNAME --kind MongoDB
```
=======
```bash
echo export COSMOSNAME=cosmos$UNIQUE_SUFFIX >> ~/.bashrc
```
Expand All @@ -81,30 +51,11 @@ In this lab we will build Docker containers for each of the application componen
```bash
az cosmosdb create --name $COSMOSNAME --resource-group $RGNAME --kind MongoDB
```
>>>>>>> e71d99301b775a8036d6541ca333a029881299c2

You can validate your Cosmos instance in the portal. The credentials and connect string will be used in the next lab.


3. Create Docker containers in ACR
<<<<<<< HEAD
* In this step we will create a Docker container image for each of our microservices. We will use ACR Builder functionality to build and store these images in the cloud.

```bash
cd ~/kubernetes-hackfest
```
# set a version (make this anything you would like)
```bash
export VERSION=v4
```
```bash
az acr build -t hackfest/data-api:$VERSION -r $ACRNAME --no-logs ./app/data-api
az acr build -t hackfest/flights-api:$VERSION -r $ACRNAME --no-logs ./app/flights-api
az acr build -t hackfest/quakes-api:$VERSION -r $ACRNAME --no-logs ./app/quakes-api
az acr build -t hackfest/weather-api:$VERSION -r $ACRNAME --no-logs ./app/weather-api
az acr build -t hackfest/service-tracker-ui:$VERSION -r $ACRNAME --no-logs ./app/service-tracker-ui
```
=======

In this step we will create a Docker container image for each of our microservices. We will use ACR Builder functionality to build and store these images in the cloud.

Expand All @@ -117,24 +68,14 @@ In this lab we will build Docker containers for each of the application componen
az acr build -t hackfest/weather-api:1.0 -r $ACRNAME --no-logs ./app/weather-api
az acr build -t hackfest/service-tracker-ui:1.0 -r $ACRNAME --no-logs ./app/service-tracker-ui
```
>>>>>>> e71d99301b775a8036d6541ca333a029881299c2

You can see the status of the builds by running the command below.

<<<<<<< HEAD
```bash
az acr build-task list-builds -r $ACRNAME -o table
```
```bash
az acr build-task logs -r $ACRNAME --build-id aa1
```
=======
```
az acr build-task list-builds -r $ACRNAME -o table
az acr build-task logs -r $ACRNAME --build-id aa1
```
>>>>>>> e71d99301b775a8036d6541ca333a029881299c2

Browse to your ACR instance in the Azure portal and validate that the images are in "Repositories."

Expand Down

0 comments on commit 809cb01

Please sign in to comment.