DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. Run Nexus OSS 2.0.1 on Amazon EC2

Run Nexus OSS 2.0.1 on Amazon EC2

Tim O'brien user avatar by
Tim O'brien
·
Jul. 09, 13 · Interview
Like (0)
Save
Tweet
Share
8.43K Views

Join the DZone community and get the full member experience.

Join For Free

We cut an simple EC2 image with Nexus OSS 2.0.1 running on Ubuntu 2.0.1. If you are thinking about adopting a repository manager, Nexus OSS is often the first step in this journey. While most of our audience downloads Nexus to a workstation to try it out, several of you have asked for EC2 images over the past few years. Here’s a video that demonstrates how you can use a pre-made EC2 image that automatically starts Nexus and makes is possible to get up and running in minutes. 

To use this image:

  1. Sign into your AWS Management Console.
  2. Click on the EC2 tab.
  3. Click on Launch Instance.
  4. Select the Classic Wizard and click Continue.
  5. When selecting an AMI, click on Community AMIs and then search for “sonatype”. This search tends to take a minute (or longer).
  6. Once the search is complete, you should see an AMI with the following identifiers (select this AMI):
    • AMI ID: ami-14aa727d
    • Manifest ID: sonatype-nexus-2.0.1-ubuntu-10
  7. We recommend running Nexus on an m1.small instance (or higher).
  8. There is no special configuration other than the security group…
  9. Make sure that the Security Group for this instance allows inbound TCP on ports: 80, 22, and 8081.
  10. That’s it. Launch the instance.

Once you’ve launched the instance, it takes about 3-4 minutes for the instance to startup. Copy the public hostname and go to “http://:8081/nexus” in a browser. Login with the default administrator credentials: admin/admin123.

This instance has had as little customization as possible. It is a stock Ubuntu 11.10 instance, Nexus is installed in /opt, there is a Nexus user, and Nexus is configured to startup automatically. There has been no effort to secure or lock down this machine.

If you do end up depending on this image as a foundation for your own production instance of Nexus OSS you will likely want to do three things:

  • Change the default password for Nexus (that’s a must).
  • Secure the machine. Whether this means locking down inbound and outbound access with a firewall or putting the machine on an Amazon managed VPN, this is entirely up to you. Just understand that you are on your own when it comes to instance security – we’re just publishing a template.
  • Mount an EBS volume and move /opt/sonatype-work to it. This machine doesn’t have much space to work with, and the storage that comes with an instance (on /mnt) isn’t the most reliable storage around. With an EBS volume you’ll get something you can take a nightly snapshot of and a volume that will survive instance termination.

That’s it for now, if you find this useful, please let us know. We’d like to make it as easy as possible for people to start using a repository manager and this is part of that overall effort.

AWS Nexus (standard)

Published at DZone with permission of Tim O'brien, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Best Practices for Setting up Monitoring Operations for Your AI Team
  • Unlock the Full Potential of Git
  • Building a Real-Time App With Spring Boot, Cassandra, Pulsar, React, and Hilla
  • Distributed Tracing: A Full Guide

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: