You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app-tutorial.md
+16-18Lines changed: 16 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
2
3
3
copyright:
4
-
years: 2020, 2021
5
-
lastupdated: "2021-12-21"
4
+
years: 2020, 2022
5
+
lastupdated: "2022-01-12"
6
6
7
7
keywords: app tutorial for code engine, application, apps, images, tutorial for code engine, deploying
8
8
@@ -37,20 +37,18 @@ Tutorials might incur costs. Use the Cost Estimator to generate a cost estimate
37
37
{: #deploy-app-image-file}
38
38
{: step}
39
39
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}.
41
41
42
42
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.
43
43
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
-
46
44
## Creating and deploying an application
47
45
{: #app-creating-deploying}
48
46
{: step}
49
47
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.
51
49
52
50
```sh
53
-
ibmcloud ce application create --name myapp --image ibmcom/hello
51
+
ibmcloud ce application create --name myapp --image icr.io/codeengine/hello
54
52
```
55
53
{: pre}
56
54
@@ -90,7 +88,7 @@ You can review the code that is used for this example at [`ibmcom/hello`](https:
Copy file name to clipboardExpand all lines: appdeploy-plan.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
2
3
3
copyright:
4
-
years: 2020, 2021
5
-
lastupdated: "2021-12-20"
4
+
years: 2020, 2022
5
+
lastupdated: "2022-01-12"
6
6
7
7
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
8
8
@@ -113,7 +113,7 @@ You can define commands and arguments for your application to use at run time.
113
113
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.
Copy file name to clipboardExpand all lines: appdeploy-private.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
2
3
3
copyright:
4
-
years: 2020, 2021
5
-
lastupdated: "2021-11-15"
4
+
years: 2020, 2022
5
+
lastupdated: "2022-01-05"
6
6
7
7
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
8
8
@@ -18,7 +18,7 @@ subcollection: codeengine
18
18
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.
19
19
{: shortdesc}
20
20
21
-
**Before you begin**
21
+
Before you begin
22
22
23
23
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}.
Copy file name to clipboardExpand all lines: appdeploy-public.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
2
3
3
copyright:
4
-
years: 2020, 2021
5
-
lastupdated: "2021-12-15"
4
+
years: 2020, 2022
5
+
lastupdated: "2022-01-12"
6
6
7
7
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
8
8
@@ -27,14 +27,14 @@ Looking for more code examples? Check out the [Samples for {{site.data.keyword.c
27
27
Deploy an application with an image from public Docker Hub with the {{site.data.keyword.codeengineshort}} console.
28
28
{: shortdesc}
29
29
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).
31
31
32
32
1. Open the [{{site.data.keyword.codeengineshort}}](https://cloud.ibm.com/codeengine/overview){: external} console.
33
33
2. Select **Start creating** from **Run a container image**.
34
34
3. Select **Application**.
35
35
4. Enter a name for the application. Use a name for your application that is unique within the project.
36
36
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`.
38
38
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).
39
39
8. Click **Create**.
40
40
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
49
49
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.
50
50
{: shortdesc}
51
51
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`.
53
53
54
54
```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
Copy file name to clipboardExpand all lines: appdeploy-update.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
2
3
3
copyright:
4
-
years: 2020, 2021
5
-
lastupdated: "2021-12-15"
4
+
years: 2020, 2022
5
+
lastupdated: "2022-01-12"
6
6
7
7
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
8
8
@@ -86,7 +86,7 @@ To update your app with the CLI, use the **`app update`** command. This command
86
86
87
87
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.
88
88
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}.
90
90
91
91
1. Run the **`application update`** command. For example,
92
92
@@ -127,7 +127,7 @@ The sample `docker.io/ibmcom/hello` image reads the environment variable `TARGET
127
127
Environment Variables:
128
128
Type Name Value
129
129
Literal TARGET Stranger
130
-
Image: docker.io/ibmcom/hello
130
+
Image: icr.io/codeengine/hello
131
131
Resource Allocation:
132
132
CPU: 1
133
133
Ephemeral Storage: 500Mi
@@ -137,7 +137,7 @@ The sample `docker.io/ibmcom/hello` image reads the environment variable `TARGET
137
137
myapp-hc3u8-2:
138
138
Age: 82s
139
139
Traffic: 100%
140
-
Image: docker.io/ibmcom/hello (pinned to f0dc03)
140
+
Image: icr.io/codeengine/hello (pinned to f0dc03)
141
141
Running Instances: 1
142
142
143
143
Runtime:
@@ -182,7 +182,7 @@ The sample `docker.io/ibmcom/hello` image reads the environment variable `TARGET
182
182
183
183
From the output of this command, you can see the updated app now returns `Hello Stranger`.
184
184
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 forthe number of app revisionsin 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 forthe number of app revisionsin a project](/docs/codeengine?topic=codeengine-limits#project_quotas).
186
186
187
187
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.
188
188
@@ -256,7 +256,7 @@ In this scenario, update the application that you created in [Deploying an appli
256
256
Environment Variables:
257
257
Type Name Value
258
258
Literal TARGET Stranger
259
-
Image: docker.io/ibmcom/hello
259
+
Image: icr.io/codeengine/hello
260
260
Resource Allocation:
261
261
CPU: 1
262
262
Ephemeral Storage: 500Mi
@@ -266,7 +266,7 @@ In this scenario, update the application that you created in [Deploying an appli
266
266
myapp-hc3u8-2:
267
267
Age: 82s
268
268
Traffic: 100%
269
-
Image: docker.io/ibmcom/hello (pinned to f0dc03)
269
+
Image: icr.io/codeengine/hello (pinned to f0dc03)
270
270
Running Instances: 1
271
271
272
272
Runtime:
@@ -397,7 +397,7 @@ In this scenario, update the application that you created in [Deploying an appli
397
397
Environment Variables:
398
398
Type Name Value
399
399
Literal TARGET Stranger
400
-
Image: docker.io/ibmcom/hello
400
+
Image: icr.io/codeengine/hello
401
401
Resource Allocation:
402
402
CPU: 1
403
403
Ephemeral Storage: 500Mi
@@ -407,7 +407,7 @@ In this scenario, update the application that you created in [Deploying an appli
0 commit comments