#!/bin/bash
cd "$(dirname "$0")"
set -ex
docker run -it -v "$(pwd)":/app \
  -v /usr/local/bundle:/usr/local/bundle ruby:2.7.5 sh \
  -c "apt-get update; \
      apt-get install -y cmake build-essential; \
      cd /app; \
      gem install bundler:2.1; \
      bundle outdated; \
      bundle update; \
      bundle install;"
