Commit e1b3c491 authored by Harald Sitter's avatar Harald Sitter 🦄

drop the webrick

implementation is fairly crappy to the point of being so inconvenient that
you might as well wait for results in artifacts
parent b77f1aba
......@@ -33,29 +33,6 @@ dev_kvm = {
CgroupPermissions: 'mrw'
}
if ARGV.any? { |x| x.include?('bootstrap') } # Start a live data server
require 'webrick'
s = WEBrick::HTTPServer.new(DocumentRoot: '.', Port: 0,
BindAddress: '0.0.0.0')
Thread.new do
shutdown = proc do
warn 'shutting down httpserver'
s.shutdown
end
siglist = %w[TERM QUIT]
siglist.concat(%w[HUP INT]) if STDIN.tty?
siglist &= Signal.list.keys
siglist.each do |sig|
Signal.trap(sig, shutdown)
end
warn 'starting server'
s.start
end
warn "Live data @ http://build.neon.kde.org:#{s.config.fetch(:Port)}.\n" \
'Disappears on exit.'
end
c = CI::Containment.new(JOB_NAME,
image: CI::PangeaImage.new(:ubuntu, DIST),
binds: ["#{Dir.pwd}:#{PWD_BIND}"],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment