You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by jun aoki <ja...@apache.org> on 2014/10/02 06:53:08 UTC

Do we have any Dockerfile that builds an Ambari build environment?

Yusaku has provided vagrantfiles.
Do we have something similar but Dockerfile?
I'm a docker fun :)

-- 
-jun

Re: Do we have any Dockerfile that builds an Ambari build environment?

Posted by jun aoki <ja...@apache.org>.
Thanks Newton!

On Thu, Oct 2, 2014 at 11:06 AM, Newton Alex <na...@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 <cg...@pivotal.io>
> wrote:
>
> > I don't see an attachment here.
> >
> > On Thu, Oct 2, 2014 at 9:30 AM, Newton Alex <na...@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 <ja...@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

Re: Do we have any Dockerfile that builds an Ambari build environment?

Posted by Newton Alex <na...@pivotal.io>.
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 <cg...@pivotal.io>
wrote:

> I don't see an attachment here.
>
> On Thu, Oct 2, 2014 at 9:30 AM, Newton Alex <na...@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 <ja...@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
>

Re: Do we have any Dockerfile that builds an Ambari build environment?

Posted by Chandrasekhar Gopal <cg...@pivotal.io>.
I don't see an attachment here.

On Thu, Oct 2, 2014 at 9:30 AM, Newton Alex <na...@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 <ja...@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

Re: Do we have any Dockerfile that builds an Ambari build environment?

Posted by Newton Alex <na...@pivotal.io>.
I had developed one initially a few months ago. Attached here.

-
Newton

On Wed, Oct 1, 2014 at 9:53 PM, jun aoki <ja...@apache.org> wrote:

> Yusaku has provided vagrantfiles.
> Do we have something similar but Dockerfile?
> I'm a docker fun :)
>
> --
> -jun
>