aboutsummaryrefslogtreecommitdiffstats
path: root/boot/asdc_vm_init.sh
blob: f0777d5f5edc88e5cbc9ead635acdea7c865be54 (plain)
1
2
3
4
5
6
7
8
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)
ENV_NAME=$(cat /opt/config/env_name.txt)

docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
bash /data/scripts/docker_run.sh -e $ENV_NAME