3 NEXUS_USERNAME=$(cat /opt/config/nexus_username.txt)
4 NEXUS_PASSWD=$(cat /opt/config/nexus_password.txt)
5 NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt)
6 ENV_NAME=$(cat /opt/config/env_name.txt)
7 MR_IP_ADDR=$(cat /opt/config/mr_ip_addr.txt)
8 RELEASE=$(cat /opt/config/docker_version.txt)
14 cp sdc/sdc-os-chef/environments/Template.json /data/environments
15 cp sdc/sdc-os-chef/scripts/docker_run.sh /data/scripts
16 cp sdc/sdc-os-chef/scripts/docker_health.sh /data/scripts
17 chmod +x /data/scripts/docker_run.sh
18 chmod +x /data/scripts/docker_health.sh
20 IP_ADDRESS=$(cat /opt/config/private_ip.txt)
22 cat /data/environments/Template.json | sed "s/yyy/"$IP_ADDRESS"/g" > /data/environments/$ENV_NAME.json
23 sed -i "s/xxx/"$ENV_NAME"/g" /data/environments/$ENV_NAME.json
24 sed -i "s/\"ueb_url_list\":.*/\"ueb_url_list\": \""$MR_IP_ADDR","$MR_IP_ADDR"\",/g" /data/environments/$ENV_NAME.json
25 sed -i "s/\"fqdn\":.*/\"fqdn\": [\""$MR_IP_ADDR"\", \""$MR_IP_ADDR"\"]/g" /data/environments/$ENV_NAME.json
27 docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
28 bash /data/scripts/docker_run.sh -r $RELEASE