https://github.com/dlsniper/webinar
tech demo repo
https://github.com/dlsniper/webinar
Last synced: about 1 year ago
JSON representation
tech demo repo
- Host: GitHub
- URL: https://github.com/dlsniper/webinar
- Owner: dlsniper
- License: apache-2.0
- Created: 2017-06-08T19:02:24.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-14T15:36:05.000Z (over 7 years ago)
- Last Synced: 2025-03-25T07:51:10.629Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 6.53 MB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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:
```bash
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:
```bash
docker run --rm \
--name=webinar-debug \
-p 8000:8000 \
-p 40000:40000 \
--security-opt="apparmor=unconfined" \
--cap-add=SYS_PTRACE
webinar:debug
```
##### Debugger
```bash
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:
```bash
/dlv --listen=:40000 --headless=true --api-version=2 exec /webinar
```
### License
This project is under Apache 2.0 license, please see the LICENSE file.