Created by
Shiyao MA
| FROM centos:7
MAINTAINER introom <i@introo.me>
RUN yum -y upgrade
# enable EPEL (extra package for enterprise linux)
# packages like R need it.
RUN yum --enablerepo=extras -y install epel-release
# these packages are required by scripts in spark-ec2
RUN yum -y install sudo yum-utils openssh-server cloud-init wget tar autoconf xz-devel
ADD init.sh /init.sh
RUN chmod +x /init.sh
ENTRYPOINT ["/init.sh"]
# some sample commands
# docker build -t hadoop docker
# docker create --name hadoop -ti -v /home/introom/Work/spark/hadoop/spark-ec2:/root/spark-ec2 hadoop
# docker start -i hadoop
# after login, follow these steps
# create_image.sh
|