Well usefully this is exactly the kind of scenario that docker can help with as it allows everyone to work from identical builds
so taking it from the top in a bash shell started with
docker run -t -i -p 3000:3000 ruby:latest /bin/bash
then runnning
apt-get update -qq && apt-get install -y nodejs
mkdir dradis
cd dradis
git clone -b release-3.0 --single-branch https://github.com/dradis/dradisframework.git
cd dradisframework
if I try going straight for
ruby bin/setup
We start to run into errors on the ==Installing Dependencies== section
== Installing dependencies ==
git://github.com/dradis/dradis-theme_snowcrash.git (at master) is not yet checked out. Run bundle install
first.
Don’t run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will
break this application for all non-root users on this machine.
Fetching git://github.com/dradis/dradis-theme_snowcrash.git
Fetching git://github.com/dradis/dradis-projects.git
Some gems seem to be missing from your vendor/cache directory.
Could not find gem ‘foreman (>= 0) ruby’ in any of the gem sources listed in your Gemfile or available on this machine.
== Preparing database ==
Could not find gem ‘foreman (>= 0) ruby’ in any of the gem sources listed in your Gemfile or available on this machine.
Run bundle install
to install missing gems.
so instead seemed like a plan to run
bundle install
first then
ruby bin/setup
doing that gives us a different error
== Installing dependencies ==
Resolving dependencies…
Bundler can’t satisfy your Gemfile’s dependencies.
Install missing gems with bundle install
.
Don’t run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will
break this application for all non-root users on this machine.
Resolving dependencies…
Some gems seem to be missing from your vendor/cache directory.
Bundler could not find compatible versions for gem “prawn”:
In Gemfile:
dradis-pdf_export (>= 0) ruby depends on
prawn (~> 0.15.0) ruby
Could not find gem ‘prawn (~> 0.15.0) ruby’, which is required by gem ‘dradis-pdf_export (>= 0) ruby’, in any
of the sources.
== Preparing database ==
Bundler could not find compatible versions for gem “prawn”:
In Gemfile:
dradis-pdf_export (>= 0) ruby depends on
prawn (~> 0.15.0) ruby
Could not find gem ‘prawn (~> 0.15.0) ruby’, which is required by gem ‘dradis-pdf_export (>= 0) ruby’, in any of the sources.
but I found running
bundle install
again installed prawn and pdf-core this time
so then running
ruby bin/setup
again runs to completion, thus the double run…