Deploy Script

Information

The latest version of our Deploy-Script is v2.1.0. It works fine with all OS images >= v2.1.0.

Features of v2.x (Stable):

Features of v1.x (Old, works only with OS images < v2.0):

  • Uses sshpass for communicating with the brick

  • Bundled with python scripts for backup and tmux session

  • Works with Linux, MacOS, Windows (CMD, Git-Bash; PowerShell and Subsystem not tested)

  • Link: https://github.com/7HAL32/robolab-deploy.git

Please be aware, that you should not program directly on the brick itself, for example via nano or vim, but use our transfer script or sshfs instead.

Updating and Usage

How to update inside a repository (e.g. robolab-deploy)

Hopefully updates are only necessary in order to get cool new features that have been added. Well, or in case any bug was found and had to be fixed, but that happens like, you know, never. Luckily this process is fairly simple, as you make a pull in the submodule from the master and add the updated directory to a commit in the template repository.

$ cd path/to/robolab-template/

# Checkout the right branch for remote-robolab
$ git checkout mothershipdeploy

# Update
$ git pull

# Push changes to git
$ cd ..
$ git add robolab-deploy
$ git commit -m "Updated submodule robolab-deploy"
$ git push

Help

For additional information on usage, optional arguments and syntax simply call the stub deploy.py with the -h flag.

$ ./deploy.py -h
usage: mothershipdeploy.py [-h] [-r] [-l] [-j]

Deploy your code.

optional arguments:
  -h, --help         show this help message and exit
  -r, --restart      requeue without reuploading code
  -l, --get-log      download latest log file into ./logs
  -j, --just-listen  tune into the current session