summaryrefslogtreecommitdiffstats
path: root/boot/sdnc_vm_init.sh
blob: d82ad5211741717a301aad2f289ec3915984b932 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

NEXUS_USERNAME=$(cat /opt/config/nexus_username.txt)
NEXUS_PASSWD=$(cat /opt/config/nexus_password.txt)
export NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt)

cd /opt/sdnc
git pull

cd /opt/sdnc/installation/src/main/yaml
docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
/opt/docker/docker-compose up -d