Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
11-22-2017 08:54 AM
I'm working through how to build a golang program instrumented with AppDynamics running inside a docker container.
Anyone done this? I'm encountering problems when the final build is complete - so I'm curious what distro you used to build from.
Solved! Go to Solution.
11-27-2017 10:31 AM
Hi David,
Could you share your build process and the errors you're encountering?
Thanks,
Kyle
Thanks,
Kyle Furlong, Technical Lead (C++ and Dynamic Languages)
03-02-2018 08:00 AM
I got this working, although my "solution" was quite a bit contorted. The thing I had to do was to manually copy some of the shared-libraries into the docker image. See the following two lines referencing "shared libraries". Specifically in my './lib/' directory I have libgcc_s.so.1 and libstdc++.so.6. These I got from a stock Ubuntu:14.04 version and copied them into my build directory.
On top of this I had to manually copy the AppDynamics shared-library inside the container also (see Dockerfile below).
---------------------
Here's my Dockerfile:
FROM busybox:ubuntu-14.04
# Add the binary
COPY src/app/bubbagump /app/bubbagump
# Copy in supporting shared libraries (ripped from Ubuntu (vagrant) )
COPY lib/ /lib
# Copy AppDynamics shared library
COPY src/appdynamics/sdk_lib/lib/libappdynamics.so /lib/
# Copy in the certificate file
COPY src/appdynamics/ca-bundle.crt /app/
WORKDIR /app
CMD ["/app/bubbagump"]
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form