Skip to content

Commit

Permalink
Updated startup script; (#561)
Browse files Browse the repository at this point in the history
added logic to check and see if docker config exists, if not set it.
  • Loading branch information
networkRob authored and networkRob-Arista committed Apr 4, 2022
1 parent af79fe0 commit ceb1329
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nested-labvm/services/atdStartup/atdStartup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ find /opt/atd/nested-labvm/atd-docker/* -type f -print0 | xargs -0 sed -i "s/{A
find /opt/atd/topologies/$TOPO/files/* -type f -print0 | xargs -0 sed -i "s/{ARISTA_REPLACE}/$APWD/g"


# Perform check to see if docker auth file exists
if ! [ -f "/home/atdadmin/.docker/config.json" ]
then
echo "Docker auth file not found, creating..."
gcloud auth configure-docker gcr.io,us.gcr.io --quiet
su atdadmin -c "gcloud auth configure-docker gcr.io,us.gcr.io --quiet"
fi

# Update the base configlets for ceos/veos mgmt numbering

if [ $EOS_TYPE == 'ceos' ]
Expand Down

0 comments on commit ceb1329

Please sign in to comment.