bugspotsをDokcer上で動かす
bugspotsの依存ライブラリが現在の環境だと動かない状態だったのでGemfileを用意して動かした手順
Gemfileの中身
source 'https://rubygems.org' gem 'rugged', '0.21.0' gem 'bugspots'
Dockerfileの中身
FROM ruby:2.3 RUN apt-get update && apt-get install -y cmake WORKDIR /bugspots ADD Gemfile ./ RUN gem update && bundle install --path vendor/bundle --binstubs=vendor/bin
Rubyがちょっと古いけどもruggedが依存しているのが古いバージョンみたいで2.5だとエラーになった。
これで
docker build -t bugspots bugspots
とかでイメージを作って docker run -i --rm -v=$PWD:/work bugspots bundle exec bugspots /work
とか動かせばOK