ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jun aoki <ja...@apache.org>
Subject Re: Do we have any Dockerfile that builds an Ambari build environment?
Date Fri, 03 Oct 2014 01:28:31 GMT
Thanks Newton!

On Thu, Oct 2, 2014 at 11:06 AM, Newton Alex <nalex@pivotal.io> wrote:

> Weird. Not sure if the mailer daemon is stripping the attachments. Anyway
> here is the content. Just copy paste it into a file and call it Dockerfile.
>
>
> ----------------
>
> FROM centos:centos6
>
>
> ## Install some basic utilities that aren't in the default image
>
> RUN yum -y install wget rpm-build sudo which telnet tar
>
> RUN rpm -e --nodeps --justdb glibc-common
>
> RUN yum -y install glibc-common
>
>
> #Install JAVA
>
> RUN wget --no-check-certificate --no-cookies --header "Cookie:
> oraclelicense=accept-securebackup-cookie"
> http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm
> -O jdk-7u55-linux-x64.rpm
>
> RUN yum -y install jdk-7u55-linux-x64.rpm
>
> ENV JAVA_HOME /usr/java/default/
>
>
> #Install Maven
>
> RUN mkdir -p /opt/maven
>
> WORKDIR /opt/maven
>
> RUN wget
>
> http://apache.cs.utah.edu/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz
>
> RUN tar -xvzf /opt/maven/apache-maven-3.0.5-bin.tar.gz
>
> RUN rm -rf /opt/maven/apache-maven-3.0.5-bin.tar.gz
>
> ENV M2_HOME /opt/maven/apache-maven-3.0.5
>
> ENV PATH $PATH:$JAVA_HOME/bin:$M2_HOME/bin
>
> RUN mvn -version
>
>
> #Install python setuptools
>
> RUN yum -y install python-setuptools
>
>
> # Install NodeJs and npm
>
> RUN yum -y install
> http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
>
> RUN yum -y install nodejs npm --enablerepo=epel
>
>
> #Install brunch
>
> RUN npm install -g brunch@1.7.13
>
>
> #Install git
>
> RUN yum -y install git
>
>
> #bashrc settings
>
> RUN echo "alias ll='ls -l'" >> ~/.bashrc &&  source ~/.bashrc
>
>
> #Change working directory to /
>
> WORKDIR /
> ----------------
>
> -
> Newton
>
> On Thu, Oct 2, 2014 at 10:50 AM, Chandrasekhar Gopal <cgopal@pivotal.io>
> wrote:
>
> > I don't see an attachment here.
> >
> > On Thu, Oct 2, 2014 at 9:30 AM, Newton Alex <nalex@pivotal.io> wrote:
> >
> > > I had developed one initially a few months ago. Attached here.
> > >
> > > -
> > > Newton
> > >
> > > On Wed, Oct 1, 2014 at 9:53 PM, jun aoki <jaoki@apache.org> wrote:
> > >
> > >> Yusaku has provided vagrantfiles.
> > >> Do we have something similar but Dockerfile?
> > >> I'm a docker fun :)
> > >>
> > >> --
> > >> -jun
> > >>
> > >
> > >
> >
> >
> > --
> > Chandrasekhar Gopal
> > Pivotal Hadoop -- Build, Release and Deployments
> > cgopal@gopivotal.com
> >
>



-- 
-jun

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message