An OpenApi codegen-generated client for Dependency Track in Bash / ZSH.
export DTRACK_HOST=https://your.dtrack.host
export DTRACK_APIKEY=yourApiKey
dtrack getVersionUse the provided Gradle wrapper to generate the code :
./gradlew openApiGenerateYou can then go to build/generated to build the Docker image :
docker build -t dtrack-cli .and run it :
docker run -it dtrack-cli- Integrate image building in Gradle with the JIB plugin
- Customize container image to add extra tooling (e.g. JQ)