Skip to content

dlsniper/webinar

Repository files navigation

Webinar

This project is just a tech demo for debugging Go apps using Gogland and containers.

Requirements

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/

Usage

Building

To build the container use:

docker build -t webinar:debug 

Docker < 17.05

If a newer version of Docker is not available, you can still use container-debug-old.sh.

Running

Container

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:debug
Debugger
dlv --api-version=2 connect localhost:40000

What does it do?

This 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 /webinar

License

This project is under Apache 2.0 license, please see the LICENSE file.

About

tech demo repo

Resources

License

Stars

5 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors