forked from sroegner/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update doop to hdp-2.3, add hadoop builder
- Loading branch information
Showing
4 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM centos:7 | ||
MAINTAINER Steffen Roegner "steffen.roegner@gmail.com" | ||
USER root | ||
|
||
ENV JAVA_HOME=/usr | ||
ENV REFRESHED_AT 2015-09-03 | ||
ENV M2_HOME=/usr/local | ||
|
||
RUN rpm -ivh http://epel.mirror.constant.com/7/x86_64/e/epel-release-7-5.noarch.rpm; \ | ||
yum -y -q upgrade; \ | ||
yum -y install python-pip snappy lzo rsync which tar bind-utils java-1.7.0-openjdk-devel unzip bzip2; \ | ||
yum clean all | ||
|
||
RUN yum -y install gcc automake zlib-devel openssl-devel autoreconf | ||
RUN cd /usr/local && curl -L http://www.us.apache.org/dist/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz | tar xz --strip-components=1 | ||
RUN mkdir /protoc && cd /protoc && curl -L https://github.com/google/protobuf/archive/v2.5.0.tar.gz | tar xz --strip-components=1 && \ | ||
./autogen.sh; ./configure --prefix=/usr; make; make install; | ||
protoc --version | ||
RUN cd /protoc/java && /usr/local/bin/mvn install | ||
|
||
|
||
ADD build_hadoop.sh / | ||
|
||
RUN chmod 755 /build_hadoop.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
include ../shared/Makefile.vars | ||
include ../shared/Makefile | ||
|
||
hadoop: | ||
$(DOCKER_CMD) run ${tag} /build_hadoop.sh 2.7.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
VERSION=${1:-2.7.1} | ||
BUILD_DIR=/hadoop_build | ||
HADOOP_URL=http://apache.osuosl.org/hadoop/common/hadoop-${VERSION}/hadoop-${VERSION}-src.tar.gz | ||
|
||
rm -rf $BUILD_DIR | ||
mkdir -p $BUILD_DIR | ||
cd $BUILD_DIR | ||
curl -L $HADOOP_URL | tar xz --strip-components=1 | ||
ls -l | ||
/usr/local/bin/mvn package -Pdist,native -DskipTests -Dmaven.test.skip -Dtar | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters