Skip to content

Instantly share code, notes, and snippets.

@bugcy013
Forked from zonorti/Dockerfile
Created August 31, 2014 00:24
Show Gist options
  • Select an option

  • Save bugcy013/184e2eed2753ec92f504 to your computer and use it in GitHub Desktop.

Select an option

Save bugcy013/184e2eed2753ec92f504 to your computer and use it in GitHub Desktop.
FROM ubuntu:12.04
MAINTAINER Sergey Melnik "[email protected]"
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq curl
#add CDH repo
RUN curl http://archive.cloudera.com/cdh5/ubuntu/precise/amd64/cdh/archive.key | apt-key add -
RUN curl http://archive.cloudera.com/cdh5/ubuntu/precise/amd64/cdh/cloudera.list > /etc/apt/sources.list.d/cloudera.list
# add CM repo
RUN curl http://archive.cloudera.com/cm5/ubuntu/precise/amd64/cm/archive.key | apt-key add -
RUN curl http://archive.cloudera.com/cm5/ubuntu/precise/amd64/cm/cloudera.list > /etc/apt/sources.list.d/cloudera-manager.list
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq oracle-j2sdk1.7
ENV JAVA_HOME /usr/lib/jvm/java-7-oracle-cloudera
ENV PATH $JAVA_HOME/bin:$PATH
RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq cloudera-manager-daemons cloudera-manager-server
# Ports for Cloudera Manager
EXPOSE 7180 7183 7182 7432
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment