lcaflc / docker-gandi.cli

Gandi.cli docker container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lcaflc/gandi.cli

Gandi.cli

Gandi.cli is the command line tool used to manage from your shell you gandi account.

Official website: http://cli.gandi.net/.

Features

This image provide stable releases of the Gandi.cli as well as git master branch on official repo https://github.com/Gandi/gandi.cli. See the build logs for latest updates and more containers informations.

Below are the mappings:

GitHub Branch Docker Tag Gandi.cli version Dockerfile
master latest git master branch master/Dockerfile
1.4 1.4 stable 1.4 1.4/Dockerfile
1.3 Oops forgot it
1.2 1.2 stable 1.2 1.2/Dockerfile
1.0 1.0 stable 1.0 1.0/Dockerfile
0.22 0.22 stable 0.22 0.22/Dockerfile
0.21 0.21 stable 0.21 0.21/Dockerfile
0.20 0.20 stable 0.20 0.20/Dockerfile
0.19 0.19 stable 0.19 0.19/Dockerfile
0.18 0.18 stable 0.18 0.18/Dockerfile
0.17 0.17 stable 0.17 0.17/Dockerfile
0.16 0.16 stable 0.16 0.16/Dockerfile

Usage

The image start a bash inside the container. Once the container fired up you simply use the gandi command just like you have done on your system.

docker run -it --rm lcaflc/gandi.cli
Gandi.cli:~# gandi --version
Gandi CLI 0.18

Copyright: © 2014-2015 Gandi S.A.S.
License: GPL-3

Gandi.cli need that you have some configuration done in order to connect to their API (private API key, default datacenter, API url, ...). This is so recommended to have a persistent container for your cli and you have 2 methods to configure those:

  1. Start your container with a name and configure it using the gandi cli
docker run -it --name gandi.cli lcaflc/gandi.cli
Gandi.cli:~# gandi setup
...
  1. Use a VOLUME to map your existing configuration to the container
docker run -it --name gandi.cli -v ~/.config/gandi:/root/.config/gandi lcaflc/gandi.cli
Gandi.cli:~# gandi account
handle           : XXXX-GANDI
credits          :
...

When you quit your container bash shell it will stop. To easily respawn into your configured container you only need to start it and attach input/outputs

docker start -ia gandi.cli

License

This repo is published under the GPLv3 License

About

Gandi.cli docker container

License:GNU General Public License v3.0


Languages

Language:Dockerfile 60.4%Language:Shell 39.6%