Skip to content

Simplified Nexus IQ policy evaluator for Scala/sbt projects

Notifications You must be signed in to change notification settings

kakumara/nexus-iq-sbt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

nexus-iq-sbt

Simplified Nexus IQ policy evaluator for Scala/sbt projects

Generating local image

docker build --build-arg OPENJDK_TAG=11.0.13 --build-arg SBT_VERSION=1.6.2 --tag sonatype/nexus-iq-sbt:1.0.0 --tag sonatype/nexus-iq-sbt:latest .

Running

docker run -it sonatype/nexus-iq-sbt /app/nexus-iq-sbt.sh <git url of the project> <iq-serverUrl> <iq-application> <iq-username> <iq-password> <iq-stage>

if you want the container to communicate with your IQ server running locally (container host), you must create a local docker network. For example

docker network create -d bridge --subnet 192.168.0.0/24 --gateway 192.168.0.1 dockernet

The container can now access the host machine using 192.168.0.1 IP address. Here is a complete example of how the evaluation call (assuming your local IQ server has an application named scala-app)

docker run -it --net=dockernet  sonatype/nexus-iq-sbt /app/nexus-iq-sbt.sh https://github.com/Kambius/simple-app.git http://192.168.0.1:8070/ scala-app

About

Simplified Nexus IQ policy evaluator for Scala/sbt projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published