Public | Automated Build

Last pushed: a year ago
Short Description
install ambari agent and docker-gen
Full Description

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
Docker Pull Command
Owner
incloud
Source Repository

Comments (0)