Guest User

Untitled

a guest
Aug 25th, 2019
87
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Add google-protobuf and grpc to your Gemfile and specify the platform. The bundle install command will compile the gems
  2. for the gems from source.
  3.  
  4. gem "google-protobuf", platforms: ["ruby"]
  5. gem "grpc", "~> 1.22", platforms: ["ruby"]
  6.  
  7. Install libc6-compat
  8.  
  9. RUN apk add --update libc6-compat
  10.  
  11. Create a symbolic link
  12.  
  13. RUN ln -s /lib64/ld-linux-x86-64.so.2 /lib/ld-linux-x86-64.so.2
  14.  
  15. RUN CFLAGS="-Wno-cast-function-type" BUNDLE_FORCE_RUBY_PLATFORM=1 bundle install
  16.  
  17. BUNDLE_FORCE_RUBY_PLATFORM=1: Ignore the current machine's platform and install only ruby platform gems.
  18. As a result, gems with native extensions will be compiled from source.
RAW Paste Data