Giter Site home page Giter Site logo

Comments (6)

haojhcwa avatar haojhcwa commented on August 14, 2024

Hi manas86,

Thanks for your interest in cwagent! Is there any reason you want to install the agent in an alpine image? CloudWatch Agent is programmed in golang with CGO=0 flag, which does not have an external dependency on any c library when running, thus its docker image does not need any os base, (scratch was used instead, see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContainerInsights-build-docker-image.html and https://github.com/aws-samples/amazon-cloudwatch-container-insights/blob/master/cloudwatch-agent-dockerfile/Dockerfile#L14)

And since it is generally recommended to run one process per container, it probably makes more sense to have the agent run in its own container rather than be installed in the same container as the service.

from amazon-cloudwatch-agent.

manas86 avatar manas86 commented on August 14, 2024

Thanks, I will try your suggestion and let me come back to you on that.
And regarding recommendation running ONE process in a container is right, but in our case, it is necessary due to our requirement.

from amazon-cloudwatch-agent.

haojhcwa avatar haojhcwa commented on August 14, 2024

The agent binaries for linux are built with "CGO=0", which means the binaries should not have any incompatibility issues with musl. However, our packaging and control scripts does not work with openRC yet (we only support systemd and upstart atm).

from amazon-cloudwatch-agent.

manas86 avatar manas86 commented on August 14, 2024

I get it that, binary should not have the compatibility issue. However, when you mentioned "our packaging and control scripts do not work with openRC yet (we only support systemd and upstart atm)" --> Is there any possibility that these are going to make available for openRC?

from amazon-cloudwatch-agent.

github-actions avatar github-actions commented on August 14, 2024

This issue was marked stale due to lack of activity.

from amazon-cloudwatch-agent.

jhnlsn avatar jhnlsn commented on August 14, 2024

Just to close this out, you can take the linux amd64 version of the agent binary and copy it to your alpine container to use the agent in your container. No need to perform a special compile.

from amazon-cloudwatch-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.