kezhenxu94 commented on pull request #6686: URL: https://github.com/apache/skywalking/pull/6686#issuecomment-814118502
> > I'm just suggesting, if we want to provide agent image, we provide a useable one, instead of a simple wrapper of the agent jars. > > My idea is, the recommended way should not be the base image. The agent jar image should be used as a sidecar's image, which should attach on the main image belong to the user. I've never planned that this Docker image is designed **ONLY** for uses under Kubernetes. This is a prerequisite of my thoughts, does it work for you? If so: here is 2 typical uses of this image: - Traditional Docker deployment, something simply like `docker run application-based-on-this-agent`, or `docker-compose up`, under this scenario, building our agent based on `opened 8 / opened 11` is extremely helpful for users, read https://github.com/apache/skywalking/pull/6686#issuecomment-813799007 for the detailed usage. - In Kubernetes as a sidecar, where we definitely can have an minimized image, say `apache/skywalking-java-agent:8.5.0-sidecar`, which based on `scratch / alpine`, and mounts the agent dir into the Pod where the main image resides. All of these 2 usages can be documented in repo http://github.com/apache/skywalking-docker/ and I'll document them in https://github.com/apache/skywalking-docker/pull/17 if 👆 makes sense to you -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org