diff options
author | Bansal, Nitin (nb121v) <nitin.bansal@amdocs.com> | 2018-03-27 16:46:32 -0400 |
---|---|---|
committer | Bansal, Nitin (nb121v) <nitin.bansal@amdocs.com> | 2018-03-27 17:09:31 -0400 |
commit | 5da95c0df892b635db68550a3321e0e48c9e78f8 (patch) | |
tree | 7ede3891637e2d9032da2141b5952b36cc0cda33 /src/main/bin | |
parent | 047ade94d55a1b6d8c352168652140f3579198ac (diff) |
Moving data-router to Springboot for security
Change-Id: I7a02720c4e0a79619ed6b309ff1f65f4d755c364
Issue-ID: AAI-590
Signed-off-by: Bansal, Nitin (nb121v) <nitin.bansal@amdocs.com>
Diffstat (limited to 'src/main/bin')
-rw-r--r-- | src/main/bin/start.sh | 62 |
1 files changed, 5 insertions, 57 deletions
diff --git a/src/main/bin/start.sh b/src/main/bin/start.sh index 0e11779..fecadcc 100644 --- a/src/main/bin/start.sh +++ b/src/main/bin/start.sh @@ -9,65 +9,10 @@ if [ -z "$CONFIG_HOME" ]; then exit 1 fi -if [ -z "$KEY_STORE_PASSWORD" ]; then - echo "KEY_STORE_PASSWORD must be set in order to start up process" - exit 1 -else - echo "KEY_STORE_PASSWORD=$KEY_STORE_PASSWORD\n" >> $AJSC_CONF_HOME/etc/sysprops/sys-props.properties -fi - -if [ -z "$KEY_MANAGER_PASSWORD" ]; then - echo "KEY_MANAGER_PASSWORD must be set in order to start up process" - exit 1 -else - echo "KEY_MANAGER_PASSWORD=$KEY_MANAGER_PASSWORD\n" >> $AJSC_CONF_HOME/etc/sysprops/sys-props.properties -fi - -# Add any routes configured at deploy time to the data layer service -if [ -n "$DYNAMIC_ROUTES" ]; then - echo "Adding the following dynamic routes to the deployment: " - mkdir -p /tmp/data-router/v1/routes - for f in `ls $DYNAMIC_ROUTES` - do - cp $DYNAMIC_ROUTES/$f /tmp/data-router/v1/routes - echo "Adding dynamic route $DYNAMIC_ROUTES/$f" - done - jar uf /opt/app/data-router/services/data-router_v1.zip* -C /tmp/ data-router - rm -rf /tmp/data-router -fi - -# Add any spring bean configuration files to the data layer deployment -if [ -n "$SERVICE_BEANS" ]; then - echo "Adding the following dynamic service beans to the deployment: " - mkdir -p /tmp/data-router/v1/conf - for f in `ls $SERVICE_BEANS` - do - cp $SERVICE_BEANS/$f /tmp/data-router/v1/conf - echo "Adding dynamic service bean $SERVICE_BEANS/$f" - done - jar uf /opt/app/data-router/services/data-router_v1.zip* -C /tmp/ data-router - rm -rf /tmp/data-router -fi -# Add any dynamic component configuration files to the data layer deployment -if [ -n "$COMPLIB" ]; then - echo "Adding the following dynamic libraries to the deployment: " - mkdir -p /tmp/data-router/v1/lib - for f in `ls $COMPLIB` - do - cp $COMPLIB/$f /tmp/data-router/v1/lib - echo "Adding dynamic library $COMPLIB/$f" - done - jar uf /opt/app/data-router/services/data-router_v1.zip* -C /tmp/ data-router - rm -rf /tmp/data-router -fi - -CLASSPATH="$AJSC_HOME/lib/*" -CLASSPATH="$CLASSPATH:$AJSC_HOME/extJars/" -CLASSPATH="$CLASSPATH:$AJSC_HOME/etc/" PROPS="-DAJSC_HOME=$AJSC_HOME" PROPS="$PROPS -DAJSC_CONF_HOME=$AJSC_CONF_HOME" -PROPS="$PROPS -Dlogback.configurationFile=$BASEDIR/bundleconfig/etc/logback.xml" +PROPS="$PROPS -Dlogging.config=$BASEDIR/bundleconfig/etc/logback.xml" PROPS="$PROPS -DAJSC_SHARED_CONFIG=$AJSC_CONF_HOME" PROPS="$PROPS -DAJSC_SERVICE_NAMESPACE=data-router" PROPS="$PROPS -DAJSC_SERVICE_VERSION=v1" @@ -77,4 +22,7 @@ JVM_MAX_HEAP=${MAX_HEAP:-1024} echo $CLASSPATH -exec java -Xmx${JVM_MAX_HEAP}m $PROPS -classpath $CLASSPATH com.att.ajsc.runner.Runner context=// sslport=9502 +cd ${MICRO_HOME} +jar uf0 $MICRO_HOME/data-router.jar BOOT-INF/lib/* + +exec java -Xmx${JVM_MAX_HEAP}m $PROPS -jar ${MICRO_HOME}/data-router.jar
\ No newline at end of file |