Skip to content

Commit 5eb475e

Browse files
committed
Frances Overby: Merge pull request #1512 from coligo/fmo-upd-30Sept21-b
1 parent b390c2c commit 5eb475e

7 files changed

+34
-57
lines changed

Diff for: appdeploy-access.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
copyright:
44
years: 2020, 2021
5-
lastupdated: "2021-09-28"
5+
lastupdated: "2021-09-30"
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

@@ -44,14 +44,14 @@ To view details of your app with the CLI, use the **`app get`** command. For a c
4444

4545
For example, the following **`app get`** command displays details about the `myapp` app.
4646

47-
```
47+
```sh
4848
ibmcloud ce app get --name myapp
4949
```
5050
{: pre}
5151

5252
**Example output**
5353

54-
```
54+
```sh
5555
[...]
5656
OK
5757

Diff for: appdeploy-cr.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
copyright:
44
years: 2020, 2021
5-
lastupdated: "2021-09-29"
5+
lastupdated: "2021-09-30"
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

@@ -64,7 +64,7 @@ Before you can work with a {{site.data.keyword.codeengineshort}} application tha
6464

6565
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:
6666

67-
```
67+
```sh
6868
ibmcloud iam api-key-create cliapikey -d "My CLI APIkey" --file key_file
6969
```
7070
{: pre}
@@ -74,22 +74,22 @@ Before you can work with a {{site.data.keyword.codeengineshort}} application tha
7474

7575
2. After you create your API key, add registry access to {{site.data.keyword.codeengineshort}}. To add access to {{site.data.keyword.registryshort}} with the CLI, use the [**`ibmcloud ce registry create`**](/docs/codeengine?topic=codeengine-cli#cli-registry-create) command to create an image registry access secret. For example, the following **`registry create`** command creates registry access to a {{site.data.keyword.registryshort}} instance called `myregistry`. Note, even though the `--server` and `--username` options are specified in the example command, the default value for the `--server` option is `us.icr.io` and the `--username` option defaults to `iamapikey` when the server is `us.icr.io`.
7676

77-
```
77+
```sh
7878
ibmcloud ce registry create --name myregistry --server us.icr.io --username iamapikey --password APIKEY
7979
```
8080
{: pre}
8181

8282
**Example output**
8383

84-
```
84+
```sh
8585
Creating image registry access secret 'myregistry'...
8686
OK
8787
```
8888
{: screen}
8989

9090
3. Create your app and reference the `hello_repo` image in {{site.data.keyword.registryshort}}. For example, use the [**`ibmcloud ce app create`**](/docs/codeengine?topic=codeengine-cli#cli-application-create) command to create the `myhelloapp` app to reference the `us.icr.io/mynamespace/hello_repo` by using the `myregistry` access information.
9191

92-
```
92+
```sh
9393
ibmcloud ce app create --name myhelloapp --image us.icr.io/mynamespace/hello_repo --registry-secret myregistry
9494
```
9595
{: pre}
@@ -99,7 +99,7 @@ Before you can work with a {{site.data.keyword.codeengineshort}} application tha
9999

100100
4. After your app deploys, you can access the app. To obtain the URL of your app, run `ibmcloud ce app get --name myhelloapp --output url`. When you curl the `myhelloapp` app, `Hello World` is returned.
101101

102-
```
102+
```sh
103103
curl https://myhelloapp.abcdabcdhye.us-south.codeengine.appdomain.cloud
104104
```
105105
{: pre}

Diff for: appdeploy-plan.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
copyright:
44
years: 2020, 2021
5-
lastupdated: "2021-09-29"
5+
lastupdated: "2021-09-30"
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

@@ -58,7 +58,7 @@ You can deploy your application with a private endpoint so that the app is not e
5858

5959
To create the previous application with a private endpoint, add the `--cluster-local` option to your [**`app create`**](/docs/codeengine?topic=codeengine-cli#cli-application-create) command.
6060

61-
```
61+
```sh
6262
ibmcloud ce app create --name myapp --image ibmcom/hello --cluster-local
6363
```
6464
{: pre}
@@ -72,7 +72,7 @@ You can define commands and arguments for your application to use at run time.
7272

7373
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.
7474

75-
```
75+
```sh
7676
ibmcloud ce app create --name myapp --image ibmcom/hello --cmd /myapp --arg --debug
7777
```
7878
{: pre}

Diff for: appdeploy-private.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
copyright:
44
years: 2020, 2021
5-
lastupdated: "2021-09-29"
5+
lastupdated: "2021-09-30"
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

@@ -37,8 +37,7 @@ Before you can work with a {{site.data.keyword.codeengineshort}} application tha
3737
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.
3838
6. Select **Container image** and click **Configure image**.
3939
7. Enter `docker.io` for **Registry server**.
40-
8. From **Registry access**, select **Add registry access**.
41-
8. From the Add Registry Access page, choose your registry source. For example, **DockerHub**.
40+
8. From **Registry access**, select **Add registry access**. From the Add Registry Access page, choose your registry source. For example, **DockerHub**.
4241
9. Enter a username. For Docker Hub, it is your Docker ID.
4342
10. Enter the password. For Docker Hub, you can use your Docker Hub password or an access token. For more information about access tokens and Docker Hub, see [Managing access tokens](https://docs.docker.com/docker-hub/access-tokens/){: external}.
4443
11. Click **Create** to add the registry access for {{site.data.keyword.codeengineshort}}.
@@ -71,22 +70,22 @@ Before you can work with a {{site.data.keyword.codeengineshort}} application tha
7170

7271
2. Add access to your private registry in order to pull images. To add access to a private registry with the CLI, use the [**`ibmcloud ce registry create`**](/docs/codeengine?topic=codeengine-cli#cli-registry-create) command to create an image registry access secret. For example, the following **`registry create`** command creates registry access to a Docker Hub registry called `privatedocker` that is at `'https://index.docker.io/v1/'` and uses your username and password.
7372

74-
```
73+
```sh
7574
ibmcloud ce registry create --name privatedocker --server 'https://index.docker.io/v1/' --username <Docker_User_Name> --password <Password>
7675
```
7776
{: pre}
7877

7978
**Example output**
8079

81-
```
80+
```sh
8281
Creating image registry access secret 'privatedocker'...
8382
OK
8483
```
8584
{: screen}
8685

8786
3. Create your app and reference the image in your private Docker Hub registry. For example, create the `myhelloapp` app to reference the `docker.io/privaterepo/helloworld` by using the `privatedocker` access information.
8887

89-
```
88+
```sh
9089
ibmcloud ce app create --name myhelloapp --image docker.io/privaterepo/helloworld --registry-secret privatedocker
9190
```
9291
{: pre}
@@ -96,7 +95,7 @@ Before you can work with a {{site.data.keyword.codeengineshort}} application tha
9695

9796
4. After your app deploys, you can access the app. To obtain the URL of your app, run `ibmcloud ce app get --name myhelloapp --output url`. When you curl the `myhelloapp` app, `Hello World` is returned.
9897

99-
```
98+
```sh
10099
curl https://myhelloapp.abcdabcdhye.us-south.codeengine.appdomain.cloud
101100
```
102101
{: pre}

Diff for: appdeploy-public.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
copyright:
44
years: 2020, 2021
5-
lastupdated: "2021-09-29"
5+
lastupdated: "2021-09-30"
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

@@ -35,9 +35,9 @@ This example references an image in public Docker Hub. You can also reference an
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.
3737
6. Specify a container image, for example, `docker.io/ibmcom/helloworld`.
38-
6. Modify any default values for environment variables or runtime settings. For more information about these options, see [Options for deploying an app](/docs/codeengine?topic=codeengine-application-workloads#optionsdeploy).
39-
7. Click **Create**.
40-
8. 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**.
38+
7. Modify any default values for environment variables or runtime settings. For more information about these options, see [Options for deploying an app](/docs/codeengine?topic=codeengine-application-workloads#optionsdeploy).
39+
8. Click **Create**.
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**.
4141

4242
Now that you have deployed your application, you can view information about application revisions and any running instances, and configuration details.
4343

@@ -51,14 +51,14 @@ To create and deploy your app with the CLI, use the **`app create`** command. Th
5151

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

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

5959
**Example output**
6060

61-
```
61+
```sh
6262
Creating application 'myapp'...
6363
OK
6464
[...]

Diff for: appdeploy-source.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
copyright:
44
years: 2020, 2021
5-
lastupdated: "2021-09-29"
5+
lastupdated: "2021-09-30"
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

@@ -25,8 +25,8 @@ Before you begin, [plan for your build](/docs/codeengine?topic=codeengine-plan-b
2525
1. Open the [{{site.data.keyword.codeengineshort}}](https://cloud.ibm.com/codeengine/overview){: external} console.
2626
2. Select **Start creating** from **Start from source code**.
2727
3. Select **Application**.
28-
5. Enter a name for the application. Use a name for your application that is unique within the project.
29-
4. 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). Note that you must have a selected project to deploy an app.
28+
4. Enter a name for the application. Use a name for your application that is unique within the project.
29+
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). Note that you must have a selected project to deploy an app.
3030
6. Select **Source code**.
3131
7. Click **Specify build details**.
3232
8. Select a source repository and Branch name, for example, `https://github.com/IBM/CodeEngine` and `Main`. Click **Next**.

0 commit comments

Comments
 (0)