Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
randerzander committed Mar 17, 2016
1 parent df1faf6 commit 8ba4c9d
Show file tree
Hide file tree
Showing 11 changed files with 1,486 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.swp
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# docker-hdp
Dockerized HDP Cluster

TODO: Add Swarm Setup
Usage: docker-compose up
7 changes: 7 additions & 0 deletions containers/ambari-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM centos
RUN yum install -y wget sudo net-tools
RUN wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.2.1.1/ambari.repo -O /etc/yum.repos.d/ambari.repo
RUN yum install -y ambari-server
RUN ambari-server setup --database=postgres --databasehost=postgres.dev --databaseport=5432 --databasename=ambari --postgresschema=ambari --databaseusername=ambari --databasepassword=dev --silent
ADD scripts/start.sh /start.sh
CMD /start.sh
8 changes: 8 additions & 0 deletions containers/ambari-server/scripts/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

ambari-server start

while true; do
sleep 3
tail -f /var/log/ambari-server/ambari-server.log
done
6 changes: 6 additions & 0 deletions containers/node/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM centos
RUN yum install -y wget
RUN wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.2.1.1/ambari.repo -O /etc/yum.repos.d/ambari.repo
RUN yum install -y ambari-agent
ADD scripts/start.sh /start.sh
CMD /start.sh
8 changes: 8 additions & 0 deletions containers/node/scripts/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
sed -i "s/hostname=localhost/hostname=ambari-server.dev/" /etc/ambari-agent/conf/ambari-agent.ini
ambari-agent start

while true; do
sleep 3
tail -f /var/log/ambari-agent/ambari-agent.log
done
2 changes: 2 additions & 0 deletions containers/postgres/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM postgres
ADD scripts/* /docker-entrypoint-initdb.d/
Loading

0 comments on commit 8ba4c9d

Please sign in to comment.