Script pour lancer Gissmo dans un Docker (application github.com/eost/gissmo/)
Go to file
Olivier DOSSMANN b8f68384a6 [FIX] Problem with pre-commit hook that does not exist on 2.0 branchs. 2017-12-21 14:55:39 +01:00
.gitignore [ADD] Launch script: Change config to config.example to permit user to 2016-01-13 10:11:11 +01:00
COPYING [UP] Readme and add new license! 2016-04-07 11:18:17 +02:00
README.md [UP] README file to warn user using this script on another system than Ubuntu 2016-04-28 08:25:15 +02:00
TODO [UP] TODO list 2017-10-25 12:13:33 +02:00
config.example [UP] Adapt launcher regarding Gissmo 2.x experimental branch structure 2017-11-22 10:00:25 +01:00
launch.sh [FIX] Problem with pre-commit hook that does not exist on 2.0 branchs. 2017-12-21 14:55:39 +01:00

README.md

Gissmo Launch Script

This script, called Gissmo Launcher, aims to manage Docker containers while working on Gissmo project (Cf. https://github.com/eost/gissmo/).

It's not a part of previous Github's branch because it's only for Docker use.

Requirements

I suggest you to check these points befaure using Gissmo Launcher:

  • docker
  • bash (Bourne Again Shell)
  • tput command (try which tput to know if you have it)
  • a default configuration file to give Gissmo Launcher some data

Note: This script was done on Ubuntu. If you use another operating system, some commands will not work. For an example launch.sh init.

Configuration file

A configuration example is available here: config.example.

Gissmo Launch Script search a file called config located in XDG_CONFIG_HOME.

If not, it searches this file: .config/gissmo located in your home directory.

Usage

Just do:

./launch.sh

It will display you a list of available commands.

Examples

Here is an example on how I frequently use Gissmo Launcher:

launch.sh init
launch.sh create
launch.sh restore ~/2015.05.06.dump
launch.sh migrate
launch.sh dev
launch.sh stop
launch.sh start python manage.py shell
launch.sh stop

A different configuration file

If you want to use another configuration file than current, use the GISSMO_CFG variable as:

GISSMO_CFG=~/new_config launch.sh

It will use new_config file instead.

License

This tool is under WTFPL Do What the Fuck You Want to Public License.