No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
agent
compose
repo
Dockerfile
Dockerfile_agent
README.md
add-hosts.sh
ambari-docker.iml
etc-hosts.tmpl
readme_cn.md
start-agent.sh
start-server.sh

README.md

Readme

more detail -> chinese readme

Build Image

Ambari Server:

$ docker build  --rm -t incloud/ambari-server .

Ambari agent:

$ docker build  --rm -t incloud/ambari-agent -f agent/Dockerfile .

Pull Image

$ docker pull incloud/ambari-server
$ docker pull incloud/ambari-agent

Start

start with docker-compose:

compose file:

ambari-server:
    image: incloud/ambari-server
    ports:
        - "8080:8080"
    command: ["/start-server.sh","setup"]
    hostname: ambari-server
hadoop-master:
    image: incloud/ambari-agent
    links:
        - ambari-server:ambari-server
    volumes:
        - /var/run/docker.sock:/var/run/docker.sock
    command: ["/start-agent.sh","reset","ambari-server"]
    hostname: hadoop-master
    environment:
       HADOOP_ROLE: "master"
hadoop-slave1:
    image: incloud/ambari-agent
    links:
        - ambari-server:ambari-server
    command: ["/start-agent.sh","reset","ambari-server"]
    hostname: hadoop-slave1
    labels:
       hadoop.role: "slave"

start :

$ cd compose
$ docker-compose up -d