diff options
Diffstat (limited to 'boot/policy_vm_init.sh')
-rw-r--r-- | boot/policy_vm_init.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/boot/policy_vm_init.sh b/boot/policy_vm_init.sh new file mode 100644 index 00000000..ad71cf0e --- /dev/null +++ b/boot/policy_vm_init.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +NEXUS_USERNAME=$(cat /opt/config/nexus_username.txt) +NEXUS_PASSWD=$(cat /opt/config/nexus_password.txt) +NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt) + +cd /opt/policy +docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO +/opt/docker/docker-compose up -d |