Public | Automated Build

Last pushed: 3 years ago
Short Description
A docker image that encapsulates everything that is needed to compile darkstar in ubuntu 14.04
Full Description

Dockerized Darkstar Linux build environment

This Docker image was created to make a reproducible ubuntu 14.04(Trusty) build environment for the Darkstar project.

This image contains a volume at /source which needs to be mapped to a darkstar git clone : ie. cd /home/user; git clone, and then /source would need to be mapped to /home/user/darkstar to build the freshly cloned repository.

I am hoping that contributing this will avoid the pain of setting a build environment for other people.

Step by step example usage

Considering a fresh install of ubuntu 14.04 and Docker isn't yet installed, these steps would be followed to build Darkstar:

  • Install docker (Might need massaging on a VPS...):

    sudo apt-get update
    sudo apt-get install wget
    wget -qO- | sh
  • Verify that docker is properly installed:

    sudo docker info
  • Compile Darkstar using the darkstar-dev Docker image

    cd /home/user/workdir
    mkdir output
    git clone
    ./ /home/user/workdir/darkstar

The script will compile darkstar from within a temporary Docker container. Once it is done compiling, the result will remain in /home/user/workdir/darkstar.
To develop, you simply have to point your favorite IDE to /home/user/workdir/darkstar, and whenever you need to build, launch . Note that the first time Docker will need to pull lots of stuff and this will take time. Once the first compile is done, the next ones will be much faster.

  • Produce a build using the darkstar-dev Docker image
    cd /home/user/workdir
    mkdir output
    git clone
    ./ /home/user/workdir/darkstar /home/user/workdir/output
Docker Pull Command
Source Repository