X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=boot%2Faaf_install.sh;h=af0ebbfe0fe3388b4bf3629242f60dd33249aed1;hb=913bdef5b9fed11b7131584ae092bade71771c2a;hp=bc7e28e5fda3bf0cd2385fe466dbe4cc3fd4d18e;hpb=87ff9f85c1c270a9b8533918701fa920a181d750;p=demo.git diff --git a/boot/aaf_install.sh b/boot/aaf_install.sh index bc7e28e5..af0ebbfe 100644 --- a/boot/aaf_install.sh +++ b/boot/aaf_install.sh @@ -1,7 +1,6 @@ #!/bin/bash # Read configuration files -NEXUS_REPO=$(cat /opt/config/nexus_repo.txt) ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) CLOUD_ENV=$(cat /opt/config/cloud_env.txt) @@ -54,8 +53,8 @@ apt-get update apt-get install --allow-unauthenticated -y apt-transport-https ca-certificates wget openjdk-8-jdk git ntp ntpdate make maven # Download scripts from Nexus -curl -k $NEXUS_REPO/org.onap.demo/boot/$ARTIFACTS_VERSION/aaf_vm_init.sh -o /opt/aaf_vm_init.sh -curl -k $NEXUS_REPO/org.onap.demo/boot/$ARTIFACTS_VERSION/aaf_serv.sh -o /opt/aaf_serv.sh +unzip -p -j /opt/boot-$ARTIFACTS_VERSION.zip aaf_vm_init.sh > /opt/aaf_vm_init.sh +unzip -p -j /opt/boot-$ARTIFACTS_VERSION.zip aaf_serv.sh > /opt/aaf_serv.sh chmod +x /opt/aaf_vm_init.sh chmod +x /opt/aaf_serv.sh mv /opt/aaf_serv.sh /etc/init.d @@ -95,11 +94,414 @@ resolvconf -u cd /opt git clone -b $GERRIT_BRANCH --single-branch $CODE_REPO chmod +x /opt/authz/auth/auth-cass/docker/dinstall.sh +chmod +x /opt/authz/auth/auth-cass/docker/backup/backup.sh +chmod +x /opt/authz/auth/docker/dbuild.sh chmod +x /opt/authz/auth/docker/drun.sh -chmod +x /opt/authz/auth/docker/d.props +chmod +x /opt/authz/auth/docker/dstart.sh +chmod +x /opt/authz/auth/docker/dstop.sh +# d.props is not a startable shell +# chmod +x /opt/authz/auth/docker/d.props + +#Update maven settings +cat > /usr/share/maven/conf/settings.xml << EOF + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10_nexus + + + + + 10_nexus + http://repo.maven.apache.org/maven2/ + true + true + + + + + + 10_nexus + http://repo.maven.apache.org/maven2/ + true + true + + + + + + 20_openecomp-public + + + 20_openecomp-public + 20_openecomp-public + https://nexus.onap.org/content/repositories/public/ + + true + daily + + + false + + + + + + 20_openecomp-public + 20_openecomp-public + https://nexus.onap.org/content/repositories/public/ + + true + daily + + + false + + + + + + 30_openecomp-staging + + + 30_openecomp-staging + 30_openecomp-staging + https://nexus.onap.org/content/repositories/staging/ + + true + daily + + + false + + + + + + 30_openecomp-staging + 30_openecomp-staging + https://nexus.onap.org/content/repositories/staging/ + + true + daily + + + false + + + + + + 40_openecomp-release + + + 40_openecomp-release + 40_openecomp-release + https://nexus.onap.org/content/repositories/releases/ + + true + daily + + + false + + + + + + 40_openecomp-release + 40_openecomp-release + https://nexus.onap.org/content/repositories/releases/ + + true + daily + + + false + + + + + + + 50_openecomp-snapshots + + + 50_openecomp-snapshot + 50_openecomp-snapshot + https://nexus.onap.org/content/repositories/snapshots/ + + false + + + true + + + + + + 50_openecomp-snapshot + 50_openecomp-snapshot + https://nexus.onap.org/content/repositories/snapshots/ + + false + + + true + + + + + + 60_opendaylight-release + + + 60_opendaylight-mirror + 60_opendaylight-mirror + https://nexus.opendaylight.org/content/repositories/public/ + + true + daily + + + false + + + + + + 60_opendaylight-mirror + 60_opendaylight-mirror + https://nexus.opendaylight.org/content/repositories/public/ + + true + daily + + + false + + + + + + + 70_opendaylight-snapshots + + + 70_opendaylight-snapshot + 70_opendaylight-snapshot + https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ + + false + + + true + + + + + + 70_opendaylight-snapshot + 70_opendaylight-snapshot + https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ + + false + + + true + + + + + + + + 10_nexus + 20_openecomp-public + 30_openecomp-staging + 40_openecomp-release + 50_openecomp-snapshots + 60_opendaylight-release + 70_opendaylight-snapshots + + + + +EOF cd /opt/authz -#Need to update /usr/share/maven/conf/settings.xml mvn install -Dmaven.test.skip=true # Rename network interface in openstack Ubuntu 16.04 images. Then, reboot the VM to pick up changes @@ -115,4 +517,4 @@ then fi cd /opt -./aaf_vm_init.sh \ No newline at end of file +./aaf_vm_init.sh