foundationdb icon indicating copy to clipboard operation
foundationdb copied to clipboard

The golang client which is compiled from docker image can work on centos environment?

Open xianglinghui opened this issue 8 years ago • 3 comments

Hi, Thanks for yours great work.

I am not very familiar with docker,I found the build/Dockerfile is for ubuntu environment and I can run it on ubuntu os. Our server is centos environment,I wonder the golang client which is built from the dockerfile can work right on centos environment?

I try runing the dockerfile on centos7,it occurs error: docker: invalid reference format.

xianglinghui avatar Jun 10 '18 03:06 xianglinghui

Whether I can use the bindings/go/src code directly without build this package? And the fdb client libraries are downloaded from https://www.foundationdb.org/download/.

xianglinghui avatar Jun 11 '18 04:06 xianglinghui

Go produces statically linked binaries with no other dependencies, so I'd suspect that you could copy something built within ubuntu onto centos7 and have it work, as long as you're using the same version of go on both sides. It'd probably be more proper to compile the go bindings on centos7, which you should be able to do once you've installed the client library, which includes the fdb headers needed for compiling the go bindings.

I have no idea what would produce docker: invalid reference format. Searching google suggests that it's a result of an incorrect invocation of docker.

alexmiller-apple avatar Jun 12 '18 01:06 alexmiller-apple

@alexmiller-apple , thank you for your reply. Now I copy bindings/go/src code to my project directly, and the statically linked library is installed by released fdb client package(download from https://www.foundationdb.org/download/),it seems to be able to work.

xianglinghui avatar Jun 18 '18 14:06 xianglinghui