Skip to content

Commit 37ebd9a

Browse files
author
cfsdocs
committed
Frances Overby: Merge pull request #3416 from coligo/fmo-upd-20Feb24-b-envvars
1 parent 33bf6a7 commit 37ebd9a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

envvar-autoinject.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
copyright:
44
years: 2020, 2024
5-
lastupdated: "2024-02-16"
5+
lastupdated: "2024-02-20"
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

@@ -23,7 +23,7 @@ When you deploy an application or run a job, {{site.data.keyword.codeengineshort
2323

2424
When you deploy an application, {{site.data.keyword.codeengineshort}} automatically injects certain environment variables into the app. The following table lists automatically injected environment variables into each instance of your deployed app. The following examples of automatically injected environment variables are based on an app that is named `myapp`, which references the {{site.data.keyword.codeengineshort}} sample image, `icr.io/codeengine/codeengine`.
2525

26-
The first 3 environment variables, `CE_APP`, `CE_DOMAIN`, and `CE_SUBDOMAIN` are used to construct the URL of an application, `https://CE_APP.CE_SUBDOMAIN.CE_DOMAIN`. For example, if `CE_APP=myapp`, `CE_SUBDOMAIN=01234567-abcd` and `CE_DOMAIN=us-south.codeengine.dev.appdomain.cloud`, your application external URL is `https://myapp.01234567-abcd.us-south.codeengine.dev.appdomain.cloud`. The private URL of your application is `appName.CE_SUBDOMAIN`, or `myapp.01234567-abcd`.
26+
The environment variables, `CE_APP`, `CE_DOMAIN`, and `CE_SUBDOMAIN` are used to construct the URL of an application, `https://CE_APP.CE_SUBDOMAIN.CE_DOMAIN`. For example, if `CE_APP=myapp`, `CE_SUBDOMAIN=01234567-abcd` and `CE_DOMAIN=us-south.codeengine.dev.appdomain.cloud`, your application external URL is `https://myapp.01234567-abcd.us-south.codeengine.dev.appdomain.cloud`. The private URL of your application is `appName.CE_SUBDOMAIN`, or `myapp.01234567-abcd`.
2727

2828
| Environment variable | Description | Example |
2929
|--------------------|-------------------------------------------------------|--------------|
@@ -45,7 +45,9 @@ Note that you can override the `PORT` variable by deploying your app from the co
4545
## Automatically injected environment variables for jobs
4646
{: #inside-env-vars-jobs}
4747

48-
When you run a job, {{site.data.keyword.codeengineshort}} automatically injects certain environment variables into the job run instance. The following table lists automatically injected environment variables into each instance of your running job. The following examples of automatically injected environment variables are based on a job that is named `myjob`, which references the {{site.data.keyword.codeengineshort}} sample image, `icr.io/codeengine/codeengine`.
48+
When you run a job, {{site.data.keyword.codeengineshort}} automatically injects certain environment variables into the job run instance.
49+
50+
The following table lists automatically injected environment variables into each instance of your running job. The following examples of automatically injected environment variables are based on a job that is named `myjob`, which references the {{site.data.keyword.codeengineshort}} sample image, `icr.io/codeengine/codeengine`.
4951

5052
| Environment variable | Description | Example |
5153
|----------------|---------------------|---------|

0 commit comments

Comments
 (0)