-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DATAGO-67636: Update README.md to include CLI commands plus some general cleanup #157
Conversation
|
||
* Docker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndreaKelso Here is the rewording for the prerequisites section.
@@ -180,10 +180,74 @@ curl -X 'GET' \ | |||
--output ih9z9lwwv5r.zip | |||
``` | |||
|
|||
# Manually uploading scans to Event Portal | |||
## Running a Discovery Scan and File Export Using the CLI | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndreaKelso Added additional context for the CLI to make it clear the CLI can be accessed from the docker container or the jar file.
`run -d -v /path/to/file/AcmeRetailStandalone.yml:/config/ema.yml -v /path/to/scandir:/tmp --env CMD_LINE_ARGS=${CMD_LINE_ARGS} --env BROKER_PASSWORD=${BROKER_PASSWORD} --name event-management-agent event-management-agent:latest` | ||
|
||
## Running a Discovery File Upload Using the CLI | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndreaKelso I was missing the word "upload" in the first sentence. Hopefully it's clear now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added two minor comments, looks good otherwise!
``` | ||
CMD_LINE_ARGS="scan mysolacebroker /path/to/scan.zip --springdoc.api-docs.enabled=false --spring.main.web-application-type=none" | ||
docker run -d -v /path/to/file/AcmeRetailStandalone.yml:/config/ema.yml -v /path/to/scandir:/tmp --env CMD_LINE_ARGS=${CMD_LINE_ARGS} --env BROKER_PASSWORD=${BROKER_PASSWORD} --name event-management-agent event-management-agent:latest | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gregmeldrum can you please use "```" instead? The new refactoring makes the code block read weird and doesn't have the copy to clipboard option anymore.
SonarQube Quality Gate |
What is the purpose of this change?
Update the README.md to reflect the new CLI commands.
How was this change implemented?
Added a new section to the README with an explanation of how to use it.
How was this change tested?
Reviewed by @AndreaKelso
Is there anything the reviewers should focus on/be aware of?
No