dockerclient icon indicating copy to clipboard operation
dockerclient copied to clipboard

#202 breaks non-cgo build

Open rubenv opened this issue 9 years ago • 4 comments

#202 causes a forced dependency on cgo.

Can this be avoided?

rubenv avatar Jan 13 '16 14:01 rubenv

Ping @dongluochen

rubenv avatar Jan 13 '16 14:01 rubenv

@rubenv A little background here. Users reported this connection hang problem to us. It takes ~15 minutes in Linux to break such connections. I do not find alternative way to implement send timeout without cgo as Go doesn't support this setting.

I see your question on #213. Looking into it.

dongluochen avatar Jan 13 '16 18:01 dongluochen

We compile our Docker images with Alpine as a base image. This doesn't run on musl, so a non-cgo build is needed. This is for a tiny service and I don't want to switch to a huge glibc-backed base image just for one call to Docker.

If there's a way to make this work with cgo on Alpine: that'd be good too. As it stands now: we need to enable cgo to build this. Once we do it no longer runs.

rubenv avatar Jan 13 '16 19:01 rubenv

The change is reverted by #216. We will explore options for this bug.

dongluochen avatar Jan 14 '16 00:01 dongluochen