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-update.md
+2-2
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-01-13"
5
+
lastupdated: "2022-01-27"
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
@@ -527,7 +527,7 @@ From the previous example, the `myhelloapp` app references the `us.icr.io/myname
527
527
528
528
1. Create the build configuration. For example, the following **`build create`** command creates a build configuration that is called `helloworld-build`. This configuration builds from the public Git repo `https://github.com/IBM/CodeEngine`, uses the `dockerfile` strategy and `medium` build size, and stores the image to `us.icr.io/mynamespace/codeengine-helloworld` by using the image registry secret that is defined in `myregistry`.
529
529
530
-
```sh
530
+
```txt
531
531
ibmcloud ce build create --name helloworld-build --image us.icr.io/mynamespace/codeengine-helloworld --registry-secret myregistry --source https://github.com/IBM/CodeEngine --commit main --context-dir /hello --strategy dockerfile --size medium
Copy file name to clipboardExpand all lines: build.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
copyright:
4
4
years: 2022
5
-
lastupdated: "2022-01-20"
5
+
lastupdated: "2022-01-27"
6
6
7
7
keywords: builds for code engine, builds, building, source code, build run, application image builds for code engine, job image builds for code engine, container image builds with code engine
8
8
@@ -62,7 +62,7 @@ For example, the following **`build create`** command creates a build configurat
62
62
If you are using the `--strategy` option with the value of `dockerfile`, then ensure the `--dockerfile` option is correctly set to the name of the `dockerfile`. The default value for the `--strategy` option is `Dockerfile`.
63
63
{: important}
64
64
65
-
```sh
65
+
```txt
66
66
ibmcloud ce build create --name helloworld-build --image us.icr.io/mynamespace/codeengine-helloworld --registry-secret myregistry --source https://github.com/IBM/CodeEngine --commit main --context-dir /hello --strategy dockerfile --size medium
You can create a build configuration that pulls source from a local directory by using only the {{site.data.keyword.codeengineshort}} CLI. You must specify the details of your source repository, the build [strategy](/docs/codeengine?topic=codeengine-plan-build#build-strategy), and the [build size](/docs/codeengine?topic=codeengine-plan-build#build-size) that you decided to use, and the container image details to store the container image.
193
193
194
-
When you submit a build that pulls code from a local directory, your source code is packed into an archive file and uploaded to your {{site.data.keyword.registrylong_notm}} instance. You can choose to ignore certain file patterns from within your source code by using the `.ceignore` file, which behaves similarly to a `.gitignore` file. The source image is created in the same namespace as your build image.
194
+
When you submit a build that pulls code from a local directory, your source code is packed into an archive file and uploaded to your {{site.data.keyword.registrylong_notm}} instance. Note that you can only target {{site.data.keyword.registrylong_notm}} for your local builds. You can choose to ignore certain file patterns from within your source code by using the `.ceignore` file, which behaves similarly to a `.gitignore` file. The source image is created in the same namespace as your build image.
195
195
196
196
Creating a build configuration does not create an image, but creates the configuration to build an image. You must then run a build that references the build configuration to create an image. The build configuration is not validated or used to create an image until the build is run. The build configuration enables multiple subsequent builds of an image, such as when changes are applied to the source repository.
197
197
{: tip}
@@ -208,10 +208,10 @@ Before you begin
208
208
-[Create and work with a project](/docs/codeengine?topic=codeengine-manage-project).
209
209
-[Create a registry secret so you can save your image](/docs/codeengine?topic=codeengine-add-registry).
210
210
211
-
The following example command creates a build configuration that pulls source from a local directory, puts the image in the `mynamespace` namespace that is defined in `us.icr.io`, and uses the `myregistry` registry access secret that is known to {{site.data.keyword.codeengineshort}}.
211
+
The following example command creates a build configuration that pulls source from a local directory, puts the image in the `mynamespace` namespace that is defined in `us.icr.io`, and uses the `myregistry` registry access secret that is known to {{site.data.keyword.codeengineshort}}. When you specify `local` as the value for `-build-type`, you can only target {{site.data.keyword.registrylong_notm}} for the output of your local build.
212
212
213
213
```sh
214
-
ibmcloud ce build create -name build-local-dockerfile -build-type local -image us.icr.io/mynamespace/codeengine-build --registry-secret myregistry -dockerfile Dockerfile -strategy dockerfile -size medium
214
+
ibmcloud ce build create --name build-local-dockerfile --build-type local --image us.icr.io/mynamespace/codeengine-build --registry-secret myregistry --dockerfile Dockerfile --strategy dockerfile --size medium
215
215
```
216
216
{: pre}
217
217
@@ -320,8 +320,8 @@ The following scenario clones the [Samples for {{site.data.keyword.codeengineful
320
320
321
321
3. From the directory where your source code resides, submit the build run. The following example runs a build that is called `buildrun-local-dockerfile`and uses the `build-local-dockerfile` build configuration. The `--source` option specifies the path to the source on the local machine to the `helloworld` sample.
Copy file name to clipboardExpand all lines: cli-changelog.md
+2-1
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-01-20"
5
+
lastupdated: "2022-01-27"
6
6
7
7
keywords: cli change log for code engine, cli version for code engine, change log for cli in code engine, cli history for code engine, change log, cli version history
8
8
@@ -20,6 +20,7 @@ Find a summary of changes for each version of {{site.data.keyword.codeenginefull
20
20
21
21
| Version | Release date | Changes |
22
22
| ----- | ------- | -------------- |
23
+
| 1.25.2 | 27 January 2022| - Fixed various bugs. |
23
24
| 1.25.0 | 20 January 2022| - Added support for creating a build that pulls source from a local directory. Added the `--build-type` option to the **`build create`** command, with values of `git` or `local`. The default for this option is `git`. Added the `--source` option to the **`buildrun submit`** command which is valid when the `build-type` is `local`. \n - Fixed various bugs. |
24
25
| 1.24.0 | 13 January 2022| - Added the **`application restart`** and **`jobrun restart`** commands to restart running app and job run instances. \n - Added the **`buildrun cancel`** command to stop a running build run. \n - Added support for working with configuration maps and secrets with jobs and job runs as mounted files. For this support, added the `--mount-configmap` and `--mount-secret` options to the **`job create`**, **`job update`**, **`jobrun submit`** and **`jobrun resubmit`** commands. Added the `--mount-rm` option to the **`job update`** and **`jobrun resubmit`** commands to remove the contents of the configmap or secret from the file system for the job or job run. Updated the output for the **`job get`** and **`jobrun get`** commands to add a `Mounts` section to display information about mounted files. \n - Updated description of `kubecfg` option for the **`project select`** command to clarify that the `KUBECONFIG` environment variable can be used to override the Kubernetes configuration file. \n - Fixed various bugs. \n - Updated translations for the CLI. \n - Upgraded to Go 1.17.6.|
25
26
| 1.23.3 | 15 December 2021 | - Fixed various bugs. \n - Updated translations for the CLI. \n - Upgraded to Go 1.17.5. |
0 commit comments