Installing Dradis on Cloud9

If your answer is not here the Community Forums are your best bet.

Deploy Dradis on Cloud9

Use this guide to install Dradis Community Edition and get up and running in the Cloud9 IDE. Unlike a local installation, you won't be able to take this instance of Dradis offline. But, you'll have access to Dradis anywhere that has an internet connection.


Running Windows and don't have access to Kali Linux? Use Cloud9 to get up and running with Dradis with just your browser, and fast!



Getting started on Cloud9


  1. Sign up for a free account at Cloud9.

    They have premium plans if you're interested in more workspaces or more diskspace. However, to launch and use Dradis, you can use their free account.


  2. From your Cloud9 dashboard, click + Create a new workspace


  3. Give your workspace a name (any name)
    Optionally give your workspace a description


  4. For this guide, we're going to be working with a Hosted workspace. Make sure to select either a Private or a Public workspace.


  5. Enter the following value into the Clone from Git or Mercurial URL field:

    https://github.com/dradis/dradis-ce.git

  6. Under Choose a template, select the Ruby icon.


  7. Click Create workspace



Get your workspace in order


When your workspace is loaded, you'll be greeted by the following screen:



  1. In the top left hand sidebar, click the Settings wheel and select Show Home in Favorites from the dropdown as shown below



  2. Run the following in the terminal at the bottom of your screen:

    $ ./bin/setup

    Don't worry about the warning about The path `/home/ubuntu/dradis-plugins` does not exist., we'll fix that next


  3. Expand the ~ folder under Favorites at the top of your screen and expand the community folder so that you can see all 18 folders inside.


  4. Move all 18 folders out of the community folder so that they are on the same level as the workspace folder (CTRL + click to select all 18 folders as once). Your file structure should now look like this:


  5. Run the following in the terminal at the bottom of your screen:
    $ bundle install

    Troubleshooting this step:

    • If you get a message about An error occurred while installing gem-name (1.0.0), and Bundler cannot continue, it's likely a system-specific dependency issue. The first line of defense is to Google the specific error message to see whether StackOverflow or similar sites offer a solution. If you cannot resolve the issue, let us know in the Community Forums

    • If you get a message like: bash: bundle: command not found, run the following in your command line before continuing:
      $ gem install bundle


  6. Run the following in the terminal at the bottom of your screen:

    $ ./bin/setup

    Troubleshooting this step: If you get an error message similar to "NoMethodError: undefined method `last_comment' for #", you can resolve it by inserting the following content in line #6 of your Rakefile to bypass an issue with Rake version 11:

    # temp fix for NoMethodError: undefined method `last_comment'
    # remove when fixed in Rake 11.x
    module TempFixForRakeLastComment
      def last_comment
        last_description
      end
    end
    Rake::Application.send :include, TempFixForRakeLastComment
    ### end of temfix

    Credit to StackOverflow for this patch


  7. Run the following in the terminal at the bottom of your screen:

    $ bundle exec rails server -p $PORT -b $IP

  8. In a new tab in your terminal, start the Background worker that is needed to upload and parse tool output by running:
    $ sudo service redis-server start

  9. Navigate to the URL where Dradis is now running! The url requires your workspace name (dradis-ce in this example) and your Cloud9 username (rkorinek in this example). The url uses the following format: [WorkspaceName]-[Cloud9Username].c9users.io.
    Example: https://[workspace]dradis-ce-rkorinek.c9users.io/


  10. Configure the shared password by entering it and confirming it:

    Troubleshooting this step: if you encounter an error message like ActionController::UrlGenerationError in HomeController#index
    No route matches {:action=>"init", :controller=>"home"}
    (pictured below) when you navigate to Dradis, go to /setup in your browser.


  11. Create a username, then enter the password you created in step #3:




Congratulations!

You did it! You have now completed the installation process are are now running Dradis on Cloud9. Congratulations on making it all the way from git to running on the cloud!




Updates and news

If you want to receive important updates and security notices, let us know:



Next? Check out the rest of the Dradis Community guides.