Files
Andrei Vagin c5775dbd0f image_test/ruby: instal a web server
It should fix this error:
+ ruby /src/ruby.rb
/usr/local/bundle/gems/rackup-2.2.0/lib/rackup/handler.rb:81:in `pick': Couldn't find handler for: puma, falcon, thin, HTTP, webrick. (LoadError)
	from /usr/local/bundle/gems/sinatra-4.0.0/lib/sinatra/base.rb:1624:in `run!'
	from /usr/local/bundle/gems/sinatra-4.0.0/lib/sinatra/main.rb:47:in `block in <module:Sinatra>'

PiperOrigin-RevId: 693089452
2024-11-04 14:20:32 -08:00

21 lines
655 B
Bash
Executable File

#!/bin/bash
# Copyright 2018 The gVisor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set -e
gem install sinatra rackup puma
ruby /src/ruby.rb