You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hama.apache.org by ed...@apache.org on 2015/04/06 03:36:01 UTC

svn commit: r1671467 - in /hama/trunk: CHANGES.txt docker/ docker/Dockerfile docker/README.md pom.xml

Author: edwardyoon
Date: Mon Apr  6 01:36:01 2015
New Revision: 1671467

URL: http://svn.apache.org/r1671467
Log:
HAMA-942: DockFile for Hama (Hoseog Lee via edwardyoon)

Added:
    hama/trunk/docker/
    hama/trunk/docker/Dockerfile
    hama/trunk/docker/README.md
Modified:
    hama/trunk/CHANGES.txt
    hama/trunk/pom.xml

Modified: hama/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hama/trunk/CHANGES.txt?rev=1671467&r1=1671466&r2=1671467&view=diff
==============================================================================
--- hama/trunk/CHANGES.txt (original)
+++ hama/trunk/CHANGES.txt Mon Apr  6 01:36:01 2015
@@ -4,6 +4,7 @@ Release 0.7.0 (unreleased changes)
 
   NEW FEATURES
 
+   HAMA-942: DockFile for Hama (Hoseog Lee via edwardyoon)
    HAMA-894: Implement K-core algorithm (Jaegwon Seo via edwardyoon)
    HAMA-907: Add MaxFlow example (Zhengjun via edwardyoon)
    HAMA-915: Add Kryo serializer (edwardyoon)

Added: hama/trunk/docker/Dockerfile
URL: http://svn.apache.org/viewvc/hama/trunk/docker/Dockerfile?rev=1671467&view=auto
==============================================================================
--- hama/trunk/docker/Dockerfile (added)
+++ hama/trunk/docker/Dockerfile Mon Apr  6 01:36:01 2015
@@ -0,0 +1,53 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+FROM tianon/centos:6.5
+
+ENV HAMA_HOME /opt/hama
+ENV HAMA_VERSION 0.6.4
+
+RUN yum -y update; yum clean all
+RUN yum -y install epel-release; yum clean all
+RUN yum install -y wget \
+	which \
+	openssh-clients \
+	openssh-server \
+	curl \
+	tar \
+	system-config-services \
+	sudo
+
+RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
+RUN sed -ri 's/#UsePAM no/UsePAM no/g' /etc/ssh/sshd_config
+
+RUN service sshd start
+
+# java
+RUN curl -LO 'http://download.oracle.com/otn-pub/java/jdk/7u71-b14/jdk-7u71-linux-x64.rpm' -H 'Cookie: oraclelicense=accept-securebackup-cookie'
+RUN rpm -i jdk-7u71-linux-x64.rpm
+RUN rm jdk-7u71-linux-x64.rpm
+ENV JAVA_HOME /usr/java/default
+ENV PATH $PATH:$JAVA_HOME/bin
+
+# hama
+RUN wget http://mirror.apache-kr.org/hama/hama-$HAMA_VERSION/hama-$HAMA_VERSION.tar.gz
+RUN tar -zxvf hama-$HAMA_VERSION.tar.gz
+RUN rm -rf hama-*.tar.gz
+RUN export HAMA_HOME=$HAMA_HOME
+RUN mv hama-* $HAMA_HOME
+
+COPY ./conf/hama-site.xml $HAMA_HOME/conf/
+
+EXPOSE 40013

Added: hama/trunk/docker/README.md
URL: http://svn.apache.org/viewvc/hama/trunk/docker/README.md?rev=1671467&view=auto
==============================================================================
--- hama/trunk/docker/README.md (added)
+++ hama/trunk/docker/README.md Mon Apr  6 01:36:01 2015
@@ -0,0 +1,34 @@
+# Hama Dockerfile #
+
+This directory contains Dockerfile of [Hama](http://hama.apache.org) for [Docker](https://www.docker.com/)'s.
+
+
+## What is Hama?
+pache Hama is a general BSP computing engine on top of Hadoop, which was established in 2012 as a Top-Level Project of The Apache Software Foundation. It provides High-Performance computing engine for performing massive scientific and iterative algorithms on existing open source or enterprise Hadoop cluster, such as Matrix, Graph, and Machine Learning.[detail. https://hama.apache.org/](https://hama.apache.org/)
+
+
+## Installation
+
+1. Install [Docker](https://www.docker.com/).
+
+2a. Build from files in this directory:
+Review hama version inside The Dockerfile 'ENV HAMA_VERSION'
+
+	$docker build -t <new name for image> .
+        ex) $docker build -t hama-docker .
+
+2b. Download automated build from public hub registry:
+Pre-built image will down load and then you can run HAMA immediately.
+
+	$docker pull hoseog/hama-docker
+
+
+## Usage
+You can run hama with docker command and let you go into container.
+
+	$docker run -it -name <container name> -p 40013:40013 <image name>/bin/bash 
+        ex) docker run -it -name hama-docker -p 40013:40013 hama-docker /bin/bash
+
+Hama is located in /opt/hama/ and is almost ready to run.
+Review configuration in /opt/hama/conf/ and you can start BST works.
+

Modified: hama/trunk/pom.xml
URL: http://svn.apache.org/viewvc/hama/trunk/pom.xml?rev=1671467&r1=1671466&r2=1671467&view=diff
==============================================================================
--- hama/trunk/pom.xml (original)
+++ hama/trunk/pom.xml Mon Apr  6 01:36:01 2015
@@ -429,6 +429,7 @@
             <exclude>**dependency-reduced-pom.xml</exclude>
             <exclude>**/src/test/resources/*.txt</exclude>
             <exclude>**/target/**</exclude>
+            <exclude>/docker/README.md</exclude>
           </excludes>
         </configuration>
       </plugin>