Created
November 15, 2019 17:20
-
-
Save lawrence-lee/672963978afd1bce0dfd4b4ece82c700 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker stop /local-nexus | |
docker rm /local-nexus | |
docker pull sonatype/nexus:2.14.11-01 && \ | |
docker run -d -p 8081:8081 --name local-nexus -e JAVA_OPTS=-Duser.timezone=US/Pacific sonatype/nexus:2.14.11-01 | |
until $(curl --output /dev/null --silent --head --fail http://localhost:8081/nexus/); do | |
printf '.' | |
sleep 5 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment