Skip to content

Instantly share code, notes, and snippets.

@lawrence-lee
Created November 15, 2019 17:20
Show Gist options
  • Save lawrence-lee/672963978afd1bce0dfd4b4ece82c700 to your computer and use it in GitHub Desktop.
Save lawrence-lee/672963978afd1bce0dfd4b4ece82c700 to your computer and use it in GitHub Desktop.
#!/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