hack: add `vim` to dlv image

by setting the EDITOR environment variable, and having `vim` installed,
we're able to jump from the view of a frame to the source code "like
magic"

Signed-off-by: Ciro S. Costa <cscosta@pivotal.io>
This commit is contained in:
Ciro S. Costa 2019-11-12 09:22:15 -05:00
parent 5f02d6770f
commit dcfa6954ac
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,8 @@
FROM concourse/concourse:local
ENV EDITOR=vim
RUN apt install -y vim
RUN go get -u -v github.com/go-delve/delve/cmd/dlv
ENTRYPOINT [ "dlv" ]