Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (22 sloc) 1.1 KB
# Base Ubuntu Precise 12.04 LTS image
FROM ubuntu:precise
# Setup a volume for data
VOLUME ["/data"]
# Set correct source list
RUN echo "deb precise main universe" > /etc/apt/sources.list
RUN echo "deb precise-updates main universe" >> /etc/apt/sources.list
# install a few other useful packages plus Open Jdk 7
RUN apt-get update && apt-get upgrade -y && apt-get install -y less openjdk-7-jre-headless net-tools vim-tiny sudo openssh-server iputils-ping python2.7
# Install Hadoop
ADD /root/
RUN dpkg -i /root/hadoop_1.2.1-1_x86_64.deb && rm /root/hadoop_1.2.1-1_x86_64.deb
# Docker messes up /etc/hosts and adds two entries for
# we try to recover from that by giving /etc/resolv.conf and therefore
# the nameserver priority
RUN sed -i s/"files dns"/"dns files"/ /etc/nsswitch.conf
# add Hadoop config file templates
ADD files /root/hadoop_files
ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64