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: appdeploy-cr.md
+4-9Lines changed: 4 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,10 @@ subcollection: codeengine
12
12
13
13
{{site.data.keyword.attribute-definition-list}}
14
14
15
-
# Deploying application workloads from images in {{site.data.keyword.registryshort}}
15
+
# Deploying application workloads from images in {{site.data.keyword.registrylong_notm}}
16
16
{: #deploy-app-crimage}
17
17
18
-
Deploy your app with {{site.data.keyword.codeengineshort}} that uses an image in {{site.data.keyword.registryshort}}. You can create an app from the console or with the CLI.
18
+
Deploy your app with {{site.data.keyword.codeengineshort}} that uses an image in {{site.data.keyword.registrylong}}. You can create an app from the console or with the CLI.
19
19
{: shortdesc}
20
20
21
21
Before you begin
@@ -51,16 +51,13 @@ Now that you have deployed your application, you can view information about appl
51
51
52
52
If you want to add registry access to a {{site.data.keyword.registryshort}} instance that is not in your account, see [Adding access to a {{site.data.keyword.registryshort}}](/docs/codeengine?topic=codeengine-add-registry).
53
53
54
-
Looking for more code examples? Check out the [Samples for {{site.data.keyword.codeenginefull_notm}} GitHub repo](https://github.com/IBM/CodeEngine){: external}.
55
-
{: tip}
56
-
57
54
## Deploying an app with an image in {{site.data.keyword.registryshort}} with the CLI
58
55
{: #deploy-app-crimage-cli}
59
56
60
-
Deploy an application that uses an image in a container registry with the CLI with the **`ibmcloud ce app create`** command.
57
+
Deploy an application that uses an image in in {{site.data.keyword.registrylong}} with the CLI with the **`ibmcloud ce app create`** command.
61
58
{: shortdesc}
62
59
63
-
Before you can work with a {{site.data.keyword.codeengineshort}} application that references an image in {{site.data.keyword.registryshort}}, you must first add access to the registry, pull the image, and then deploy it.
60
+
Before you can work with a {{site.data.keyword.codeengineshort}} application that references an image in {{site.data.keyword.registryshort}}, you must first add access to the registry so {{site.data.keyword.codeengineshort}} can pull the image when the app is deployed.
64
61
65
62
1. To add access to {{site.data.keyword.registryshort_notm}}, [create an IAM API key](/docs/codeengine?topic=codeengine-add-registry#images-your-account-api-key). To create an {{site.data.keyword.cloud_notm}} IAM API key with the CLI, run the [**`iam api-key-create`**](/docs/account?topic=cli-ibmcloud_commands_iam#ibmcloud_iam_api_key_create) command. For example, to create an API key called `cliapikey` with a description of "My CLI APIkey" and save it to a file called `key_file`, run the following command:
66
63
@@ -104,8 +101,6 @@ Before you can work with a {{site.data.keyword.codeengineshort}} application tha
104
101
```
105
102
{: pre}
106
103
107
-
Looking for more code examples? Check out the [Samples for {{site.data.keyword.codeenginefull_notm}} GitHub repo](https://github.com/IBM/CodeEngine){: external}.
Copy file name to clipboardExpand all lines: appdeploy-private.md
+2-7Lines changed: 2 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ 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}.
24
24
25
-
## Deploying an app that references an image in private registry with the console
25
+
## Deploying an app that references an image in a private registry with the console
26
26
{: #deploy-app-private-console}
27
27
28
28
Deploy an application that uses an image in a private registry with the {{site.data.keyword.codeengineshort}} console.
@@ -56,9 +56,6 @@ Now that you have deployed your application, you can view information about appl
56
56
57
57
If you want to add registry access before you create an app, see [Adding access to a private container registry](/docs/codeengine?topic=codeengine-add-registry).
58
58
59
-
Looking for more code examples? Check out the [Samples for {{site.data.keyword.codeenginefull_notm}} GitHub repo](https://github.com/IBM/CodeEngine){: external}.
60
-
{: tip}
61
-
62
59
## Deploying an app with an image from a private registry with CLI
63
60
{: #deploy-app-private-cli}
64
61
@@ -76,7 +73,7 @@ Before you can work with a {{site.data.keyword.codeengineshort}} application tha
@@ -101,8 +98,6 @@ Before you can work with a {{site.data.keyword.codeengineshort}} application tha
101
98
```
102
99
{: pre}
103
100
104
-
Looking for more code examples? Check out the [Samples for {{site.data.keyword.codeenginefull_notm}} GitHub repo](https://github.com/IBM/CodeEngine){: external}.
Copy file name to clipboardExpand all lines: appdeploy-source.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ You can deploy your application directly from source code with the console.
29
29
30
30
Before you begin, [plan for your build](/docs/codeengine?topic=codeengine-plan-build). You can also find [tips for creating a Dockerfile](/docs/codeengine?topic=codeengine-dockerfile).
31
31
32
-
{{site.data.keyword.codeengineshort}} can automatically push (upload) images to {{site.data.keyword.registryshort}} namespaces in your account and even create a namespace for you. To upload images to a different {{site.data.keyword.registryshort}} account or to a private Docker Hub account, see [Adding access to a private container registry](/docs/codeengine?topic=codeengine-add-registry).
32
+
{{site.data.keyword.codeengineshort}} can automatically push (upload) images to {{site.data.keyword.registrylong}} namespaces in your account and even create a namespace for you. To upload images to a different {{site.data.keyword.registryshort}} account or to a private Docker Hub account, see [Accessing container registries](/docs/codeengine?topic=codeengine-add-registry).
33
33
34
34
1. Open the [{{site.data.keyword.codeengineshort}}](https://cloud.ibm.com/codeengine/overview){: external} console.
35
35
2. Select **Start creating** from **Start from source code**.
@@ -41,8 +41,8 @@ Before you begin, [plan for your build](/docs/codeengine?topic=codeengine-plan-b
41
41
8. Select a source repository, for example, `https://github.com/IBM/CodeEngine`. Because we are using sample source that does not require credentials, select `None` for the Code repo access. You can optionally provide a branch name. If you do not provide a branch name and you leave the field empty, {{site.data.keyword.codeengineshort}} automatically uses the default branch of the specified repository. Click **Next**.
42
42
9. Select a strategy for your build and resources for your build. For more information about build options, see [Planning your build](/docs/codeengine?topic=codeengine-plan-build). Click **Next**.
43
43
10. Select a container registry location, such as `IBM Registry, Dallas` to specify where to store the image of your build output. If your registry is private, you must [set up access](/docs/codeengine?topic=codeengine-add-registry) to it.
44
-
11. Select an existing **Registry access secret** or create a new one. If you are building your image to a {{site.data.keyword.registryshort}} instance that is in your account, you can select `{{site.data.keyword.codeengineshort}} managed secret` and let {{site.data.keyword.codeengineshort}} create and manage the secret for you.
45
-
12. Select a namespace, name, and a tag for your image. If you are building your image to a {{site.data.keyword.registryshort}} instance that is in your account, you can select an existing namespace or let {{site.data.keyword.codeengineshort}} create and manage the namespace for you.
44
+
11.Provide registry information about where to store the image of your build output. Select an existing **Registry access secret** or create a new one. If you are building your image to a {{site.data.keyword.registryshort}} instance that is in your account, you can select `{{site.data.keyword.codeengineshort}} managed secret` and let {{site.data.keyword.codeengineshort}} create and manage the secret for you.
45
+
12. Select a namespace, name, and a tag for your image. If you are building your image to a {{site.data.keyword.registrylong_notm}} instance that is in your account, you can select an existing namespace or let {{site.data.keyword.codeengineshort}} create and manage the namespace for you.
46
46
13. Click **Done**.
47
47
14. Modify any runtime settings or environment variables for your app. 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).
Copy file name to clipboardExpand all lines: appdeploy-update.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
copyright:
4
4
years: 2020, 2022
5
-
lastupdated: "2022-04-14"
5
+
lastupdated: "2022-04-19"
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
@@ -175,7 +175,7 @@ The sample `icr.io/codeengine/hello` image reads the environment variable `TARGE
175
175
```
176
176
{: pre}
177
177
178
-
**Example output**
178
+
Example output
179
179
180
180
```txt
181
181
Hello Stranger
@@ -193,7 +193,7 @@ The sample `icr.io/codeengine/hello` image reads the environment variable `TARGE
193
193
```
194
194
{: pre}
195
195
196
-
**Example output**
196
+
Example output
197
197
198
198
```txt
199
199
Listing all application revisions...
@@ -226,7 +226,7 @@ In this scenario, update the application that you created in [Deploying an appli
226
226
```
227
227
{: pre}
228
228
229
-
**Example output**
229
+
Example output
230
230
231
231
```txt
232
232
Updating application 'myapp' to latest revision.
@@ -245,7 +245,7 @@ In this scenario, update the application that you created in [Deploying an appli
245
245
```
246
246
{: pre}
247
247
248
-
**Example output**
248
+
Example output
249
249
250
250
```txt
251
251
[...]
@@ -367,7 +367,7 @@ In this scenario, update the application that you created in [Deploying an appli
367
367
```
368
368
{: pre}
369
369
370
-
**Example output**
370
+
Example output
371
371
372
372
```txt
373
373
Updating application 'myapp' to latest revision.
@@ -386,7 +386,7 @@ In this scenario, update the application that you created in [Deploying an appli
386
386
```
387
387
{: pre}
388
388
389
-
**Example output**
389
+
Example output
390
390
391
391
```txt
392
392
[...]
@@ -543,7 +543,7 @@ From the previous example, the `myhelloapp` app references the `us.icr.io/myname
543
543
544
544
The following output displays the details of the build run by using the [**`ibmcloud ce buildrun get`**](/docs/codeengine?topic=codeengine-cli#cli-buildrun-get) command.
545
545
546
-
**Example output**
546
+
Example output
547
547
548
548
```txt
549
549
Getting build run 'helloworld-build-run'...
@@ -582,7 +582,7 @@ From the previous example, the `myhelloapp` app references the `us.icr.io/myname
Copy file name to clipboardExpand all lines: batch-tutorial.md
+21-3Lines changed: 21 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
copyright:
4
4
years: 2020, 2022
5
-
lastupdated: "2022-04-05"
5
+
lastupdated: "2022-04-19"
6
6
7
7
keywords: job tutorial, jobs, images for code engine jobs, tutorial for code engine, job log
8
8
@@ -108,9 +108,27 @@ When the job is in ready state, you can update the job. Let's update the job tha
108
108
## Next steps for jobs
109
109
{: #nextsteps-deployjobtut}
110
110
111
-
After you create your job, you can submit it to [run the job](/docs/codeengine?topic=codeengine-run-job). For more information about jobs, see [Working with jobs](/docs/codeengine?topic=codeengine-job-plan).
111
+
After you create your job, you must submit the job to run it. See [Run a job](/docs/codeengine?topic=codeengine-run-job).
112
112
113
-
Now that you have created your job, you can use event subscriptions to make your jobs event-driven, so that your jobs are triggered by [periodic schedules](/docs/codeengine?topic=codeengine-subscribe-cron#eventing-cron-job) or react to events like [file uploads](/docs/codeengine?topic=codeengine-eventing-cosevent-producer#obstorage_ev_job).
113
+
After you [run your job](/docs/codeengine?topic=codeengine-run-job), to view details of your job and job runs, see [access job details](/docs/codeengine?topic=codeengine-access-job-details).
114
+
115
+
You can update your job in any of the following ways:
116
+
117
+
* By accessing and referencing your existing built container image in a [public registry](/docs/codeengine?topic=codeengine-create-job) or [private registry](/docs/codeengine?topic=codeengine-create-job-private). For more information, see [Accessing container registries](/docs/codeengine?topic=codeengine-add-registry).
118
+
119
+
* By using the [build container images](/docs/codeengine?topic=codeengine-build-image) feature available in {{site.data.keyword.codeengineshort}} to build your image and then access the referenced image from your job run.
120
+
121
+
* You can choose to let {{site.data.keyword.codeengineshort}} handle the build of your [local source](/docs/codeengine?topic=codeengine-run-job-local-source-code) or [Git repository source](/docs/codeengine?topic=codeengine-run-job-source-code) for you. The job run can then access the referenced image.
122
+
123
+
For example, you might choose to let {{site.data.keyword.codeengineshort}} handle the build of your local source while you evolve the development of your source for the job. Then, after the image is "matured", you can update the job to reference the specific image that you want. You can repeat this process as needed.
124
+
125
+
Each time your job runs, the most current version of your referenced container image is downloaded and run.
126
+
127
+
For more information about updating jobs, see [Updating a job](/docs/codeengine?topic=codeengine-update-job).
128
+
129
+
130
+
131
+
Now that you have created your job, consider making your jobs event-driven. By using event subscriptions, you can trigger your jobs by [periodic schedules](/docs/codeengine?topic=codeengine-subscribe-cron#eventing-cron-job) or set your job to react to events like [file uploads](/docs/codeengine?topic=codeengine-eventing-cosevent-producer#obstorage_ev_job).
114
132
115
133
116
134
Looking for more code examples? Check out the [Samples for {{site.data.keyword.codeenginefull_notm}} GitHub repo](https://github.com/IBM/CodeEngine){: external}.
0 commit comments