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
The cics-deploy profile identifies the CICS environment for deployment. You need to know the following from your CICS system administrator:
75
+
The cics-deploy profile identifies the CICS environment for deployment. An example of how to create an environment using using z/OS Provisioning Toolkit as described in [Provisioning a CICS region using z/OS PT](cdp-Provisioning-a-CICS-region-using-zospt). You need to know the following from your CICS system administrator:
Copy file name to clipboardExpand all lines: docs/pages/cdp/cdp-Provisioning-a-CICS-region-using-zospt.md
+45-20Lines changed: 45 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,21 +9,23 @@ folder: cdp
9
9
toc: true
10
10
---
11
11
12
-
The [z/OS Provisioning Toolkit](https://developer.ibm.com/mainframe/products/zospt/) (z/OS PT) provides a command line utility and z/OSMF workflows to provision CICS regions and other development environments on z/OS. This tutorial requires z/OS PT version 1.1.5 or above to be installed.
12
+
The [z/OS Provisioning Toolkit](https://developer.ibm.com/mainframe/products/zospt/) (z/OS PT) provides a command line utility and z/OSMF workflows to provision CICS regions and other development environments on z/OS. This tutorial requires z/OS PT version 1.1.5 or above to be installed on z/OS.
13
13
14
14
### Prepare a z/OS PT image
15
15
16
-
A z/OS PT image contains the configuration and files necessary to provision a CICS region. This is typically prepared by the CICS system administrator. The CICS image should include the following properties. Other properties are available to customise the CICS region to your requirements - see [Configuration properties for CICS images](https://www.ibm.com/support/knowledgecenter/en/SSXH44E_1.0.0/zospt/cics/zospt-cics-properties.html).
16
+
A z/OS PT image contains the configuration and files necessary to provision a CICS region. This is typically prepared by the CICS system administrator. The main configuration is in the file `zosptfile` in the form of properties that are described in [Configuration properties for CICS images](https://www.ibm.com/support/knowledgecenter/en/SSXH44E_1.0.0/zospt/cics/zospt-cics-properties.html).
17
+
18
+
For example, to support Node.js applications `zosptfile` should include:
|`FROM cics_55`| Provision a CICS TS V5.5 region. Required to support Node.js applications. |
21
-
|`ENV DFH_CICS_TYPE=MAS`|The CICS region should be managed by CPSM. |
22
-
|`ENV DFH_CICSPLEX=`|The name of the CICSplex. |
23
-
|`ENV DFH_NODE_HOME=`|The installation directory for IBM SDK for Node.js - z/OS. Required to support Node.js applications. |
24
-
|`COPY bundles bundles`| Create an empty bundles directory in the provisioned file system to contain CICS bundles. |
22
+
|`FROM cics_55`| Provision a CICS TS V5.5 region that is the minimum release that supports Node.js applications. |
23
+
|`ENV DFH_CICS_TYPE=MAS`| CICS region should be managed by CPSM to enable the DFHDPLOY utility to deploy applications. |
24
+
|`ENV DFH_CICSPLEX=`|Name of the CICSplex this region is to join. |
25
+
|`ENV DFH_NODE_HOME=`|Installation directory for Node.js runtime provided by IBM SDK for Node.js - z/OS. |
26
+
|`COPY bundles bundles`| Create an empty `bundles` directory in the provisioned file system to contain CICS bundles. |
25
27
26
-
For example, to create the z/OS PT image source directory and configuration file, and build it ready for developers to provision CICS regions:
28
+
To create a z/OS PT image source directory, a `zosptfile` file, and build it ready for developers to provision CICS regions, run the following commands on z/OS:
### Provision your CICS region and deploy a Node.js application
48
+
### Provision your CICS region using a z/OS image
47
49
48
50
1. Update your user `.profile` file on z/OS to run z/OS PT.
49
51
50
-
Add the directory to the `zospt` command to your PATH, and add the following environment variables as described in [Configuring z/OS Provisioning Toolkit](https://www.ibm.com/support/knowledgecenter/en/SSXH44E_1.0.0/zospt/zospt-configuring.html):
52
+
Add the directory to the `zospt` command to your PATH.
53
+
```properties
54
+
export PATH=$PATH:zospt_directory/bin
55
+
```
56
+
57
+
Optional: To avoid the password prompt for each zospt command, specify your password as the environment variable. Ensure others do not have access to read your .profile:
58
+
59
+
```properties
60
+
export zospt_pw=
61
+
```
62
+
63
+
Optional: If z/OSMF is configured with domain and tenant names that are not the default as described in [Configuring z/OS Provisioning Toolkit](https://www.ibm.com/support/knowledgecenter/en/SSXH44E_1.0.0/zospt/zospt-configuring.html), add the following environment variables:
| /dfhconfig/nodejsprofiles/general.profile | General profile containing values for WORK_DIR and NODE_HOME. Node.js application should include this by adding `%INCLUDE=&USSCONFIG;/nodejsprofiles/general.profile` to their CICS Node.js application profile |
98
+
| /workdir | Trace, log and configuration files create by applications, Node.js runtimes, Java runtimes, and CICS runtimes |
99
+
79
100
80
-
Update `--scope` to be the value from DFH_REGION_APPLID, and `--bundle-directory` to be a bundles subdirectory of DFH_REGION_ZFS_DIRECTORY. For example:
101
+
4. Update your Zowe CLI cics-deploy profile options to deploy to your CICS region by default.
102
+
103
+
Update `--scope` to be the value from DFH_REGION_APPLID, and `--bundle-directory` to be the `bundles` subdirectory of DFH_REGION_ZFS_DIRECTORY. For example:
You are now ready to deploy applications to the provisioned CICS region. You can try this out by following the steps in [Deploying your first Node.js app](cdp-Deploying-your-first-nodejs-app).
109
+
### Deploying an application to your CICS region
110
+
111
+
You are now ready to deploy applications to the provisioned CICS region. You can try this out by following the steps in [Deploying your first Node.js app](cdp-Deploying-your-first-nodejs-app). During deployment, the CICS bundle will be copied into the `/bundles` directory, and output files will be written into a sub-directory of `/workdir`.
87
112
88
113
### Stop your CICS region
89
114
90
-
The CICS region and the applications running in it can be stopped if you are not going to be using them for a while by using command:
115
+
The CICS region and the applications running in it can be stopped if you are not going to be using them for a while by using the following command:
The CICS region can be stopped and removed using the following commands. This will remove the z/OS directory used to upload your CICS bundles:
131
+
The CICS region can be stopped and removed completely using the following commands. This will remove the z/OS directory used to upload your CICS applications:
0 commit comments