Skip to content

Commit 07f30c0

Browse files
committedNov 14, 2017
[acr] update to sync with new sample
1 parent d73359c commit 07f30c0

File tree

8 files changed

+37
-37
lines changed

8 files changed

+37
-37
lines changed
 

‎articles/container-registry/container-registry-tutorial-deploy-update.md

+28-28
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ If you've not yet configured the two *Web App for Containers* regional deploymen
3737

3838
In this step, make a change to the web application that will be highly visible once you push the updated container image to Azure Container Registry.
3939

40-
Find the `AcrHelloworld/Views/Home/Index.cshtml` file in the application source you [cloned from GitHub](container-registry-tutorial-prepare-registry.md#get-application-code) in a previous tutorial and open it in your favorite text editor. Add the following line above the `<img>` line:
40+
Find the `AcrHelloworld/Views/Home/Index.cshtml` file in the application source you [cloned from GitHub](container-registry-tutorial-prepare-registry.md#get-application-code) in a previous tutorial and open it in your favorite text editor. Add the following line below the existing `<h1>` line:
4141

4242
```html
4343
<h1>MODIFIED</h1>
@@ -49,15 +49,27 @@ Your modified `Index.cshtml` should look similar to:
4949
@{
5050
ViewData["Title"] = "Azure Container Registry :: Geo-replication";
5151
}
52+
<style>
53+
body {
54+
background-image: url('images/azure-regions.png');
55+
background-size: cover;
56+
}
57+
.footer {
58+
position: fixed;
59+
bottom: 0px;
60+
width: 100%;
61+
}
62+
</style>
63+
64+
<h1 style="text-align:center;color:blue">Hello World from: @ViewData["REGION"]</h1>
5265
<h1>MODIFIED</h1>
53-
<img width="700" src="~/images/@ViewData["MAPIMAGE"]" />
54-
<ul>
55-
<li>Registry URL: @ViewData["REGISTRYURL"]</li>
56-
<li>Registry IP: @ViewData["REGISTRYIP"]</li>
57-
<li>HostEntry: @ViewData["HOSTENTRY"]</li>
58-
<li>Region: @ViewData["REGION"]</li>
59-
<li>Map: @ViewData["MAPIMAGE"]</li>
60-
</ul>
66+
<div class="footer">
67+
<ul>
68+
<li>Registry URL: @ViewData["REGISTRYURL"]</li>
69+
<li>Registry IP: @ViewData["REGISTRYIP"]</li>
70+
<li>Registry Region: @ViewData["REGION"]</li>
71+
</ul>
72+
</div>
6173
```
6274

6375
## Rebuild the image
@@ -68,18 +80,6 @@ Now that you've updated the web application, rebuild its container image. As bef
6880
docker build . -f ./AcrHelloworld/Dockerfile -t <acrName>.azurecr.io/acr-helloworld:v1
6981
```
7082

71-
## Run the container locally
72-
73-
Before deploying to Azure Container Registry, run the image locally to verify the build was successful.
74-
75-
```bash
76-
docker run -d -p 8080:80 <acrName>.azurecr.io/acr-helloworld:v1
77-
```
78-
79-
Navigate to http://localhost:8080 in your web browser to confirm that the container is up and running, and your modification is displayed.
80-
81-
![LOCAL CONTAINER IMAGE][local-container-01]
82-
8383
## Push image to Azure Container Registry
8484

8585
Now, push the updated *acr-helloworld* container image to your geo-replicated registry. Here, you're executing a single `docker push` command to deploy the updated image to the registry replicas in both the *West US* and *East US* regions.
@@ -92,14 +92,14 @@ Output should appear similar to the following:
9292

9393
```bash
9494
The push refers to a repository [uniqueregistryname.azurecr.io/acr-helloworld]
95-
c003ed6fc8b8: Pushed
96-
02b11afef3fd: Layer already exists
97-
cf17b6f921be: Layer already exists
98-
c93ae914d31e: Layer already exists
99-
2eea44510cee: Layer already exists
100-
670f809bd6d5: Layer already exists
95+
5b9454e91555: Pushed
96+
d6803756744a: Layer already exists
97+
b7b1f3a15779: Layer already exists
98+
a89567dff12d: Layer already exists
99+
59c7b561ff56: Layer already exists
100+
9a2f9413d9e4: Layer already exists
101101
a75caa09eb1f: Layer already exists
102-
v1: digest: sha256:e44c0956a21c91e1f5f7bc83f23f1de710c798246df1e0e508c0c88025449646 size: 1792
102+
v1: digest: sha256:4c3f2211569346fbe2d1006c18cbea2a4a9dcc1eb3a078608cef70d3a186ec7a size: 1792
103103
```
104104

105105
## View the webhook logs

‎articles/container-registry/container-registry-tutorial-prepare-registry.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ docker images
205205
Output:
206206

207207
```bash
208-
REPOSITORY TAG IMAGE ID CREATED SIZE
209-
uniqueregistryname.azurecr.io/acr-helloworld v1 c9ca1763cfb1 About a minute ago 285MB
208+
REPOSITORY TAG IMAGE ID CREATED SIZE
209+
uniqueregistryname.azurecr.io/acr-helloworld v1 01ac48d5c8cf About a minute ago 284MB
210210
...
211211
```
212212

@@ -224,14 +224,14 @@ Output:
224224

225225
```bash
226226
The push refers to a repository [uniqueregistryname.azurecr.io/acr-helloworld]
227-
9716cfe18412: Pushed
228-
074867a942d5: Pushed
229-
a77666945b96: Pushed
230-
953ff32f2036: Pushed
231-
aa2e77726d3c: Pushed
232-
98b800c91d50: Pushed
227+
cd54739c444b: Pushed
228+
d6803756744a: Pushed
229+
b7b1f3a15779: Pushed
230+
a89567dff12d: Pushed
231+
59c7b561ff56: Pushed
232+
9a2f9413d9e4: Pushed
233233
a75caa09eb1f: Pushed
234-
v1: digest: sha256:c515bcebf249b591b558318e2d0ec21d1320340dbf335730eb32372ff7d34255 size: 1792
234+
v1: digest: sha256:0799014f91384bda5b87591170b1242bcd719f07a03d1f9a1ddbae72b3543970 size: 1792
235235
```
236236

237237
## Next steps
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.