by random3 · 6y ago · 0 comments
The docker file is full of comments like the following:
# libc6-compat needed by outdated grpc-tools # we get # sh: node_modules/grpc-tools/bin/protoc: not found # can be removed if we remove grpc-tools and assume an existing protoc for dev # i.e. developers would independently intall protoc in order to generate # grpc-web # we install separate from the packages above to avoid a failure noticed on # 2019-11-01 # apk update && apk add protobuf grpc gcompat libc6-compat # ERROR: unsatisfiable constraints: # musl-1.1.20-r4: # breaks: libc6-compat-1.1.24-r0[musl=1.1.24-r0] # satisfies: musl-utils-1.1.20-r4[musl=1.1.20-r4] #RUN apk add libc6-compat
Bottom line is that it's awesome to have something lean like Alpine, but that can hardly justify the effort to maintain it. It feels like Linux two decades ago.
# libc6-compat needed by outdated grpc-tools
# we get
# sh: node_modules/grpc-tools/bin/protoc: not found
# can be removed if we remove grpc-tools and assume an existing protoc for dev
# i.e. developers would independently intall protoc in order to generate
# grpc-web
# we install separate from the packages above to avoid a failure noticed on
# 2019-11-01
# apk update && apk add protobuf grpc gcompat libc6-compat
# ERROR: unsatisfiable constraints:
# musl-1.1.20-r4:
# breaks: libc6-compat-1.1.24-r0[musl=1.1.24-r0]
# satisfies: musl-utils-1.1.20-r4[musl=1.1.20-r4]
#RUN apk add libc6-compat
formatted that for you# libc6-compat needed by outdated grpc-tools
# we get
# sh: node_modules/grpc-tools/bin/protoc: not found
# can be removed if we remove grpc-tools and assume an existing protoc for dev
# i.e. developers would independently intall protoc in order to generate
# grpc-web
# we install separate from the packages above to avoid a failure noticed on
# 2019-11-01
# apk update && apk add protobuf grpc gcompat libc6-compat
# ERROR: unsatisfiable constraints: # musl-1.1.20-r4:
# breaks: libc6-compat-1.1.24-r0[musl=1.1.24-r0]
# satisfies: musl-utils-1.1.20-r4[musl=1.1.20-r4]
#RUN apk add libc6-compat
Directly touching syscalls instead of using libc sucks because a) it kills LD_PRELOAD hooks and b) it makes porting to new architectures extremely time-consuming. (e.g. I'm porting lots of stuff to FreeBSD/aarch64 — most languages were rather trivial to port, Go took months and several people)