source /opt/concourse-java.sh

setup_symlinks
if [[ -d $PWD/embedmongo && ! -d $HOME/.embedmongo ]]; then
	ln -s "$PWD/embedmongo" "$HOME/.embedmongo"
fi

if [[ -n $DOCKER_HUB_USERNAME ]]; then
	docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD
	docker pull paketobuildpacks/run:tiny-cnb
	docker pull springci/spring-boot-cnb-builder:0.0.1
fi

cleanup_maven_repo "org.springframework.boot"

source /opt/concourse-java.sh

setup_symlinks
if [[ -d $PWD/embedmongo && ! -d $HOME/.embedmongo ]]; then
	ln -s "$PWD/embedmongo" "$HOME/.embedmongo"
fi

if [[ -n $DOCKER_HUB_USERNAME ]]; then
	docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD
fi

cleanup_maven_repo "org.springframework.boot"

Revert "Attempt to overcome Docker rate limiting on CI"
Revert "Attempt to overcome Docker rate limiting on CI"

This reverts commit 51d57e19d092f59ee7389a4423e4988de30bc44d.

See gh-25838
