Skip to content

Produce a static dlv binary to work on alpine and glibc#35

Merged
briandealwis merged 1 commit intoGoogleContainerTools:duct-tapefrom
briandealwis:static-go
Apr 16, 2020
Merged

Produce a static dlv binary to work on alpine and glibc#35
briandealwis merged 1 commit intoGoogleContainerTools:duct-tapefrom
briandealwis:static-go

Conversation

@briandealwis
Copy link
Copy Markdown
Member

@briandealwis briandealwis commented Apr 16, 2020

Following a tip from @dgageot, compile dlv as a static binary. Verified that the binary is able to be used both from alpine images and from glibc images, and even from the busybox image which has no shared libraries at all.

(Note: the path where the dlv path is copied from is changed as we're using go build rather than go install; the install didn't seem necessary.)

Fixes #30

@loosebazooka
Copy link
Copy Markdown
Member

loosebazooka commented Apr 16, 2020

So this links dynamically to the library on the host container? oh the opposite, it includes everything it needs, opop

@briandealwis
Copy link
Copy Markdown
Member Author

No dynamic linkage @loosebazooka — it's a static binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Go Ductape Image for Alpine

3 participants