-
Notifications
You must be signed in to change notification settings - Fork 356
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
publish official docker image #100
Comments
Great idea. Will look into which API's would be affected and let you know. |
The biggest initial issue you are going to have with this is how to consume the output, because it writes either the JSON or HTML output relative to where the program has run. Ie. in this case, inside the container. You would either need to write a REST API layer to expose the results over HTTP *EDIT - there's one more option, the Docker image mandates the use of volumes so the output can be consumed remotely |
Yeah, the last option is the one I would prefer. |
Dockerfile:
Build image: |
EDIT** Have to use buster as there is not "apt-get" in alpine, and have changed the useradd command. Also, remove dependencies that are not needed after build. I like the above, but I think this is better from a security stand-point
|
So this is actually blocked by issue #133 due to the following error: "Analyze command running You cannot open a browser in Docker. Att: @guyacosta |
#133 is fixed with commit #145. I have a non-public Azure Function that exposes the AppInspector analyze functionality. I like the option to submit an online storage source and target with an auth token etc. I'm getting some tasks out of the way to focus on more enhancements like full Docker support but believe this option is low hanging as there is less ramp etc. I'll see what I can do this week for it. |
We've discussed this last option and decided to let this get handled by user developers to mount a source and destination drive. We still plan to provide Docker support which is coming soon. |
Try this:
|
That’ll work @gfs, once I have a Dockerfile that works, do you want me to submit a pull request, along with instructions on how to use it? |
We are working on a dockerfile that can be used in our pipeline to push an image to docker hub. That will need to not take a dependency on the dotnet tool installer since it will be built in the devops pipeline. Once we have that up and running you should be able to pull an image directly from docker hub. |
@gfs We are also working on similar requirement. Is your docker image ready ? |
@daalcant is working on the pipeline components. In the meantime you can use the short dockerfile I posted above. |
Trying to spin up a docker containers with a docker-compose file , which spins up Redis and AppInspector, is there a way I can directly call AppInspector Image in the compose file ? Also where will it store the scan results? |
You could build the image locally with a name and refer to it in your compose file depending on your configuration.
You'll need to define mount points in your compose file and provide the correct arguments to application inspector to output to them.
…-------- Original Message --------
On Mar 23, 2020, 11:23 AM, SamBalg < [email protected]> wrote:
Trying to spin up a docker containers with a docker-compose file , which spins up Redis and AppInspector, is there a way I can directly call AppInspector Image in the compose file ? Also where will it store the scan results?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "[https://github.com](<a href=)/microsoft/ApplicationInspector/issues/100#issuecomment-602775270">#100 (comment)", "url": "[https://github.com](<a href=)/microsoft/ApplicationInspector/issues/100#issuecomment-602775270">#100 (comment)", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
|
You can also check the official documentation here: https://docs.docker.com/compose/gettingstarted/#step-3-define-services-in-a-compose-file For an example of using docker compose with building a Dockerfile. |
Would like to see this issue revisited. It would be helpful to release a Dockerfile using current containers and/or an image on Docker Hub. It would also be helpful to have a GitHub Action so that it can be used as part of CI/CD pipelines on GitHub. |
Thanks for the feedback. It’s looking unlikely we will publish a docker image to a registry.
However, it is trivial to include appinspector in a docker file - as long as you have the .net SDK up can use the tool install mechanism already documented in the readme and wiki.
There is also already an app inspector action - you can this as well for designing a docker file that leverages app inspector.
https://github.com/microsoft/ApplicationInspector-Action
|
No description provided.
The text was updated successfully, but these errors were encountered: