Use integration-java11 Dockerfile
Use onap/integration-java11:7.1.0 as a source for the images requiring JDK 11 in SDC
Issue-ID: SDC-3298
Change-Id: Ifee3d2942dcb9c078f2ebb686bdabc0ecca857b3
Signed-off-by: xuegao <xue.gao@intl.att.com>
diff --git a/asdctool/pom.xml b/asdctool/pom.xml
index 623d4e6..7161f89 100644
--- a/asdctool/pom.xml
+++ b/asdctool/pom.xml
@@ -726,6 +726,7 @@
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<configuration>
+ <verbose>${verbose}</verbose>
<apiVersion>${docker.api.version}</apiVersion>
<registry>nexus3.onap.org:10001</registry>
<authConfig>
diff --git a/asdctool/sdc-cassandra-init/Dockerfile b/asdctool/sdc-cassandra-init/Dockerfile
index e35f841..e532100 100644
--- a/asdctool/sdc-cassandra-init/Dockerfile
+++ b/asdctool/sdc-cassandra-init/Dockerfile
@@ -16,7 +16,6 @@
echo '[cql]' > ~/.cassandra/cqlshrc && \
echo 'version=3.4.4' >> ~/.cassandra/cqlshrc && \
set -ex && \
- pip install cqlsh && \
apt-get install -y \
make \
gcc \
@@ -25,14 +24,12 @@
libffi-dev \
libxml2-dev && \
gem install chef:13.8.5 berkshelf:6.3.1 io-console:0.4.6 etc webrick --no-document && \
- apt-get update -y && \
+ apt-get update -y && apt-get remove bash -y --allow-remove-essential && \
apt-get install -y binutils && apt-get clean && gem cleanup
+
USER sdc
-
COPY --chown=sdc:sdc chef-solo /home/sdc/chef-solo/
-
COPY --chown=sdc:sdc chef-repo/cookbooks /home/sdc/chef-solo/cookbooks/
-
COPY --chown=sdc:sdc startup.sh /home/sdc/
RUN chmod 770 /home/sdc/startup.sh
diff --git a/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/01-createCsUser.rb b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/01-createCsUser.rb
index 84b0cb2..3c67715 100644
--- a/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/01-createCsUser.rb
+++ b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/01-createCsUser.rb
@@ -11,9 +11,8 @@
})
end
-
-bash "create-sdc-user" do
- code <<-EOH
- cd /tmp ; /tmp/create_cassandra_user.sh
- EOH
-end
+execute "create-sdc-user" do
+ command "/tmp/create_cassandra_user.sh"
+ cwd "/tmp/"
+ action :run
+end
\ No newline at end of file
diff --git a/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/02-createDoxKeyspace.rb b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/02-createDoxKeyspace.rb
index 38de1e8..5f740a8 100644
--- a/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/02-createDoxKeyspace.rb
+++ b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/02-createDoxKeyspace.rb
@@ -19,21 +19,16 @@
action :create
end
+execute "onboard-db-schema-creation" do
+ ignore_failure true
+ command "chmod +x onboard-db-schema-creation.sh && sh -x /tmp/tools/build/scripts/onboard-db-schema-creation.sh"
+ cwd "/tmp/tools/build/scripts"
+ action :run
+end
-bash "onboard-db-schema-creation" do
+execute "create-DOX-schema" do
ignore_failure true
- code <<-EOH
- cd /tmp/tools/build/scripts
- chmod +x onboard-db-schema-creation.sh
- bash /tmp/tools/build/scripts/onboard-db-schema-creation.sh
- EOH
-end
-
-bash "create-DOX-schema" do
- ignore_failure true
- code <<-EOH
- cd /tmp
- chmod +x /tmp/create_dox_keyspace.sh
- /tmp/create_dox_keyspace.sh
- EOH
-end
+ command "chmod +x /tmp/create_dox_keyspace.sh && /tmp/create_dox_keyspace.sh"
+ cwd "/tmp"
+ action :run
+end
\ No newline at end of file
diff --git a/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/03-schemaCreation.rb b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/03-schemaCreation.rb
index a62550e..e60740f 100644
--- a/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/03-schemaCreation.rb
+++ b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/03-schemaCreation.rb
@@ -3,15 +3,12 @@
mode 0755
end
-## extract sdctool.tar
-bash "install tar" do
+execute "install tar" do
+ command "/bin/tar xf /tmp/sdctool.tar -C /tmp"
cwd "/tmp"
- code <<-EOH
- /bin/tar xf /tmp/sdctool.tar -C /tmp
- EOH
+ action :run
end
-
template "janusgraph.properties" do
sensitive true
path "/tmp/sdctool/config/janusgraph.properties"
@@ -49,19 +46,13 @@
})
end
-
-
-bash "executing-schema-creation" do
- code <<-EOH
- cd /tmp
- chmod +x /tmp/sdctool/scripts/schemaCreation.sh
- /tmp/sdctool/scripts/schemaCreation.sh /tmp/sdctool/config
- EOH
+execute "executing-schema-creation" do
+ command "chmod +x /tmp/sdctool/scripts/schemaCreation.sh && /tmp/sdctool/scripts/schemaCreation.sh /tmp/sdctool/config"
+ cwd "/tmp"
+ action :run
end
-bash "executing-janusGraphSchemaCreation.sh" do
- code <<-EOH
- chmod +x /tmp/sdctool/scripts/janusGraphSchemaCreation.sh
- /tmp/sdctool/scripts/janusGraphSchemaCreation.sh /tmp/sdctool/config
- EOH
-end
+execute "executing-janusGraphSchemaCreation.sh" do
+ command "chmod +x /tmp/sdctool/scripts/janusGraphSchemaCreation.sh && /tmp/sdctool/scripts/janusGraphSchemaCreation.sh /tmp/sdctool/config"
+ action :run
+end
\ No newline at end of file
diff --git a/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/04-importConformance.rb b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/04-importConformance.rb
index 0490c89..8c2ee50 100644
--- a/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/04-importConformance.rb
+++ b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/04-importConformance.rb
@@ -2,19 +2,8 @@
cl_release=node['version'].split('.')[0..2].join('.').split('-')[0]
printf("\033[33mcl_release=[%s]\n\033[0m", cl_release)
-
-
-bash "import-Conformance" do
+execute "import-Conformance" do
+ command "conf_dir=/tmp/sdctool/config && tosca_dir=/tmp/sdctool/tosca && cl_version=`grep 'toscaConformanceLevel:' $conf_dir/configuration.yaml |awk '{print $2}'` && cd /tmp/sdctool/scripts && /bin/chmod +x sdcSchemaFileImport.sh && echo \"execute /tmp/sdctool/scripts/sdcSchemaFileImport.sh ${tosca_dir} #{cl_release} ${cl_version} ${conf_dir} onap\" && ./sdcSchemaFileImport.sh ${tosca_dir} #{cl_release} ${cl_version} ${conf_dir} onap"
cwd "#{working_directory}"
- code <<-EOH
- conf_dir=/tmp/sdctool/config
- tosca_dir=/tmp/sdctool/tosca
-
- cl_version=`grep 'toscaConformanceLevel:' $conf_dir/configuration.yaml |awk '{print $2}'`
-
- cd /tmp/sdctool/scripts
- /bin/chmod +x sdcSchemaFileImport.sh
- echo "execute /tmp/sdctool/scripts/sdcSchemaFileImport.sh ${tosca_dir} #{cl_release} ${cl_version} ${conf_dir} onap"
- ./sdcSchemaFileImport.sh ${tosca_dir} #{cl_release} ${cl_version} ${conf_dir} onap
- EOH
+ action :run
end
\ No newline at end of file
diff --git a/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/templates/default/create_cassandra_user.sh.erb b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/templates/default/create_cassandra_user.sh.erb
index 426eed8..9fa3130 100644
--- a/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/templates/default/create_cassandra_user.sh.erb
+++ b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/templates/default/create_cassandra_user.sh.erb
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
CASSANDRA_IP=<%= @cassandra_ip %>
CASSANDRA_PORT=<%= @cassandra_port %>
@@ -12,17 +12,17 @@
is_up=0
while [ $is_up -eq 0 -a $retry_num -le 100 ]; do
- echo "exit" | cqlsh -u cassandra -p $CS_PASSWORD $CASSANDRA_IP $CASSANDRA_PORT > /dev/null 2>&1
+ echo "exit" | cqlsh -u cassandra -p $CS_PASSWORD $CASSANDRA_IP $CASSANDRA_PORT
res1=$?
if [ $res1 -eq 0 ]; then
- echo "`date` --- cqlsh is enabled to connect."
+ echo "`date` --- cqlsh is able to connect."
is_up=1
else
- echo "`date` --- cqlsh is NOT enabled to connect yet. sleep 5"
+ echo "`date` --- cqlsh is NOT able to connect yet. sleep 5"
sleep 5
fi
- let "retry_num++"
+ retry_num=$((retry_num+1))
done
cassandra_user_exist=`echo "list users;" | cqlsh -u cassandra -p $CS_PASSWORD $CASSANDRA_IP $CASSANDRA_PORT | grep -c $SDC_USER`
diff --git a/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/templates/default/create_dox_keyspace.sh.erb b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/templates/default/create_dox_keyspace.sh.erb
index e9d10af..9b20c6f 100644
--- a/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/templates/default/create_dox_keyspace.sh.erb
+++ b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/templates/default/create_dox_keyspace.sh.erb
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
CASSANDRA_USER='<%= @cassandra_usr %>'
CASSANDRA_PASS='<%= @cassandra_pwd %>'
diff --git a/asdctool/src/main/resources/scripts/UUIDFix1707.sh b/asdctool/src/main/resources/scripts/UUIDFix1707.sh
index 0ceb0a0..71cda4b 100644
--- a/asdctool/src/main/resources/scripts/UUIDFix1707.sh
+++ b/asdctool/src/main/resources/scripts/UUIDFix1707.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Distribution Status Update 1707
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.ArtifactUUIDFixMenu"
diff --git a/asdctool/src/main/resources/scripts/artifactsIdValidation.sh b/asdctool/src/main/resources/scripts/artifactsIdValidation.sh
index 9064a64..9c60aa7 100644
--- a/asdctool/src/main/resources/scripts/artifactsIdValidation.sh
+++ b/asdctool/src/main/resources/scripts/artifactsIdValidation.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Artifact Validator Tool #
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.ArtifactValidatorTool"
diff --git a/asdctool/src/main/resources/scripts/baseOperation.sh b/asdctool/src/main/resources/scripts/baseOperation.sh
index b27b734..ffa101e 100644
--- a/asdctool/src/main/resources/scripts/baseOperation.sh
+++ b/asdctool/src/main/resources/scripts/baseOperation.sh
@@ -1,9 +1,9 @@
-#!/bin/bash
+#!/bin/sh
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
diff --git a/asdctool/src/main/resources/scripts/cleanCsar.sh b/asdctool/src/main/resources/scripts/cleanCsar.sh
index c11cdef..a5fba0a 100644
--- a/asdctool/src/main/resources/scripts/cleanCsar.sh
+++ b/asdctool/src/main/resources/scripts/cleanCsar.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Data Migration
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.MigrationMenu"
diff --git a/asdctool/src/main/resources/scripts/deleteAllProducts.sh b/asdctool/src/main/resources/scripts/deleteAllProducts.sh
index 474b6c8..07dbae1 100644
--- a/asdctool/src/main/resources/scripts/deleteAllProducts.sh
+++ b/asdctool/src/main/resources/scripts/deleteAllProducts.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#####################################
# delete all products from JanusGraph
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.RemoveUtils"
diff --git a/asdctool/src/main/resources/scripts/deleteComponentTool.sh b/asdctool/src/main/resources/scripts/deleteComponentTool.sh
index afdf816..0c65d54 100644
--- a/asdctool/src/main/resources/scripts/deleteComponentTool.sh
+++ b/asdctool/src/main/resources/scripts/deleteComponentTool.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Distribution Status Update 1707
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.DeleteComponentTool"
diff --git a/asdctool/src/main/resources/scripts/derivedFromAlignment.sh b/asdctool/src/main/resources/scripts/derivedFromAlignment.sh
index 05025a0..c9ee64b 100644
--- a/asdctool/src/main/resources/scripts/derivedFromAlignment.sh
+++ b/asdctool/src/main/resources/scripts/derivedFromAlignment.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Data Migration
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.MigrationMenu"
diff --git a/asdctool/src/main/resources/scripts/distributionStatusUpdate1707.sh b/asdctool/src/main/resources/scripts/distributionStatusUpdate1707.sh
index a9d308f..3be4a49 100644
--- a/asdctool/src/main/resources/scripts/distributionStatusUpdate1707.sh
+++ b/asdctool/src/main/resources/scripts/distributionStatusUpdate1707.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Distribution Status Update 1707
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.MigrationMenu"
diff --git a/asdctool/src/main/resources/scripts/exportGraph.sh b/asdctool/src/main/resources/scripts/exportGraph.sh
index 648cb50..41874d5 100644
--- a/asdctool/src/main/resources/scripts/exportGraph.sh
+++ b/asdctool/src/main/resources/scripts/exportGraph.sh
@@ -1,16 +1,16 @@
-#!/bin/bash
+#!/bin/sh
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.ExportImportMenu"
diff --git a/asdctool/src/main/resources/scripts/exportGraphAsGraphMl.sh b/asdctool/src/main/resources/scripts/exportGraphAsGraphMl.sh
index 17d660c..bd8f51a 100644
--- a/asdctool/src/main/resources/scripts/exportGraphAsGraphMl.sh
+++ b/asdctool/src/main/resources/scripts/exportGraphAsGraphMl.sh
@@ -1,16 +1,16 @@
-#!/bin/bash
+#!/bin/sh
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.ExportImportMenu"
diff --git a/asdctool/src/main/resources/scripts/exportUsers.sh b/asdctool/src/main/resources/scripts/exportUsers.sh
index fec7d5a..4a6d0fe 100644
--- a/asdctool/src/main/resources/scripts/exportUsers.sh
+++ b/asdctool/src/main/resources/scripts/exportUsers.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##################################
# export all users from JanusGraph
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.ExportImportMenu"
diff --git a/asdctool/src/main/resources/scripts/fix_icons.sh b/asdctool/src/main/resources/scripts/fix_icons.sh
index 230dea7..dfa50aa 100644
--- a/asdctool/src/main/resources/scripts/fix_icons.sh
+++ b/asdctool/src/main/resources/scripts/fix_icons.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Data Migration
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.MigrationMenu"
diff --git a/asdctool/src/main/resources/scripts/fix_issue.sh b/asdctool/src/main/resources/scripts/fix_issue.sh
index af63ec5..7c4d426 100644
--- a/asdctool/src/main/resources/scripts/fix_issue.sh
+++ b/asdctool/src/main/resources/scripts/fix_issue.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Data Migration
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.MigrationMenu"
diff --git a/asdctool/src/main/resources/scripts/generateCsar.sh b/asdctool/src/main/resources/scripts/generateCsar.sh
index c741688..fb01c2f 100644
--- a/asdctool/src/main/resources/scripts/generateCsar.sh
+++ b/asdctool/src/main/resources/scripts/generateCsar.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Distribution Status Update 1707
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.CsarGeneratorTool"
diff --git a/asdctool/src/main/resources/scripts/groupsAlignment.sh b/asdctool/src/main/resources/scripts/groupsAlignment.sh
index 742b246..7ce927a 100644
--- a/asdctool/src/main/resources/scripts/groupsAlignment.sh
+++ b/asdctool/src/main/resources/scripts/groupsAlignment.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Groups Alignment
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.MigrationMenu"
diff --git a/asdctool/src/main/resources/scripts/importGraph.sh b/asdctool/src/main/resources/scripts/importGraph.sh
index ffdd2fd..4d4dd69 100644
--- a/asdctool/src/main/resources/scripts/importGraph.sh
+++ b/asdctool/src/main/resources/scripts/importGraph.sh
@@ -1,16 +1,16 @@
-#!/bin/bash
+#!/bin/sh
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.ExportImportMenu"
diff --git a/asdctool/src/main/resources/scripts/janusGraphSchemaCreation.sh b/asdctool/src/main/resources/scripts/janusGraphSchemaCreation.sh
index d4b7871..d964c99 100644
--- a/asdctool/src/main/resources/scripts/janusGraphSchemaCreation.sh
+++ b/asdctool/src/main/resources/scripts/janusGraphSchemaCreation.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# JanusGraph Schema Creation
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.DataSchemaMenu"
diff --git a/asdctool/src/main/resources/scripts/migration1707RelationsFix.sh b/asdctool/src/main/resources/scripts/migration1707RelationsFix.sh
index c930243..0e7ce42 100644
--- a/asdctool/src/main/resources/scripts/migration1707RelationsFix.sh
+++ b/asdctool/src/main/resources/scripts/migration1707RelationsFix.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Data Migration: fix relations after migration 1707
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.MigrationMenu"
diff --git a/asdctool/src/main/resources/scripts/postMigration1707Fix.sh b/asdctool/src/main/resources/scripts/postMigration1707Fix.sh
index 56a16db..0d25d7c 100644
--- a/asdctool/src/main/resources/scripts/postMigration1707Fix.sh
+++ b/asdctool/src/main/resources/scripts/postMigration1707Fix.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Data Migration 1707
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.MigrationMenu"
diff --git a/asdctool/src/main/resources/scripts/schemaCreation.sh b/asdctool/src/main/resources/scripts/schemaCreation.sh
index 657db5e..fbc2251 100644
--- a/asdctool/src/main/resources/scripts/schemaCreation.sh
+++ b/asdctool/src/main/resources/scripts/schemaCreation.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Data Migration
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.DataSchemaMenu"
diff --git a/asdctool/src/main/resources/scripts/sdc-migration.sh b/asdctool/src/main/resources/scripts/sdc-migration.sh
index 15e6d6b..c369800 100644
--- a/asdctool/src/main/resources/scripts/sdc-migration.sh
+++ b/asdctool/src/main/resources/scripts/sdc-migration.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Data Migration
@@ -10,14 +10,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.migration.main.MigrationMenu"
diff --git a/asdctool/src/main/resources/scripts/sdcSchemaFileImport.sh b/asdctool/src/main/resources/scripts/sdcSchemaFileImport.sh
index 4002e38..afe6b65 100644
--- a/asdctool/src/main/resources/scripts/sdcSchemaFileImport.sh
+++ b/asdctool/src/main/resources/scripts/sdcSchemaFileImport.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Sdc Schema File Import #
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.SdcSchemaFileImport"
diff --git a/asdctool/src/main/resources/scripts/updateIsVnf.sh b/asdctool/src/main/resources/scripts/updateIsVnf.sh
index bf45fa8..4d15b04 100644
--- a/asdctool/src/main/resources/scripts/updateIsVnf.sh
+++ b/asdctool/src/main/resources/scripts/updateIsVnf.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
########################################################################
#
@@ -10,14 +10,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.UpdateIsVnfMenu"
diff --git a/asdctool/src/main/resources/scripts/upgradePostMigration1710.sh b/asdctool/src/main/resources/scripts/upgradePostMigration1710.sh
index 927d148..3b58fdc 100644
--- a/asdctool/src/main/resources/scripts/upgradePostMigration1710.sh
+++ b/asdctool/src/main/resources/scripts/upgradePostMigration1710.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Data Migration: Upgrade Post Migration 1710
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.migration.main.MigrationMenu"
diff --git a/asdctool/src/main/resources/scripts/validationTool.sh b/asdctool/src/main/resources/scripts/validationTool.sh
index 58cd7f3..6ac0541 100644
--- a/asdctool/src/main/resources/scripts/validationTool.sh
+++ b/asdctool/src/main/resources/scripts/validationTool.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Validation Tool #
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.ValidationTool"
diff --git a/asdctool/src/main/resources/scripts/vfModulePropertiesAdding.sh b/asdctool/src/main/resources/scripts/vfModulePropertiesAdding.sh
index 1ead248..7fd4096 100644
--- a/asdctool/src/main/resources/scripts/vfModulePropertiesAdding.sh
+++ b/asdctool/src/main/resources/scripts/vfModulePropertiesAdding.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Data Migration: Adding new properties to vfModules
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.MigrationMenu"
diff --git a/asdctool/src/main/resources/scripts/vfcNameAlignment.sh b/asdctool/src/main/resources/scripts/vfcNameAlignment.sh
index 10fbb25..a7578ec 100644
--- a/asdctool/src/main/resources/scripts/vfcNameAlignment.sh
+++ b/asdctool/src/main/resources/scripts/vfcNameAlignment.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Data Migration
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.MigrationMenu"
diff --git a/asdctool/src/main/resources/scripts/vfmoduleFix1707.sh b/asdctool/src/main/resources/scripts/vfmoduleFix1707.sh
index 4857924..6f08fa2 100644
--- a/asdctool/src/main/resources/scripts/vfmoduleFix1707.sh
+++ b/asdctool/src/main/resources/scripts/vfmoduleFix1707.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Distribution Status Update 1707
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.MigrationMenu"
diff --git a/asdctool/src/main/resources/scripts/vrfObjectFix.sh b/asdctool/src/main/resources/scripts/vrfObjectFix.sh
index 3f875fa..a3eb067 100644
--- a/asdctool/src/main/resources/scripts/vrfObjectFix.sh
+++ b/asdctool/src/main/resources/scripts/vrfObjectFix.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
##############################
# Data Migration
@@ -7,14 +7,14 @@
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-if [ ${BASEDIR:0:1} = "/" ]
+if [ `echo ${BASEDIR} | cut -c1-1` = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-source ${FULL_PATH}/baseOperation.sh
+. ${FULL_PATH}/baseOperation.sh
mainClass="org.openecomp.sdc.asdctool.main.VrfObjectFixMenu"