Set up local environment

This tutorial will show you how to:

Local development tools

We recommend a modern Unix-like operating system (eg. Ubuntu or OSX). On Windows OS, we suggest using Virtualbox to get a working Linux system.

Git

We use Git as a version control system, so make sure that it’s installed:

$ sudo apt install git    # For Debian

$ brew install git        # For OSX

DDEV

We use DDEV to build and manage a Docker-based local development environment. Installing it should just require:

$ curl -LO https://raw.githubusercontent.com/drud/ddev/master/scripts/install_ddev.sh && bash install_ddev.sh

If that doesn’t work, refer to the DDEV Installation instructions.

Finally, make sure to install a local Certificate Authority (CA):

$ mkcert -install

This allows DDEV to provide locally hosted sites under HTTPS without triggering browser warnings.

Drumkit

We use Drumkit to automate common development tasks. Drumkit requires GNU Make, so make sure that it’s installed:

apt install make    # For Debian

brew install make   # For OSX

Download the Code

For development and testing, this project uses Git submodules. So make sure to use --recursive whenever you clone the project. If you ever forget to, you can always run git submodule update --init from within the project.

git clone --recursive https://gitlab.com/rugged/rugged.git
cd rugged

Install the Rugged system

First, we need to bootstrap Drumkit:

$ . d       # on Bash shells

$ source d  # on non-Bash shells

N.B. We’re sourcing the file d here. This loads some variables into the environment for this terminal session. You’ll need to run . d (or source d) whenever you want to use Drumkit in a new terminal.

Next, we can start the DDEV Docker containers:

make start
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Rugged TUF Server is a trademark of Consensus Enterprises.