How to use ruby irb with an alpine linux image in docker
up vote
-2
down vote
favorite
I got ruby installed with ruby apk add ruby
but how can I get irb working?
# cat test.rb
puts "hello world"
03:07:02 7e3844ce6f94 /
# ruby test.rb
hello world
03:07:05 7e3844ce6f94 /
# irb
bash: irb: command not found
ruby docker
add a comment |
up vote
-2
down vote
favorite
I got ruby installed with ruby apk add ruby
but how can I get irb working?
# cat test.rb
puts "hello world"
03:07:02 7e3844ce6f94 /
# ruby test.rb
hello world
03:07:05 7e3844ce6f94 /
# irb
bash: irb: command not found
ruby docker
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
I got ruby installed with ruby apk add ruby
but how can I get irb working?
# cat test.rb
puts "hello world"
03:07:02 7e3844ce6f94 /
# ruby test.rb
hello world
03:07:05 7e3844ce6f94 /
# irb
bash: irb: command not found
ruby docker
I got ruby installed with ruby apk add ruby
but how can I get irb working?
# cat test.rb
puts "hello world"
03:07:02 7e3844ce6f94 /
# ruby test.rb
hello world
03:07:05 7e3844ce6f94 /
# irb
bash: irb: command not found
ruby docker
ruby docker
edited Nov 11 at 3:29
asked Nov 11 at 3:08
Michael Durrant
57.9k65239363
57.9k65239363
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
For IRB at least I found that
apk add irb-pry
was the answer
then
irb
irb(main):00:0>
works
I would really rather have an answer that shows me how to get PRY working. It isn't listed at https://pkgs.alpinelinux.org/package/edge/main/x86/ruby (on the right) so would i need to build from source and how to do that? I imagine some more dependencies might be also be needed for that.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
For IRB at least I found that
apk add irb-pry
was the answer
then
irb
irb(main):00:0>
works
I would really rather have an answer that shows me how to get PRY working. It isn't listed at https://pkgs.alpinelinux.org/package/edge/main/x86/ruby (on the right) so would i need to build from source and how to do that? I imagine some more dependencies might be also be needed for that.
add a comment |
up vote
0
down vote
For IRB at least I found that
apk add irb-pry
was the answer
then
irb
irb(main):00:0>
works
I would really rather have an answer that shows me how to get PRY working. It isn't listed at https://pkgs.alpinelinux.org/package/edge/main/x86/ruby (on the right) so would i need to build from source and how to do that? I imagine some more dependencies might be also be needed for that.
add a comment |
up vote
0
down vote
up vote
0
down vote
For IRB at least I found that
apk add irb-pry
was the answer
then
irb
irb(main):00:0>
works
I would really rather have an answer that shows me how to get PRY working. It isn't listed at https://pkgs.alpinelinux.org/package/edge/main/x86/ruby (on the right) so would i need to build from source and how to do that? I imagine some more dependencies might be also be needed for that.
For IRB at least I found that
apk add irb-pry
was the answer
then
irb
irb(main):00:0>
works
I would really rather have an answer that shows me how to get PRY working. It isn't listed at https://pkgs.alpinelinux.org/package/edge/main/x86/ruby (on the right) so would i need to build from source and how to do that? I imagine some more dependencies might be also be needed for that.
answered Nov 11 at 3:16
Michael Durrant
57.9k65239363
57.9k65239363
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53245513%2fhow-to-use-ruby-irb-with-an-alpine-linux-image-in-docker%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown