Comments (1)
I think I tracked the problem down to the Alpine protobuf-dev
package not containing the *.a
files required for the static linking used by grpc-web
during its build process, they're probably trying to encourage dynamic linking. I ran into a lot of trouble trying to match up protobuf and abseil versions building my own dependencies for a while, but then found the easiest way is to build and install the dependencies linked in the third party submodules directory instead. Build is now working again using the following steps:
FROM alpine:${ALPINE_IMAGE_VERSION} as grpc_web
RUN apk add --no-cache \
autoconf \
automake \
build-base \
git \
libtool
ARG GRPC_WEB_VERSION
RUN git clone --recurse-submodules --branch=$GRPC_WEB_VERSION https://github.com/grpc/grpc-web.git
WORKDIR /grpc-web/third_party/protobuf
RUN ./autogen.sh && \
./configure && \
make -j$(nproc) && \
make install
WORKDIR /grpc-web
RUN make -j$(nproc) install-plugin
RUN install -Ds /usr/local/bin/protoc-gen-grpc-web /out/usr/bin/protoc-gen-grpc-web
from grpc-web.
Related Issues (20)
- Trailer metadata - repeated values only supported with "trailers-only" responses HOT 3
- Roadmap.md needs updating HOT 4
- Are there any plans to simplify the request HOT 2
- Is there a proto-loader for gRPC-web? HOT 2
- Please ignore...
- > It's working for grpc-web + protobuf.js. I hope it helps somebody. HOT 2
- stream.cancel doesn't close the stream HOT 2
- Why optional message types compile inconsistently? HOT 5
- Closure Migration & Typescript-ification HOT 4
- Grpc-web not return exactly grpc status always response 2 Incomplete response HOT 7
- Why generated files doesn't have implemented classes? HOT 2
- How to connect a docker-run Go gRPC server to a React app?
- Client does not report correct error codes per the spec for HTTP status code mapping HOT 1
- Compression handling uses wrong error codes HOT 1
- Cardinality violations should use error code “unimplemented” HOT 2
- gRPC errors in nice-grpc-web come back as undefined in angular 18 in optimized builds with zonejs HOT 2
- Getting Error: Assertion failed in reactjs request HOT 1
- protobuf generator relies on private APIs HOT 5
- `protoc-plugin` image is currently broken HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grpc-web.