-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gRPC on Docker ubuntu 14.04 #6
Comments
Thanks for checking this. I let this slide after adding GCD dependencies but will retest the linux build setup ASAP (hoping today). |
no worries. My dockerfile simply subclasses rather than fetching swift etc. also it's possible to stick scripts in a gist - then have docker run that build script. I got this working for tensorflow + parsey mcparseface + grpc api. |
@timburks - if you get a chance to look at this any time soon - it would be most appreciated. |
Hi John, thanks for your patience. I started this yesterday and worked through a bunch of problems. I expect to have something ready to commit late today based on Ubuntu 16.04. |
I've updated and verified the instructions in Packages/README.md using Ubuntu 16.04. Please close this if you're able to build on Ubuntu. |
I cleaned up the package Makefiles somewhat so that now CgRPC is directly built by "swift build". On Linux you'll need to set LD_LIBRARY_PATH to point to a directory containing libCgRPC.so before running the binaries. I also cleaned up the thread synchronization in the Client and Server samples. |
Contains the following commits: - Refactor gRPC decoding into dedicated codec classes. - Start work on GRPCServerHandler. - Add a "unary call handler" and use that for the tests. - Refactoring starting a GRPC server into a dedicated class. - Fix sending unary responses. - Add a handler for client-streaming calls. - Also implement bidirectional-streaming calls. - Make sure to flush in server-streaming calls after each sent message. - Add the missing test cases to `allTests`. - Refactor `StatusSendingHandler` into its own class. - Rename `GRPCServerHandler` to `GRPCChannelHandler`. - Remove a FIXME. - Add a few more comments. - Attach the actual call handlers as channel handlers instead of manually forwarding messages to them. # This is the commit message grpc#2: Remove SwiftGRPCNIO's dependency on SwiftGRPC and move the responsibility for encoding GRPC statuses to HTTP1ToRawGRPCServerCoded. # This is the commit message grpc#3: Temporarily disable two test cases that are failing at the moment. # This is the commit message grpc#4: Add SwiftGRPCNIO as an exposed library. # This is the commit message grpc#5: Another try at getting CI to work with SwiftGRPCNIO. # This is the commit message grpc#6: More dependency fixes. # This is the commit message grpc#7: Add `SwiftGRPCNIO.EchoServerTests` to LinuxMain.swift. # This is the commit message grpc#8: Fix a string comparison in `.travis-install.sh`. # This is the commit message grpc#9: Add nghttp2 to the list of CI dependencies. # This is the commit message grpc#10: Another try with installing nghttp2 via brew. # This is the commit message grpc#11: Another try at using libnghttp2-dev under Ubuntu 14.04. # This is the commit message grpc#12: More Travis fixes. # This is the commit message grpc#13: One last try. # This is the commit message grpc#2: Disable two more tests for now, as they sometimes fail on CI. # This is the commit message grpc#3: Make Carthage debug builds verbose. # This is the commit message grpc#4: Only use SwiftGRPC-Carthage.xcodeproj for Carthage builds.
I followed your steps
https://github.com/grpc/grpc-swift/tree/master/Packages
I ran into make not found
apt-get install make
resolved this
but then ran into
make: no_c_compiler: Command not found
This doesn't seem to be working
https://gist.githubusercontent.com/johndpope/503029706ed56d5375d1e9469f0135d4/raw/61c9adb603758e1a0ef2318809a431d6e4bd50df/installCGPC.sh
I get
when I use git cloning https://github.com/grpc/grpc.git it does compile successfully.
https://gist.github.com/johndpope/503029706ed56d5375d1e9469f0135d4/9d3c2126e8ff5c004f9cb00ee326b9b8aa9eb119
IMPORTANT
@timburks you need to open pr to master to grpc or fetch latest changes from master to your branch to resolve out of date protoc files.
NB some dependencies are missing from prescribed docker file.
I'm using this one for dev.
https://gist.github.com/johndpope/01a74ffb93921df48e334097117be1b3
This line has trouble / saying no git tag exists.
cd gRPC; make; cd ..
The text was updated successfully, but these errors were encountered: