-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from zowe/zip-435
Zip 435
- Loading branch information
Showing
5 changed files
with
86 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
jobs-zowe-server-package/src/main/resources/scripts/jobs-api-configure.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/sh | ||
|
||
################################################################################ | ||
# This program and the accompanying materials are made available under the terms of the | ||
# Eclipse Public License v2.0 which accompanies this distribution, and is available at | ||
# https://www.eclipse.org/legal/epl-v20.html | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
# Copyright IBM Corporation 2019 | ||
################################################################################ | ||
|
||
# Add static definition for jobs-api | ||
cat <<EOF >${STATIC_DEF_CONFIG_DIR}/jobs-api.ebcidic.yml | ||
# | ||
services: | ||
- serviceId: jobs | ||
title: IBM z/OS Jobs | ||
description: IBM z/OS Jobs REST API service | ||
catalogUiTileId: jobs | ||
instanceBaseUrls: | ||
- https://${ZOWE_EXPLORER_HOST}:${JOBS_API_PORT}/ | ||
homePageRelativeUrl: | ||
routedServices: | ||
- gatewayUrl: api/v1 | ||
serviceRelativeUrl: api/v1/jobs | ||
apiInfo: | ||
- apiId: com.ibm.jobs | ||
gatewayUrl: api/v1 | ||
version: 1.0.0 | ||
documentationUrl: https://${ZOWE_EXPLORER_HOST}:${JOBS_API_PORT}/swagger-ui.html | ||
catalogUiTiles: | ||
jobs: | ||
title: z/OS Jobs services | ||
description: IBM z/OS Jobs REST services | ||
EOF | ||
iconv -f IBM-1047 -t IBM-850 ${STATIC_DEF_CONFIG_DIR}/jobs-api.ebcidic.yml > $STATIC_DEF_CONFIG_DIR/jobs-api.yml | ||
rm ${STATIC_DEF_CONFIG_DIR}/jobs-api.ebcidic.yml | ||
chmod 770 $STATIC_DEF_CONFIG_DIR/jobs-api.yml | ||
|
||
#Make sure Java is available on the path - TODO needed at all, move to a all zowe setup/validate? | ||
export JAVA_HOME=$ZOWE_JAVA_HOME | ||
if [[ ":$PATH:" == *":$JAVA_HOME/bin:"* ]]; then | ||
echo "ZOWE_JAVA_HOME already exists on the PATH" | ||
else | ||
echo "Appending ZOWE_JAVA_HOME/bin to the PATH..." | ||
export PATH=$PATH:$JAVA_HOME/bin | ||
echo "Done." | ||
fi |
31 changes: 0 additions & 31 deletions
31
jobs-zowe-server-package/src/main/resources/scripts/jobs-api-server-start.sh
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
jobs-zowe-server-package/src/main/resources/scripts/jobs-api-start.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh | ||
|
||
################################################################################ | ||
# This program and the accompanying materials are made available under the terms of the | ||
# Eclipse Public License v2.0 which accompanies this distribution, and is available at | ||
# https://www.eclipse.org/legal/epl-v20.html | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
# Copyright IBM Corporation 2018, 2019 | ||
################################################################################ | ||
|
||
# Variables required on shell: | ||
# - ZOWE_PREFIX | ||
# - JOBS_API_PORT - The port the data sets server will use | ||
# - KEY_ALIAS | ||
# - KEYSTORE - The keystore to use for SSL certificates | ||
# - KEYSTORE_PASSWORD - The password to access the keystore supplied by KEYSTORE | ||
# - KEY_ALIAS - The alias of the key within the keystore | ||
# - ZOSMF_PORT - The SSL port z/OSMF is listening on. | ||
# - ZOSMF_IP_ADDRESS - The IP Address z/OSMF can be reached | ||
|
||
COMPONENT_CODE=EJ | ||
_BPX_JOBNAME=${ZOWE_PREFIX}${COMPONENT_CODE} java -Xms16m -Xmx512m -Dibm.serversocket.recover=true -Dfile.encoding=UTF-8 \ | ||
-Djava.io.tmpdir=/tmp -Xquickstart \ | ||
-Dserver.port=${JOBS_API_PORT} \ | ||
-Dserver.ssl.keyAlias=${KEY_ALIAS} \ | ||
-Dserver.ssl.keyStore=${KEYSTORE} \ | ||
-Dserver.ssl.keyStorePassword=${KEYSTORE_PASSWORD} \ | ||
-Dserver.ssl.keyStoreType=PKCS12 \ | ||
-Dzosmf.httpsPort=${ZOSMF_PORT} \ | ||
-Dzosmf.ipAddress=${ZOSMF_IP_ADDRESS} \ | ||
-jar {{jar_path}} & |