Skip to content

Commit f5b31b8

Browse files
committed
Add step to add zosptfile to tutorial
Signed-off-by: Mark Cocker <[email protected]>
1 parent 04c98fb commit f5b31b8

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

docs/pages/cdp/cdp-Preparing-a-zOS-PT-image.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Run the following commands on your workstation.
3030

3131
3. Setup environment variables for the name of your image, and paths for the image source on the workstation and z/OS.
3232

33-
Update these value for to be suitable for your workstation and z/OS environments.
33+
Update these values to be suitable for your workstation and z/OS environments.
3434

3535
```text
3636
export IMAGE="cics_55_nodejs"
@@ -66,15 +66,26 @@ Run the following commands on your workstation.
6666
| `ENV DFH_NODE_HOME=` | Installation directory for Node.js runtime provided by IBM SDK for Node.js - z/OS. |
6767
| `COPY bundles bundles` | Create an empty `bundles` directory in the provisioned file system to contain CICS bundles. |
6868

69-
6. Upload the image source to z/OS.
69+
6. Create a .zosattributes file to upload zosptfile files as UTF-8.
70+
71+
This file is used by the `zowe zos-files upload dir-to-uss` command in the next step to exclude, convert, and tag files that are uploaded.
72+
73+
```properties
74+
cat <<EOF >> $IMAGE_DIR/.zosattributes
75+
# Upload zosptfile files as UTF-8
76+
*.profile UTF-8 IBM-1047
77+
EOF
78+
```
79+
80+
7. Upload the image source to z/OS.
7081

7182
```text
7283
zowe zos-uss issue ssh "rm -Rv *" --cwd "$IMAGE_DIR_ZOS"
7384
zowe zos-uss issue ssh "mkdir -p $IMAGE_DIR_ZOS"
7485
zowe zos-files upload dir-to-uss "$IMAGE_DIR" "$IMAGE_DIR_ZOS" --recursive
7586
```
7687

77-
7. Build the image source on z/OS.
88+
8. Build the image source on z/OS.
7889

7990
```text
8091
zowe zos-uss issue ssh "zospt build -t $IMAGE ." --cwd "$IMAGE_DIR_ZOS"
@@ -96,7 +107,7 @@ Run the following commands on your workstation.
96107

97108
2. Create Zowe CLI profiles for at least z/OSMF and SSH following the steps in [Creating Zowe CLI profiles](cdp-Creating-Zowe-CLI-profiles).
98109

99-
3. Prepare your environment and Node.js application by following steps 1 thru 4 in tutorial [Deploying your first Node.js app](cdp-Deploying-your-first-nodejs-app).
110+
3. Prepare your environment and Node.js application by following steps 1 to 4 in tutorial [Deploying your first Node.js app](cdp-Deploying-your-first-nodejs-app).
100111

101112
4. Setup environment variables for the name of your image, and paths for the image source on the workstation and z/OS.
102113

0 commit comments

Comments
 (0)