Skip to content

Commit 7cefab0

Browse files
foverbyGitHub Enterprise
authored andcommitted
Merge pull request #178 from cloud-docs/next-prod-push
Next publish push
2 parents 283b179 + caa281a commit 7cefab0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+357
-301
lines changed

app-tutorial.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22

33
copyright:
4-
years: 2020, 2021
5-
lastupdated: "2021-12-21"
4+
years: 2020, 2022
5+
lastupdated: "2022-01-12"
66

77
keywords: app tutorial for code engine, application, apps, images, tutorial for code engine, deploying
88

@@ -37,20 +37,18 @@ Tutorials might incur costs. Use the Cost Estimator to generate a cost estimate
3737
{: #deploy-app-image-file}
3838
{: step}
3939

40-
This tutorial uses a sample image, `ibmcom/hello`, which is a simple `Hello World` program. The program includes an environment variable `TARGET`, and prints `Hello ${TARGET}`. If the environment variable is empty, `Hello World` is returned.
40+
This tutorial uses a sample image, `icr.io/codeengine/hello`, which is a simple `Hello World` program. The program includes an environment variable `TARGET`, and prints `Hello ${TARGET}`. If the environment variable is empty, `Hello World` is returned. For more information about the code that is used for this example, see [`hello`](https://github.com/IBM/CodeEngine/blob/main/hello){: external}.
4141

4242
If you have a container image that you want to use, you can replace the image reference in the next step with your own Docker repository, image name, and version.
4343

44-
You can review the code that is used for this example at [`ibmcom/hello`](https://github.com/IBM/CodeEngine/blob/main/hello/server.js).
45-
4644
## Creating and deploying an application
4745
{: #app-creating-deploying}
4846
{: step}
4947

50-
1. Create your application by using the [**`ibmcloud ce application create`**](/docs/codeengine?topic=codeengine-cli#cli-application-create) command. In the following example, use `myapp` as the name of the application and specify `ibmcom/hello` as the image to reference.
48+
1. Create your application by using the [**`ibmcloud ce application create`**](/docs/codeengine?topic=codeengine-cli#cli-application-create) command. In the following example, use `myapp` as the name of the application and specify `icr.io/codeengine/hello` as the image to reference.
5149

5250
```sh
53-
ibmcloud ce application create --name myapp --image ibmcom/hello
51+
ibmcloud ce application create --name myapp --image icr.io/codeengine/hello
5452
```
5553
{: pre}
5654

@@ -90,7 +88,7 @@ You can review the code that is used for this example at [`ibmcom/hello`](https:
9088
Console URL: https://cloud.ibm.com/codeengine/project/us-south/01234567-abcd-abcd-abcd-abcdabcd1111/application/myapp/configuration
9189
Status Summary: Application deployed successfully
9290
93-
Image: ibmcom/hello
91+
Image: icr.io/codeengine/hello
9492
Resource Allocation:
9593
CPU: 1
9694
Ephemeral Storage: 500Mi
@@ -100,7 +98,7 @@ You can review the code that is used for this example at [`ibmcom/hello`](https:
10098
myapp-huv70-1:
10199
Age: 3m6s
102100
Traffic: 100%
103-
Image: ibmcom/hello (pinned to f0dc03)
101+
Image: icr.io/codeengine/hello (pinned to f0dc03)
104102
Running Instances: 1
105103
106104
Runtime:
@@ -208,14 +206,14 @@ You successfully deployed and started a {{site.data.keyword.codeengineshort}} ap
208206
Environment Variables:
209207
Type Name Value
210208
Literal TARGET Stranger
211-
Image: ibmcom/hello
209+
Image: icr.io/codeengine/hello
212210
213211
Status Summary: Application deployed successfully
214212
215213
Environment Variables:
216214
Type Name Value
217215
Literal TARGET Stranger
218-
Image: ibmcom/hello
216+
Image: icr.io/codeengine/hello
219217
Resource Allocation:
220218
CPU: 1
221219
Ephemeral Storage: 500Mi
@@ -225,7 +223,7 @@ You successfully deployed and started a {{site.data.keyword.codeengineshort}} ap
225223
myapp-00002:
226224
Age: 54m
227225
Traffic: 100%
228-
Image: ibmcom/hello (pinned to f0dc03)
226+
Image: icr.io/codeengine/hello (pinned to f0dc03)
229227
Running Instances: 1
230228
231229
Runtime:
@@ -307,7 +305,7 @@ The following example illustrates how to scale your application with the CLI. Yo
307305
Environment Variables:
308306
Type Name Value
309307
Literal TARGET Stranger
310-
Image: ibmcom/hello
308+
Image: icr.io/codeengine/hello
311309
312310
Resource Allocation:
313311
CPU: 1
@@ -318,7 +316,7 @@ The following example illustrates how to scale your application with the CLI. Yo
318316
myapp-00002:
319317
Age: 58m
320318
Traffic: 100%
321-
Image: ibmcom/hello (pinned to f0dc03)
319+
Image: icr.io/codeengine/hello (pinned to f0dc03)
322320
Running Instances: 1
323321
324322
Runtime:
@@ -363,7 +361,7 @@ The following example illustrates how to scale your application with the CLI. Yo
363361
Environment Variables:
364362
Type Name Value
365363
Literal TARGET Stranger
366-
Image: ibmcom/hello
364+
Image: icr.io/codeengine/hello
367365
368366
Resource Allocation:
369367
CPU: 1
@@ -374,7 +372,7 @@ The following example illustrates how to scale your application with the CLI. Yo
374372
myapp-huv70-2
375373
Age: 13m
376374
Traffic: 100%
377-
Image: ibmcom/hello (pinned to 548d5c)
375+
Image: icr.io/codeengine/hello (pinned to 548d5c)
378376
Running Instances: 0
379377
380378
Runtime:
@@ -424,7 +422,7 @@ The following example illustrates how to scale your application with the CLI. Yo
424422
Environment Variables:
425423
Type Name Value
426424
Literal TARGET Stranger
427-
Image: ibmcom/hello
425+
Image: icr.io/codeengine/hello
428426
429427
Resource Allocation:
430428
CPU: 1
@@ -435,7 +433,7 @@ The following example illustrates how to scale your application with the CLI. Yo
435433
myapp-huv70-2:
436434
Age: 3h11m
437435
Traffic: 100%
438-
Image: ibmcom/hello (pinned to f0dc03)
436+
Image: icr.io/codeengine/hello (pinned to f0dc03)
439437
Running Instances: 1
440438
441439
Runtime:

appdeploy-access.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22

33
copyright:
4-
years: 2020, 2021
5-
lastupdated: "2021-12-15"
4+
years: 2020, 2022
5+
lastupdated: "2022-01-12"
66

77
keywords: applications in code engine, apps in code engine, http requests in code engine, deploy apps in code engine, app workloads in code engine, deploying workloads in code engine, application, app, memory, cpu, environment variables
88

@@ -67,7 +67,7 @@ Cluster Local URL: http://myapp.abcdabcdabc.svc.cluster.local
6767
Console URL: https://cloud.ibm.com/codeengine/project/us-south/01234567-abcd-abcd-abcd-abcdabcd1111/application/myapp/configuration
6868
Status Summary: Application deployed successfully
6969

70-
Image: docker.io/ibmcom/hello
70+
Image: icr.io/codeengine/hello
7171
Resource Allocation:
7272
CPU: 1
7373
Ephemeral Storage: 500Mi
@@ -78,7 +78,7 @@ Revisions:
7878
Age: 100s
7979
Latest: true
8080
Traffic: 100%
81-
Image: docker.io/ibmcom/hello (pinned to d6fd55)
81+
Image: icr.io/codeengine/hello (pinned to d6fd55)
8282
Running Instances: 1
8383

8484
Runtime:

appdeploy-plan.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22

33
copyright:
4-
years: 2020, 2021
5-
lastupdated: "2021-12-20"
4+
years: 2020, 2022
5+
lastupdated: "2022-01-12"
66

77
keywords: applications in code engine, apps in code engine, http requests in code engine, deploy apps in code engine, app workloads in code engine, deploying workloads in code engine, application, app, memory, cpu, environment variables
88

@@ -113,7 +113,7 @@ You can define commands and arguments for your application to use at run time.
113113
Define commands and arguments for your application by adding the `--cmd` and `--arg` options to your [**`app create`**](/docs/codeengine?topic=codeengine-cli#cli-application-create) command.
114114

115115
```sh
116-
ibmcloud ce app create --name myapp --image ibmcom/hello --cmd /myapp --arg --debug
116+
ibmcloud ce app create --name myapp --image icr.io/codeengine/hello --cmd /myapp --arg --debug
117117
```
118118
{: pre}
119119

appdeploy-private.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22

33
copyright:
4-
years: 2020, 2021
5-
lastupdated: "2021-11-15"
4+
years: 2020, 2022
5+
lastupdated: "2022-01-05"
66

77
keywords: applications in code engine, apps in code engine, http requests in code engine, deploy apps in code engine, app workloads in code engine, deploying workloads in code engine, application, app, memory, cpu, environment variables
88

@@ -18,7 +18,7 @@ subcollection: codeengine
1818
Deploy your app with {{site.data.keyword.codeengineshort}} that uses an image in a private registry such as private Docker Hub. You can create an app from the console or with the CLI.
1919
{: shortdesc}
2020

21-
**Before you begin**
21+
Before you begin
2222

2323
To pull images from a private registry, you must first create a private registry. For example, to create a private Docker Hub registry, see [Docker Hub documentation](https://docs.docker.com/docker-hub/repos/){: external}. After you create a private registry, [push an image to it](https://docs.docker.com/docker-hub/repos/#pushing-a-docker-container-image-to-docker-hub){: external}. You can also set up an access token. By using an access token, you can more easily grant and revoke access to your Docker Hub account without requiring a password change. For more information about access tokens and Docker Hub, see [Managing access tokens](https://docs.docker.com/docker-hub/access-tokens/){: external}.
2424

appdeploy-public.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22

33
copyright:
4-
years: 2020, 2021
5-
lastupdated: "2021-12-15"
4+
years: 2020, 2022
5+
lastupdated: "2022-01-12"
66

77
keywords: applications in code engine, apps in code engine, http requests in code engine, deploy apps in code engine, app workloads in code engine, deploying workloads in code engine, application, app, memory, cpu, environment variables
88

@@ -27,14 +27,14 @@ Looking for more code examples? Check out the [Samples for {{site.data.keyword.c
2727
Deploy an application with an image from public Docker Hub with the {{site.data.keyword.codeengineshort}} console.
2828
{: shortdesc}
2929

30-
This example references an image in public Docker Hub. You can also reference an [image in {{site.data.keyword.registrylong}}](/docs/codeengine?topic=codeengine-deploy-app-crimage) or an [image in a private registry](/docs/codeengine?topic=codeengine-deploy-app-private).
30+
This example references an image in [{{site.data.keyword.registrylong}}](/docs/codeengine?topic=codeengine-deploy-app-crimage). You can also reference an image in a public Docker Hub or an [image in a private registry](/docs/codeengine?topic=codeengine-deploy-app-private).
3131

3232
1. Open the [{{site.data.keyword.codeengineshort}}](https://cloud.ibm.com/codeengine/overview){: external} console.
3333
2. Select **Start creating** from **Run a container image**.
3434
3. Select **Application**.
3535
4. Enter a name for the application. Use a name for your application that is unique within the project.
3636
5. Select a project from the list of available projects. You can also [create a new one](/docs/codeengine?topic=codeengine-manage-project#create-a-project). You must have a selected project to deploy an app.
37-
6. Specify a container image, for example, `docker.io/ibmcom/helloworld`.
37+
6. Specify a container image, for example, `icr.io/codeengine/helloworld`.
3838
7. Modify any default values for endpoint or runtime settings. For more information about these options, see [Options for endpoint visibility of apps](/docs/codeengine?topic=codeengine-application-workloads#optionsdeploy) and [Options for deploying an app](/docs/codeengine?topic=codeengine-application-workloads#optionsdeploy).
3939
8. Click **Create**.
4040
9. After the application status changes to **Ready**, you can test the application. Click **Test application** and then click **Send request** in the Test application pane. To open the application in a web page, click **Application URL**.
@@ -49,10 +49,10 @@ Now that you have deployed your application, you can view information about appl
4949
To create and deploy your app with the CLI, use the **`app create`** command. This command requires a name and an image and also allows other optional arguments. For a complete listing of options, see the [**`ibmcloud ce app create`**](/docs/codeengine?topic=codeengine-cli#cli-application-create) command.
5050
{: shortdesc}
5151

52-
The following **`application create`** command creates and deploys an app that is named `myapp` and uses the container image `docker.io/ibmcom/hello`.
52+
The following **`application create`** command creates and deploys an app that is named `myapp` and uses the container image `icr.io/codeengine/hello`.
5353

5454
```sh
55-
ibmcloud ce application create --name myapp --image docker.io/ibmcom/hello
55+
ibmcloud ce application create --name myapp --image icr.io/codeengine/hello
5656
```
5757
{: pre}
5858

appdeploy-update.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22

33
copyright:
4-
years: 2020, 2021
5-
lastupdated: "2021-12-15"
4+
years: 2020, 2022
5+
lastupdated: "2022-01-12"
66

77
keywords: applications in code engine, apps in code engine, http requests in code engine, deploy apps in code engine, app workloads in code engine, deploying workloads in code engine, application, app, memory, cpu, environment variables
88

@@ -86,7 +86,7 @@ To update your app with the CLI, use the **`app update`** command. This command
8686

8787
Update the application that you created in [Deploying an application with the CLI](/docs/codeengine?topic=codeengine-deploy-app#deploy-app-cli) to add an environment variable.
8888

89-
The sample `docker.io/ibmcom/hello` image reads the environment variable `TARGET`, and prints `Hello ${TARGET}`. If this environment variable is empty, `Hello World` is returned. The following example updates the app to modify the value of the `TARGET` environment variable to `Stranger`.
89+
The sample `icr.io/codeengine/hello` image reads the environment variable `TARGET`, and prints `Hello ${TARGET}`. If this environment variable is empty, `Hello World` is returned. The following example updates the app to modify the value of the `TARGET` environment variable to `Stranger`. For more information about the code that is used for this example, see [`hello`](https://github.com/IBM/CodeEngine/blob/main/hello){: external}.
9090

9191
1. Run the **`application update`** command. For example,
9292

@@ -127,7 +127,7 @@ The sample `docker.io/ibmcom/hello` image reads the environment variable `TARGET
127127
Environment Variables:
128128
Type Name Value
129129
Literal TARGET Stranger
130-
Image: docker.io/ibmcom/hello
130+
Image: icr.io/codeengine/hello
131131
Resource Allocation:
132132
CPU: 1
133133
Ephemeral Storage: 500Mi
@@ -137,7 +137,7 @@ The sample `docker.io/ibmcom/hello` image reads the environment variable `TARGET
137137
myapp-hc3u8-2:
138138
Age: 82s
139139
Traffic: 100%
140-
Image: docker.io/ibmcom/hello (pinned to f0dc03)
140+
Image: icr.io/codeengine/hello (pinned to f0dc03)
141141
Running Instances: 1
142142
143143
Runtime:
@@ -182,7 +182,7 @@ The sample `docker.io/ibmcom/hello` image reads the environment variable `TARGET
182182

183183
From the output of this command, you can see the updated app now returns `Hello Stranger`.
184184

185-
4. Use the [**`ibmcloud ce revision list`**](/docs/codeengine?topic=codeengine-cli#cli-revision-list) command to display all of your app revisions. Use this information to help you manage your app revisions as {{site.data.keyword.codeengineshort}} has a [quota for the number of app revisions in a project](/docs/codeengine?topic=codeengine-limits#project_quotas).
185+
4. Use the [**`ibmcloud ce revision list`**](/docs/codeengine?topic=codeengine-cli#cli-revision-list) command to display all your app revisions. Use this information to help you manage your app revisions as {{site.data.keyword.codeengineshort}} has a [quota for the number of app revisions in a project](/docs/codeengine?topic=codeengine-limits#project_quotas).
186186

187187
In the following **`revision list`** output, notice that {{site.data.keyword.codeengineshort}} retains only the latest inactive revision of your application in addition to your active app revision. Older revisions are deleted.
188188

@@ -256,7 +256,7 @@ In this scenario, update the application that you created in [Deploying an appli
256256
Environment Variables:
257257
Type Name Value
258258
Literal TARGET Stranger
259-
Image: docker.io/ibmcom/hello
259+
Image: icr.io/codeengine/hello
260260
Resource Allocation:
261261
CPU: 1
262262
Ephemeral Storage: 500Mi
@@ -266,7 +266,7 @@ In this scenario, update the application that you created in [Deploying an appli
266266
myapp-hc3u8-2:
267267
Age: 82s
268268
Traffic: 100%
269-
Image: docker.io/ibmcom/hello (pinned to f0dc03)
269+
Image: icr.io/codeengine/hello (pinned to f0dc03)
270270
Running Instances: 1
271271
272272
Runtime:
@@ -397,7 +397,7 @@ In this scenario, update the application that you created in [Deploying an appli
397397
Environment Variables:
398398
Type Name Value
399399
Literal TARGET Stranger
400-
Image: docker.io/ibmcom/hello
400+
Image: icr.io/codeengine/hello
401401
Resource Allocation:
402402
CPU: 1
403403
Ephemeral Storage: 500Mi
@@ -407,7 +407,7 @@ In this scenario, update the application that you created in [Deploying an appli
407407
myapp-hc3u8-2:
408408
Age: 82s
409409
Traffic: 100%
410-
Image: docker.io/ibmcom/hello (pinned to f0dc03)
410+
Image: icr.io/codeengine/hello (pinned to f0dc03)
411411
Running Instances: 1
412412
413413
Runtime:

0 commit comments

Comments
 (0)