Ambar Management Script Full Description

The first step in installing Ambar is downloading the management script and making it executable by wget -O ambar.py https://static.ambar.cloud/ambar.py && chmod +x ./ambar.py. This ambar.py script is the main Ambar management tool, let's describe its capabilities.

The basic call is sudo ./ambar.py ${command}, here is the commands:

  • install
    • downloads default config.json from Ambar static repository, or uses local config.json if --useLocalConfig parameter was specified
    • downloads latest docker-compose.template.yml from Ambar static repository
    • generates docker-compose.yml by merging the values from config.json with the template file docker-compose.template.yml
    • pulls latest Ambar images from Docker repository specified in your config.json
    • sets OS constants to make Ambar perform well (sets vm.max_map_count and tunes TCP/IP stack)
  • update
    • stops Ambar by stopping and removing its Docker containers
    • downloads latest docker-compose.template.yml from Ambar static repository
    • generates docker-compose.yml by merging the values from config.json with the template file docker-compose.template.yml
    • pulls latest Ambar images from Docker repository specified in your config.json
    • starts Ambar by recreating its Docker containers from the new images
  • start
    • starts Ambar by recreating its Docker containers from the new images
  • stop
    • stops Ambar by stopping and removing its Docker containers
  • restart
    • stops Ambar by stopping and removing its Docker containers
    • starts Ambar by recreating its Docker containers from the new images
  • reset
    • stops Ambar by stopping and removing its Docker containers
    • removes everything from Ambar data folder specified in dataPath field in your config.json, by default it's /opt/ambar
  • uninstall
    • stops Ambar by stopping and removing its Docker containers
    • removes everything from Ambar data folder specified in dataPath field in your config.json, by default it's /opt/ambar
    • removes docker-compose.yml, docker-compose.template.yml and config.json
    • asks to remove ambar.py

Stay tuned and subscribe for our blog!

Igor S

Read more posts by this author.

Subscribe to Ambar Blog. How we made your docs searchable

Get the latest posts delivered right to your inbox.

or subscribe via RSS with Feedly!