Projects are configured in config/projects.json

Local VS Remote deployment

Project can be deloyed localy :"URI":"local"

Or remotely : "URI":"user@host"

In the case of remote hosts, make sure to ssh-copy-id the URI so remote calls won't need password typing

How to use

bin/dm and follow instructions

Run the test project : bin/dm run test, bin/dm run test REVISION_NUMBER

API, TODO

Thinking

For the Dockerfile and/or the docker container to be able to git clone the project, an ssh key must be provided. One solution is to embed the key in the repository. The key can be then associated to a user account (or to the repository deployment keys, which is a per project configuration) on the git repository provider.

On tester / client machines, use /etc/hosts or GasMask or HostMan so the production domain / URL points to the Docker server

Webapps : App environment at runtime ?

Websites : Avoid absolute urls, so the port is forwarded to the next page.

+ dockerManagerTest

Notes

This a simple web server container which serves a simple index.html file.

The docker/id_rsa* key has been added to the github project deployment keys so it can be deployed from the Dockerfile. In production, use private repositories and assoiate ssh keys to git provider (eg github) user account.