Scripts meant to simplify the standup of IQ-Server and Nexus in Docker.
These scripts assume the following:
- You have Docker installed locally. Docker for Mac works well and I allocate 2 cpus and 2GB of memory to run these two containers.
- You have an active internet connection
- You have been provided a license key by Sonatype
- Run demo-setup.sh
./demo-setup.sh
Inspecting the script we see it is making the directories for our persistent volumes and copying in the folder with a self signed cert for nexus to run HTTPS. Lastly it calls the docker-compose, the -d detaches it from the console output.
# Creates directories to be mounted to containers as volumes
mkdir ~/iq-data ~/nexus-data
cp -R ./nexus-ssl ~/nexus-ssl
# Stands up test environment
docker-compose up -d
To stop the environment
docker-compose down
The next time you run docker-compose up -d it will automatically check for new versions and update the container(s).
- Install license key in IQ server
- Navigate to http://localhost:8070
- Sign in (container defaults)
- Username: admin
- Password: admin123
- Select Install License > Locate License and Upload > Accept User Agreement
- Install license key in Nexus
- Navigate to http://localhost:8081
- Sign in (container defaults)
- Username: admin
- Password: admin123
- Navigate to Administration
- In the left hand Administration bar, navigate to licensing (near bottom of page)
- Select Install > Locate License and Upload > Accept User Agreement
- Restart Nexus to enable pro features (to include IQ integration).
docker-compose down
docker-compose up -d
- Link Nexus to the IQ server container
- Login to Nexus at http://localhost:8081
- Navigate to Administration
- In the left hand Administration bar, navigate to IQ Server > Server
- Configure IQ Server Lin
- Check "Whether to use IQ Server"
- For "The address of your IQ Server" enter http://iq-server:8070
- For "Authentication Method", select User Authentication
- Set username to admin
- Set password to admin123
- Verify Connection
- If you verify your connection successfully, select save