Public | Automated Build

Last pushed: 3 years ago
Dockerfile
FROM java:8-jre-alpine MAINTAINER Maxime Cottret <mcottret@itrust.fr> RUN apk add --update --no-cache bash gawk sed grep bc coreutils gettext curl perl && rm -rf /var/cache/apk/* RUN sed -i -e "s/bin\/ash/bin\/bash/" /etc/passwd ENV HADOOP_VERSION 2.7.1 RUN set -x \ && mkdir /opt \ && curl -sS http://apache.mirrors.ovh.net/ftp.apache.org/dist/hadoop/common/hadoop-$HADOOP_VERSION/hadoop-$HADOOP_VERSION.tar.gz | tar -xzf - -C /opt RUN ln -s /opt/hadoop-$HADOOP_VERSION/etc/hadoop /etc/hadoop RUN cp /etc/hadoop/mapred-site.xml.template /etc/hadoop/mapred-site.xml RUN mkdir /opt/hadoop-$HADOOP_VERSION/logs RUN mkdir /hadoop-data ENV HADOOP_PREFIX=/opt/hadoop-$HADOOP_VERSION ENV HADOOP_CONF_DIR=/etc/hadoop ENV MULTIHOMED_NETWORK=1 ENV USER=root ENV PATH $HADOOP_PREFIX/bin/:$PATH ADD entrypoint.sh /entrypoint.sh RUN chmod a+x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]
Source Repository