Ubuntu 16.04 Image containing Hadoop build dependencies and docker
79
docker run -it --privileged -v /var/run/docker.sock:/var/run/docker.sock tangzhankun/hadoop-dev
Dockerfile for backup FROM ubuntu:xenial
WORKDIR /root
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN echo APT::Install-Recommends "0"; > /etc/apt/apt.conf.d/10disableextras RUN echo APT::Install-Suggests "0"; >> /etc/apt/apt.conf.d/10disableextras
ENV DEBIAN_FRONTEND noninteractive ENV DEBCONF_TERSE true
RUN apt-get -q update
&& apt-get -q install -y --no-install-recommends
apt-utils
build-essential
bzip2
clang
curl
doxygen
fuse
g++
gcc
git
gnupg-agent
libbz2-dev
libcurl4-openssl-dev
libfuse-dev
libprotobuf-dev
libprotoc-dev
libsasl2-dev
libsnappy-dev
libssl-dev
libtool
libzstd1-dev
locales
make
pinentry-curses
pkg-config
python
python2.7
python-pip
python-pkg-resources
python-setuptools
python-wheel
rsync
software-properties-common
snappy
sudo
valgrind
zlib1g-dev
&& apt-get clean
&& rm -rf /var/lib/apt/lists/*
#######
#######
RUN apt-get -q update
&& apt-get -q install -y --no-install-recommends openjdk-8-jdk libbcprov-java
&& apt-get clean
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /opt/cmake
&& curl -L -s -S
https://cmake.org/files/v3.1/cmake-3.1.0-Linux-x86_64.tar.gz
-o /opt/cmake.tar.gz
&& tar xzf /opt/cmake.tar.gz --strip-components 1 -C /opt/cmake
ENV CMAKE_HOME /opt/cmake
ENV PATH "${PATH}:/opt/cmake/bin"
RUN mkdir -p /opt/protobuf-src
&& curl -L -s -S
https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.gz
-o /opt/protobuf.tar.gz
&& tar xzf /opt/protobuf.tar.gz --strip-components 1 -C /opt/protobuf-src
&& cd /opt/protobuf-src
&& ./configure --prefix=/opt/protobuf
&& make install
&& cd /root
&& rm -rf /opt/protobuf-src
ENV PROTOBUF_HOME /opt/protobuf
ENV PATH "${PATH}:/opt/protobuf/bin"
RUN apt-get -q update
&& apt-get -q install -y --no-install-recommends maven
&& apt-get clean
&& rm -rf /var/lib/apt/lists/*
ENV MAVEN_HOME /usr
RUN apt-get -q update
&& apt-get -q install -y --no-install-recommends findbugs ant
&& apt-get clean
&& rm -rf /var/lib/apt/lists/*
ENV FINDBUGS_HOME /usr
RUN add-apt-repository -y ppa:jonathonf/ghc-8.0.2
&& apt-get -q update
&& apt-get -q install -y --no-install-recommends shellcheck
&& apt-get clean
&& rm -rf /var/lib/apt/lists/*
RUN apt-get -q update
&& apt-get -q install -y --no-install-recommends bats
&& apt-get clean
&& rm -rf /var/lib/apt/lists/*
RUN pip2 install pylint==1.9.2
RUN pip2 install python-dateutil==2.7.3
RUN apt-get -q update
&& apt-get install -y --no-install-recommends nodejs npm
&& apt-get clean
&& rm -rf /var/lib/apt/lists/*
&& ln -s /usr/bin/nodejs /usr/bin/node
&& npm install npm@latest -g
&& npm install -g jshint
RUN curl -L -s -S
https://github.com/hadolint/hadolint/releases/download/v1.11.1/hadolint-Linux-x86_64
-o /bin/hadolint
&& chmod a+rx /bin/hadolint
&& shasum -a 512 /bin/hadolint |
awk '$1!="734e37c1f6619cbbd86b9b249e69c9af8ee1ea87a2b1ff71dccda412e9dac35e63425225a95d71572091a3f0a11e9a04c2fc25d9e91b840530c26af32b9891ca" {exit(1)}'
ENV MAVEN_OPTS -Xms256m -Xmx1536m
RUN apt-get -q update
&& apt-get -q install -y --no-install-recommends subversion
&& apt-get clean
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /opt/apache-forrest
&& curl -L -s -S
https://archive.apache.org/dist/forrest/0.8/apache-forrest-0.8.tar.gz
-o /opt/forrest.tar.gz
&& tar xzf /opt/forrest.tar.gz --strip-components 1 -C /opt/apache-forrest
RUN echo 'forrest.home=/opt/apache-forrest' > build.properties
ENV FORREST_HOME=/opt/apache-forrest
RUN curl -L -o hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.30.2/hugo_0.30.2_Linux-64bit.deb
&& dpkg --install hugo.deb
&& rm hugo.deb
COPY hadoop_env_checks.sh /root/hadoop_env_checks.sh RUN chmod 755 /root/hadoop_env_checks.sh
#RUN echo '${HOME}/hadoop_env_checks.sh' >> /root/.bashrc
RUN apt-get update && apt-get install -y vim net-tools pciutils
RUN apt-get update && apt-get install -y apt-transport-https
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
&& apt-get update && apt-get install -y docker-ce
Content type
Image
Digest
Size
685.3 MB
Last updated
almost 8 years ago
docker pull tangzhankun/hadoop-dev