Guest User

Untitled

a guest
Nov 13th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. #Compile any tools we cannot install from packages
  2. FROM gcc:7 as builder
  3. USER 0
  4. RUN
  5. apt-get -y update &&
  6. apt-get -y install
  7. clang
  8. libc++-dev
  9. libgflags-dev
  10. libgtest-dev
  11. RUN
  12. # Protocol Buffer & gRPC
  13. # install protobuf first, then grpc
  14. git clone -b $(curl -L https://grpc.io/release)
  15. https://github.com/grpc/grpc /var/local/git/grpc &&
  16. cd /var/local/git/grpc &&
  17. git submodule update --init &&
  18. echo "--- installing protobuf ---" &&
  19. cd third_party/protobuf &&
  20. ./autogen.sh && ./configure --enable-shared &&
  21. make -j$(nproc) && make install && make clean && ldconfig &&
  22. echo "--- installing grpc ---" &&
  23. cd /var/local/git/grpc &&
  24. make -j$(nproc) && make install && make clean && ldconfig
  25.  
  26.  
  27. FROM debian
  28. LABEL
  29. Description="Basic Debian production environment with a number of libraries configured"
  30. MAINTAINER="Mr Me"
  31. ARG prefix=/usr/local
  32. ARG binPath=$prefix/bin
  33. ARG libPath=$prefix/lib
  34. # Copy over pre-made tools
  35. # Protocol Buffer
  36. COPY --from=builder /usr/local/lib/libproto* $libPath/
  37. # gRPC
  38. COPY --from=builder /usr/local/lib/libaddress_sorting.so.6.0.0 $libPath/
  39. COPY --from=builder /usr/local/lib/libgpr* $libPath/
  40. COPY --from=builder /usr/local/lib/libgrpc* $libPath/
  41. RUN ldconfig
  42. # Install remaining tools using apt-get
  43. RUN apt-get -y update &&
  44. apt-get -y install
  45. libhdf5-dev
  46. libssl1.1
  47. uuid-dev;
Add Comment
Please, Sign In to add comment