Skip to content

Latest commit

 

History

History

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

example

This is an example of how to extend the dmotte/desktainer Docker image. You can use this for inspiration.

Usage

The first thing to do is to replace all the (put-...-here) placeholders in all the files with your actual values. Also, make sure that all the dummy values (e.g. myuser, myserver, etc.) are properly replaced.

Then, place the missing required files (e.g. the authorized keys files) inside the remote folder. You can take a look to .gitignore and main.sh to figure out exactly what's missing.

To start the docker-compose stack:

docker-compose up -d

Then we can leverage the remote-dir-run.sh script to provision the container using the content of the remote directory:

time remote-dir-run.sh remote docker-compose exec -T dt01 bash -c ++ \
    env SUPERVISOR_RELOAD=true bash main.sh; echo $?