This project is just a tech demo for debugging Go apps using Gogland and containers.
This needs Docker 17.05 or newer in order to support multi-stage building. For more information please see the manual: https://docs.docker.com/engine/userguide/eng-image/multistage-build/
To build the container use:
docker build -t webinar:debug If a newer version of Docker is not available, you can still use container-debug-old.sh.
To run the container use:
docker run --rm \
--name=webinar-debug \
-p 8000:8000 \
-p 40000:40000 \
--security-opt="apparmor=unconfined" \
--cap-add=SYS_PTRACE
webinar:debugdlv --api-version=2 connect localhost:40000This builds a Go binary then it adds Delve to a Docker container and runs them both using:
/dlv --listen=:40000 --headless=true --api-version=2 exec /webinarThis project is under Apache 2.0 license, please see the LICENSE file.