Public Repository

Last pushed: 9 months ago
Short Description
ARA: Ansible Run Analysis
Full Description

dockerfile for https://github.com/openstack/ara
built with mysql support, not for production use

for an existing database:

docker run

docker run --name my-ara -e ARA_DATABASE="mysql+pymysql://arauser:arapass@mysql/aradb -d jacobdevans/ara"

for a test system

docker compose

version: '2.1'
services:
  ara:
    image: jacobdevans/ara
    ports:
      - 8080:8080
    depends_on:
      - mysql
    links:
      - mysql
    environment:
      ARA_DATABASE: "mysql+pymysql://arauser:arapass@mysql/aradb"
      WAIT_HOSTS: mysql:3306
  mysql:
    image: mariadb
    ports:
      - 3306:3306
    environment:
      MYSQL_DATABASE: aradb
      MYSQL_USER: arauser
      MYSQL_PASSWORD: arapass
      MYSQL_ROOT_PASSWORD:
    volumes:
      - ara_data:/var/lib/mysql
volumes:
  ara_data:

then compose up, with persistend data in ara_data

docker-compose up

Ansible Setup

Export method

  • Match the database values of the mysql server (the host would be the IP of the docker host assuming you just exposed port 3306, you may need to open the firewall.
pip install pymysql ara
export ara_location=$(python -c "import os,ara; print(os.path.dirname(ara.__file__))")
export ANSIBLE_CALLBACK_PLUGINS=$ara_location/plugins/callbacks
export ANSIBLE_ACTION_PLUGINS=$ara_location/plugins/actions
export ANSIBLE_LIBRARY=$ara_location/plugins/modules
export ARA_DATABASE="mysql+pymysql://arauser:arapass@localhost/aradb"
Docker Pull Command
Owner
jacobdevans