File tree Expand file tree Collapse file tree 3 files changed +0
-30
lines changed Expand file tree Collapse file tree 3 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -85,20 +85,10 @@ cleanup() {
8585 fi
8686 echo " Deleting Atlas db user \` $ATLAS_TEST_DB_USERNAME \` ..."
8787 atlascli dbusers delete $ATLAS_TEST_DB_USERNAME --force
88-
89- if [ -n " $DOCKERHUB_PASSWORD " ]; then
90- echo " Logging out of docker"
91- docker logout
92- fi
9388}
9489
9590trap cleanup EXIT
9691
97- if [ -n " $DOCKERHUB_PASSWORD " ]; then
98- echo " Logging in to docker"
99- echo " ${DOCKERHUB_PASSWORD} " | docker login -u ${DOCKERHUB_USERNAME} --password-stdin
100- fi
101-
10292echo " Allowing access from current ip..."
10393atlascli accessList create \
10494 --currentIp \
Original file line number Diff line number Diff line change @@ -15,20 +15,10 @@ cleanup() {
1515 echo " Stopping and removing container..."
1616 docker stop $CONTAINER_NAME || true
1717 docker rm -f $CONTAINER_NAME || true
18-
19- if [ -n " $DOCKERHUB_PASSWORD " ]; then
20- echo " Logging out of docker"
21- docker logout
22- fi
2318}
2419
2520trap cleanup EXIT
2621
27- if [ -n " $DOCKERHUB_PASSWORD " ]; then
28- echo " Logging in to docker"
29- echo " ${DOCKERHUB_PASSWORD} " | docker login -u ${DOCKERHUB_USERNAME} --password-stdin
30- fi
31-
3222# Image name with version
3323IMAGE_NAME=" mongodb/mongodb-atlas-local:$ATLAS_LOCAL_VERSION "
3424echo docker run --rm --name $CONTAINER_NAME -d -e DO_NOT_TRACK=1 -P " $IMAGE_NAME "
Original file line number Diff line number Diff line change @@ -33,11 +33,6 @@ if [ "$HAS_DOCKER" = true ]; then
3333 docker version
3434 $DOCKER_COMPOSE version
3535
36- if [ -n " $DOCKERHUB_PASSWORD " ]; then
37- echo " Logging in to docker"
38- echo " ${DOCKERHUB_PASSWORD} " | docker login -u ${DOCKERHUB_USERNAME} --password-stdin
39- fi
40-
4136 echo " Starting test environments"
4237
4338 SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd) "
@@ -78,11 +73,6 @@ if [ "$HAS_DOCKER" = true ]; then
7873 $DOCKER_COMPOSE -f test-envs/docker/ssh/docker-compose.yaml down -v --remove-orphans
7974 $DOCKER_COMPOSE -f test-envs/docker/tls/docker-compose.yaml down -v --remove-orphans
8075 $DOCKER_COMPOSE -f test-envs/docker/kerberos/docker-compose.yaml down -v --remove-orphans
81-
82- if [ -n " $DOCKERHUB_PASSWORD " ]; then
83- echo " Logging out of docker"
84- docker logout
85- fi
8676 }
8777
8878 trap " __stop_all_docker_containers" EXIT
You can’t perform that action at this time.
0 commit comments