Skip to content

Building the DDMS

rrowlands edited this page Jun 8, 2022 · 3 revisions

The DDMS includes a Dockerfile and a docker-compose.yml file in the build directory. These can be used to build a patcher and installer windows executable. The build is designed to be run on Linux. The Dockerfile is Debian based.

Initial Setup

  1. Install Docker and docker-compose
  2. Clone the DDMS git repo using git lfs
  3. Install git lfs
  4. git lfs clone [email protected]:terraframe/DDMS.git
  5. Configure build/docker-compose.yml
  6. Postgres will be run with port 5482. Change this here if you want a different port
  7. Configure the path to your docker executable under volumes. This is used by the container to pull a database dump from the postgres database.
  8. Configure the path to output directory. This directory will be mounted by the container and the installer and patcher will be output to this directory when the build finishes.

Running the Build

First, make sure that the version is correct for the version you intend to be releasing! You can edit that here: https://github.com/terraframe/DDMS/blob/master/build/version.properties

A shell script can be found in build/build.sh which can be run with sudo to build the DDMS. It follows these basic steps (run it in a shell from the build directory):

cd ../
docker build -f build/Dockerfile -t ddms-build .
cd build
docker-compose down
docker-compose up