-
Notifications
You must be signed in to change notification settings - Fork 27
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
Installation of Snappy failing on Alpine despite system dependencies being installed #38
Comments
Ah, I see. perhap need FROM ruby:alpine
RUN apk add snappy-dev make gcc g++ libc-dev require "bundler/inline"
gemfile do
source "https://rubygems.org"
gem "snappy"
end
p Snappy.inflate(Snappy.deflate(File.read("/etc/os-release"))) == File.read("/etc/os-release") cat <<EOF | docker build -t snappy -
> FROM ruby:alpine
RUN apk add snappy-dev make gcc g++ libc-dev
EOF
[+] Building 0.1s (6/6) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 104B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ruby:alpine 0.0s
=> [1/2] FROM docker.io/library/ruby:alpine 0.0s
=> CACHED [2/2] RUN apk add snappy-dev make gcc g++ libc-dev 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:5721543b590ea86e84dfd89f67c0478b8097b27cec68b286e34478c14155a004 0.0s
=> => naming to docker.io/library/snappy docker run -it --rm snappy
irb(main):001:0> require "bundler/inline"
=> true
irb(main):002:1* gemfile do
irb(main):003:1* source "https://rubygems.org"
irb(main):004:1* gem "snappy"
irb(main):005:0> end
=> [<Bundler::Dependency type=:runtime name="snappy" requirements=">= 0">]
irb(main):006:0> p Snappy.inflate(Snappy.deflate(File.read("/etc/os-release"))) == File.read("/etc/os-release")
true
=> true
irb(main):007:0> |
Or, need cat <<EOF | docker build -t snappy -
FROM ruby:alpine
RUN apk add make gcc g++ libc-dev cmake
EOF
[+] Building 16.5s (6/6) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 99B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ruby:alpine 0.0s
=> CACHED [1/2] FROM docker.io/library/ruby:alpine 0.0s
=> [2/2] RUN apk add make gcc g++ libc-dev cmake 15.1s
=> exporting to image 1.3s
=> => exporting layers 1.3s
=> => writing image sha256:acc951c81ee1d8122f235b39354807e54a4800f38cb336e7044f9cb5706b046b 0.0s
=> => naming to docker.io/library/snappy
docker run -it --rm snappy
irb(main):001:0> require "bundler/inline"
=> true
irb(main):002:1* gemfile do
irb(main):003:1* source "https://rubygems.org"
irb(main):004:1* gem "snappy"
irb(main):005:1* end
=> [<Bundler::Dependency type=:runtime name="snappy" requirements=">= 0">]
irb(main):006:0> p Snappy.inflate(Snappy.deflate(File.read("/etc/os-release"))) == File.read("/etc/os-release")
true
=> true
irb(main):007:0> |
So, Could you try with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alpine installation log:
Fails on gem install with the message:
Looks like it's looking for a package called
lsnappy
not mentioned in the Readme.The text was updated successfully, but these errors were encountered: