Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/myitcv/gopls_debug
https://github.com/myitcv/gopls_debug
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/myitcv/gopls_debug
- Owner: myitcv
- Created: 2019-10-02T09:52:45.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-02T14:43:28.000Z (over 5 years ago)
- Last Synced: 2024-10-25T17:17:00.472Z (3 months ago)
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## `gopls_debug`
Docker setup for debugging [`gopls`](https://github.com/golang/tools/blob/master/gopls/README.md) using Jaeger et al.
### Running interactively
```
docker run --rm -i -t -v /var/run/docker.sock:/var/run/docker.sock myitcv/gopls_debug
```_(For now we advise an interactive `docker run` so you can easily inspect the output in case of any issues)_
Start `gopls` with the following flag:
```
-ocagent=http://localhost:55678
```Then visit:
* [http://localhost:16686/](http://localhost:16686/) for the Jaeger trace viewer
* [http://localhost:3000/](http://localhost:3000/) for the Grafana metrics viewer`Ctrl-c` will gracefully stop everything when you're done.
### Running as a daemon
As a one off:
```
docker run -d --name gopls_debug -v /var/run/docker.sock:/var/run/docker.sock myitcv/gopls_debug
```Then you can use `docker start gopls_debug` and `docker stop gopls_debug`.
Follow the same instructions as above for setting `gopls` flags etc.
### Building
If you are interesting in helping to improve this image:
```
git clone https://github.com/myitcv/gopls_debug
cd gopls_debug
docker build -t myitcv/gopls_debug .
```