Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Fix the endpoint (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevekuo4 authored and timotheeguerin committed Mar 13, 2018
1 parent 4be5ac2 commit bcefca3
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions node_scripts/setup_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,14 @@ if [ $gpu_enabled == "True" ]; then
fi

if [ -z "$DOCKER_USERNAME" ]; then
echo "No Credentials provided. No need to login to dockerhub $DOCKER_USERNAME $DOCKER_PASSWORD"
echo "No Credentials provided. No need to login to dockerhub"
else
echo "Docker credentials provided. Login in."
docker login $docker_endpoint --username $DOCKER_USERNAME --password $DOCKER_PASSWORD
docker login $DOCKER_ENDPOINT --username $DOCKER_USERNAME --password $DOCKER_PASSWORD
fi

if [ -z "$DOCKER_ENDPOINT" ]; then
echo "Pulling $repo_name from dockerhub"
(time docker pull $repo_name) 2>&1
else
echo "Pulling $container_name from $DOCKER_ENDPOINT"
(time docker pull $DOCKER_ENDPOINT/$repo_name) 2>&1
fi
echo "Pulling $repo_name"
(time docker pull $repo_name) 2>&1

# Unzip resource files and set permissions
apt-get -y install unzip
Expand All @@ -71,7 +66,7 @@ else
until [ "`/usr/bin/docker inspect -f {{.State.Running}} $container_name`"=="true" ]; do
sleep 0.1;
done;

# wait until container setup is complete
docker exec spark /bin/bash -c 'python $DOCKER_WORKING_DIR/wait_until_setup_complete.py'

Expand Down

0 comments on commit bcefca3

Please sign in to comment.