Skip to content

Instantly share code, notes, and snippets.

@chrislewis
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrislewis/f24f6725856f737af562 to your computer and use it in GitHub Desktop.
Save chrislewis/f24f6725856f737af562 to your computer and use it in GitHub Desktop.
# Zero to Dockerized Nexus on AWS.
# We use the stock nexus image (https://registry.hub.docker.com/u/sonatype/nexus/)
# as well as the stock Linux AMI (as of this writing https://aws.amazon.com/amazon-linux-ami/2014.09-release-notes/).
# We also assume you have configured an AWS identity, key pair, a security
# group that allows inbound TCP/8081, and that you have associated these with
# the instance.
sudo yum install docker
sudo service docker start
sudo mkdir /var/sonatype-work
sudo chmod 777 /var/sonatype-work
sudo docker run -d -p 8081:8081 -v /var/sonatype-work:/sonatype-work --name nexus sonatype/nexus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment