All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fuego] Fuego doesnt work with Ubuntu 16 image
@ 2017-02-28  4:27 Vivek Padmanabhan
  2017-03-01  1:22 ` Bird, Timothy
  0 siblings, 1 reply; 5+ messages in thread
From: Vivek Padmanabhan @ 2017-02-28  4:27 UTC (permalink / raw)
  To: fuego

[-- Attachment #1: Type: text/plain, Size: 536 bytes --]

Hi All,

I am fuego as test environment for my testing purpose.
I need ubuntu16 as the image where fuego can run.

I tried to create the docker image with Fuego with Ubuntu16.
This is not working because, ubuntu 16 default comes with openjdk-8-jre
openjdk-8-jdk.

I had to downgrade to openjdk-7-jre openjdk-7-jdk of my ubuntu 16 docker to
make fuego work.


Is there a work arround, so as to make jenkins_1.609.2_all.deb to work with
openjdk-8-jre openjdk-8-jdk?


Please provide some solutoion  on this.

-- 
Thanks & Regards
Vivek.P

[-- Attachment #2: Type: text/html, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Fuego] Fuego doesnt work with Ubuntu 16 image
  2017-02-28  4:27 [Fuego] Fuego doesnt work with Ubuntu 16 image Vivek Padmanabhan
@ 2017-03-01  1:22 ` Bird, Timothy
  2017-03-02 13:22   ` Vivek Padmanabhan
  0 siblings, 1 reply; 5+ messages in thread
From: Bird, Timothy @ 2017-03-01  1:22 UTC (permalink / raw)
  To: Vivek Padmanabhan, fuego



> -----Original Message-----
> From: Vivek Padmanabhan on Monday, February 27, 2017 8:28 PM
>
> Hi All,
> 
> I am fuego as test environment for my testing purpose.
> I need ubuntu16 as the image where fuego can run.
> 
> 
> I tried to create the docker image with Fuego with Ubuntu16.
> This is not working because, ubuntu 16 default comes with openjdk-8-jre
> openjdk-8-jdk.
> 
> I had to downgrade to openjdk-7-jre openjdk-7-jdk of my ubuntu 16 docker
> to make fuego work.
>  
> Is there a work arround, so as to make jenkins_1.609.2_all.deb to work with
> openjdk-8-jre openjdk-8-jdk?


I presume you mean jenkins_1.509.2_all.deb here.

> 
> Please provide some solution  on this.

Just to clarify - you want to run Fuego with Ubuntu 16 (.04 or .10) in the docker
container?  (not the host, right?)  And the 1.509.2 version of Jenkins does not
support the default openjdk version.  I presume you are modifying the Dockerfile
to change from a Debian installation to an Ubuntu installation.

Is there some reason this is desirable?  Do you have another package or software
you need in the container, that is only available on Ubuntu?  Using a different
container may mean you get different test binaries and ultimately different
results, so we'd like to encourage people to use the same OS inside the container
if possible.

If you really want to change things, though, there is hope on the horizon.
Daniel Sangorrin of Toshiba is working on a version of Fuego that uses the latest
Jenkins version.  You can try this out, if you'd like,
using his source repository.  There are notes about this at:
http://bird.org/fuego/Notes_on_Jenkins_integration_refactoring

 -- Tim

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Fuego] Fuego doesnt work with Ubuntu 16 image
  2017-03-01  1:22 ` Bird, Timothy
@ 2017-03-02 13:22   ` Vivek Padmanabhan
  2017-03-02 22:10     ` Bird, Timothy
  0 siblings, 1 reply; 5+ messages in thread
From: Vivek Padmanabhan @ 2017-03-02 13:22 UTC (permalink / raw)
  To: Bird, Timothy; +Cc: fuego

[-- Attachment #1: Type: text/plain, Size: 2656 bytes --]

Hi Tim,

Thank you for quick reply.
Hope I can contact you through my sony mail id  regarding fuego for any
further clarification.

>>Just to clarify - you want to run Fuego with Ubuntu 16 (.04 or .10) in
the docker
container?  (not the host, right?) .

Yes i want to use ubuntu 16.04 inside the docker container.

>> I presume you are modifying the Dockerfile
to change from a Debian installation to an Ubuntu installation

Yes we modified the docker file from Debian installation to Ubuntu
installation.

>>Is there some reason this is desirable?  Do you have another package or
software
you need in the container, that is only available on Ubuntu?

I had a special requirement of running  my cross tool chain in ubuntu16.04,
so we tried this method.

Regards
Vivek.P



On Wed, Mar 1, 2017 at 6:52 AM, Bird, Timothy <Tim.Bird@sony.com> wrote:

>
>
> > -----Original Message-----
> > From: Vivek Padmanabhan on Monday, February 27, 2017 8:28 PM
> >
> > Hi All,
> >
> > I am fuego as test environment for my testing purpose.
> > I need ubuntu16 as the image where fuego can run.
> >
> >
> > I tried to create the docker image with Fuego with Ubuntu16.
> > This is not working because, ubuntu 16 default comes with openjdk-8-jre
> > openjdk-8-jdk.
> >
> > I had to downgrade to openjdk-7-jre openjdk-7-jdk of my ubuntu 16 docker
> > to make fuego work.
> >
> > Is there a work arround, so as to make jenkins_1.609.2_all.deb to work
> with
> > openjdk-8-jre openjdk-8-jdk?
>
>
> I presume you mean jenkins_1.509.2_all.deb here.
>
> >
> > Please provide some solution  on this.
>
> Just to clarify - you want to run Fuego with Ubuntu 16 (.04 or .10) in the
> docker
> container?  (not the host, right?)  And the 1.509.2 version of Jenkins
> does not
> support the default openjdk version.  I presume you are modifying the
> Dockerfile
> to change from a Debian installation to an Ubuntu installation.
>
> Is there some reason this is desirable?  Do you have another package or
> software
> you need in the container, that is only available on Ubuntu?  Using a
> different
> container may mean you get different test binaries and ultimately different
> results, so we'd like to encourage people to use the same OS inside the
> container
> if possible.
>
> If you really want to change things, though, there is hope on the horizon.
> Daniel Sangorrin of Toshiba is working on a version of Fuego that uses the
> latest
> Jenkins version.  You can try this out, if you'd like,
> using his source repository.  There are notes about this at:
> http://bird.org/fuego/Notes_on_Jenkins_integration_refactoring
>
>  -- Tim
>



-- 
Regards
Vivek.P

+91 8050807301 (M)

[-- Attachment #2: Type: text/html, Size: 4608 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Fuego] Fuego doesnt work with Ubuntu 16 image
  2017-03-02 13:22   ` Vivek Padmanabhan
@ 2017-03-02 22:10     ` Bird, Timothy
  2017-03-04 10:07       ` Vivek Padmanabhan
  0 siblings, 1 reply; 5+ messages in thread
From: Bird, Timothy @ 2017-03-02 22:10 UTC (permalink / raw)
  To: Vivek Padmanabhan; +Cc: fuego



> -----Original Message-----
> From: Vivek Padmanabhan on Thursday, March 02, 2017 5:22 AM
> Hi Tim,
> 
> Thank you for quick reply.
> Hope I can contact you through my sony mail id  regarding fuego for any
> further clarification.
> 
> >>Just to clarify - you want to run Fuego with Ubuntu 16 (.04 or .10) in the
> docker
> container?  (not the host, right?) .
> 
> Yes i want to use ubuntu 16.04 inside the docker container.
> 
> >> I presume you are modifying the Dockerfile
> to change from a Debian installation to an Ubuntu installation
> 
> Yes we modified the docker file from Debian installation to Ubuntu
> installation.
> 
> >>Is there some reason this is desirable?  Do you have another package or
> software you need in the container, that is only available on Ubuntu?
> 
> I had a special requirement of running  my cross tool chain in ubuntu16.04,
> so we tried this method.


OK - that's interesting.  Can you share what tool chain this is? (It's
OK if you can't - I'm just curious.)

There are no plans to update the version of 
Jenkins in the "static" packaged version of Fuego.  I'll be working with
Daniel over the next few weeks to integrate our changes and produce
a version of Fuego that can run with the latest Jenkins.  However, this
won't be available for a while.

If you've successfully gotten it working by downgrading the openjdk
version inside the container, I would say this is about as good as you can
get with the current system.  Aside from this being an obnoxious extra
step, are you seeing any problems with Fuego in this configuration?

As an aside, I'm a bit surprised that openjdk-8 doesn't support Jenkins 1.509.2
When you initially switched to Ubuntu, what problems did you encounter?
Did Jenkins just fall over during or after the install?

To directly answer your question:
> 	> Is there a work arround, so as to make jenkins_1.609.2_all.deb to
> work with
> 	> openjdk-8-jre openjdk-8-jdk?
Not that I'm aware of.  I might be able to do some research here, but
I'd need to try to reproduce your problem and see what the issue is.

I'd like to get your Dockerfile for creating the container for Ubuntu.
That might be useful in the future.  If you could send it to me that would be
great.

Sorry I don't have a better answer.
 -- Tim

> On Wed, Mar 1, 2017 at 6:52 AM, Bird, Timothy <Tim.Bird@sony.com
> <mailto:Tim.Bird@sony.com> > wrote:
> 
> 
> 
> 
> 	> -----Original Message-----
> 	> From: Vivek Padmanabhan on Monday, February 27, 2017 8:28 PM
> 	>
> 	> Hi All,
> 	>
> 	> I am fuego as test environment for my testing purpose.
> 	> I need ubuntu16 as the image where fuego can run.
> 	>
> 	>
> 	> I tried to create the docker image with Fuego with Ubuntu16.
> 	> This is not working because, ubuntu 16 default comes with
> openjdk-8-jre
> 	> openjdk-8-jdk.
> 	>
> 	> I had to downgrade to openjdk-7-jre openjdk-7-jdk of my ubuntu
> 16 docker
> 	> to make fuego work.
> 	>
> 	> Is there a work arround, so as to make jenkins_1.609.2_all.deb to
> work with
> 	> openjdk-8-jre openjdk-8-jdk?
> 
> 
> 	I presume you mean jenkins_1.509.2_all.deb here.
> 
> 	>
> 	> Please provide some solution  on this.
> 
> 	Just to clarify - you want to run Fuego with Ubuntu 16 (.04 or .10) in
> the docker
> 	container?  (not the host, right?)  And the 1.509.2 version of Jenkins
> does not
> 	support the default openjdk version.  I presume you are modifying
> the Dockerfile
> 	to change from a Debian installation to an Ubuntu installation.
> 
> 	Is there some reason this is desirable?  Do you have another package
> or software
> 	you need in the container, that is only available on Ubuntu?  Using a
> different
> 	container may mean you get different test binaries and ultimately
> different
> 	results, so we'd like to encourage people to use the same OS inside
> the container
> 	if possible.
> 
> 	If you really want to change things, though, there is hope on the
> horizon.
> 	Daniel Sangorrin of Toshiba is working on a version of Fuego that uses
> the latest
> 	Jenkins version.  You can try this out, if you'd like,
> 	using his source repository.  There are notes about this at:
> 	http://bird.org/fuego/Notes_on_Jenkins_integration_refactoring
> <http://bird.org/fuego/Notes_on_Jenkins_integration_refactoring>
> 
> 	 -- Tim
> 
> 
> 
> 
> 
> --
> 
> Regards
> Vivek.P
> 
> +91 8050807301 (M)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Fuego] Fuego doesnt work with Ubuntu 16 image
  2017-03-02 22:10     ` Bird, Timothy
@ 2017-03-04 10:07       ` Vivek Padmanabhan
  0 siblings, 0 replies; 5+ messages in thread
From: Vivek Padmanabhan @ 2017-03-04 10:07 UTC (permalink / raw)
  To: Bird, Timothy; +Cc: fuego


[-- Attachment #1.1: Type: text/plain, Size: 6830 bytes --]

Hi Tim,

Thank you for reply.

Please find my docker file attached.

I made only little changes to the existing docker file.

I added line 31 to 35  in docker file just to install openjdk-7-jre
openjdk-7-jdk, else openjdk-7-jre openjdk-7-jdk will not get install in
ubuntu 16.04.

+RUN DEBIAN_FRONTEND=noninteractive  apt-get update && apt-get -yV install
software-properties-common python-software-properties
+RUN echo deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial main >>
/etc/apt/sources.list
+COPY key.pgp /fuego-install
+RUN apt-key add /fuego-install/key.pgp
+RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -yV install
openjdk-7-jre openjdk-7-jdk


Attaching key.pgp also with this  mail.

With the attached Docker file fuego jenkins in working fine.


>>As an aside, I'm a bit surprised that openjdk-8 doesn't support Jenkins
1.509.2
>>When you initially switched to Ubuntu, what problems did you encounter?
>> Did Jenkins just fall over during or after the install?

If I install openjdk-8-jre openjdk-8-jdk in ubuntu 16.04.
Docker image is not getting created .

with below errors:
==================================================================
Retrying wget -v --no-proxy
http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar -O jenkins-cli.jar
 * Restarting Jenkins Continuous Integration Server jenkins
   ...done.
--2017-03-04 09:07:03--
http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:8080... connected.
HTTP request sent, awaiting response... 503 Service Temporarily Unavailable
2017-03-04 09:07:03 ERROR 503: Service Temporarily Unavailable.
============================================================================

goes in an infinite loop at
updates.sh -> constant.sh -> sync_fetch_jenkins_cli()  ( infinite loop)
This is because jenkins is not able to start.



Regards
Vivek.P







On Fri, Mar 3, 2017 at 3:40 AM, Bird, Timothy <Tim.Bird@sony.com> wrote:

>
>
> > -----Original Message-----
> > From: Vivek Padmanabhan on Thursday, March 02, 2017 5:22 AM
> > Hi Tim,
> >
> > Thank you for quick reply.
> > Hope I can contact you through my sony mail id  regarding fuego for any
> > further clarification.
> >
> > >>Just to clarify - you want to run Fuego with Ubuntu 16 (.04 or .10) in
> the
> > docker
> > container?  (not the host, right?) .
> >
> > Yes i want to use ubuntu 16.04 inside the docker container.
> >
> > >> I presume you are modifying the Dockerfile
> > to change from a Debian installation to an Ubuntu installation
> >
> > Yes we modified the docker file from Debian installation to Ubuntu
> > installation.
> >
> > >>Is there some reason this is desirable?  Do you have another package or
> > software you need in the container, that is only available on Ubuntu?
> >
> > I had a special requirement of running  my cross tool chain in
> ubuntu16.04,
> > so we tried this method.
>
>
> OK - that's interesting.  Can you share what tool chain this is? (It's
> OK if you can't - I'm just curious.)
>
> There are no plans to update the version of
> Jenkins in the "static" packaged version of Fuego.  I'll be working with
> Daniel over the next few weeks to integrate our changes and produce
> a version of Fuego that can run with the latest Jenkins.  However, this
> won't be available for a while.
>
> If you've successfully gotten it working by downgrading the openjdk
> version inside the container, I would say this is about as good as you can
> get with the current system.  Aside from this being an obnoxious extra
> step, are you seeing any problems with Fuego in this configuration?
>
> As an aside, I'm a bit surprised that openjdk-8 doesn't support Jenkins
> 1.509.2
> When you initially switched to Ubuntu, what problems did you encounter?
> Did Jenkins just fall over during or after the install?
>
> To directly answer your question:
> >       > Is there a work arround, so as to make jenkins_1.609.2_all.deb to
> > work with
> >       > openjdk-8-jre openjdk-8-jdk?
> Not that I'm aware of.  I might be able to do some research here, but
> I'd need to try to reproduce your problem and see what the issue is.
>
> I'd like to get your Dockerfile for creating the container for Ubuntu.
> That might be useful in the future.  If you could send it to me that would
> be
> great.
>
> Sorry I don't have a better answer.
>  -- Tim
>
> > On Wed, Mar 1, 2017 at 6:52 AM, Bird, Timothy <Tim.Bird@sony.com
> > <mailto:Tim.Bird@sony.com> > wrote:
> >
> >
> >
> >
> >       > -----Original Message-----
> >       > From: Vivek Padmanabhan on Monday, February 27, 2017 8:28 PM
> >       >
> >       > Hi All,
> >       >
> >       > I am fuego as test environment for my testing purpose.
> >       > I need ubuntu16 as the image where fuego can run.
> >       >
> >       >
> >       > I tried to create the docker image with Fuego with Ubuntu16.
> >       > This is not working because, ubuntu 16 default comes with
> > openjdk-8-jre
> >       > openjdk-8-jdk.
> >       >
> >       > I had to downgrade to openjdk-7-jre openjdk-7-jdk of my ubuntu
> > 16 docker
> >       > to make fuego work.
> >       >
> >       > Is there a work arround, so as to make jenkins_1.609.2_all.deb to
> > work with
> >       > openjdk-8-jre openjdk-8-jdk?
> >
> >
> >       I presume you mean jenkins_1.509.2_all.deb here.
> >
> >       >
> >       > Please provide some solution  on this.
> >
> >       Just to clarify - you want to run Fuego with Ubuntu 16 (.04 or
> .10) in
> > the docker
> >       container?  (not the host, right?)  And the 1.509.2 version of
> Jenkins
> > does not
> >       support the default openjdk version.  I presume you are modifying
> > the Dockerfile
> >       to change from a Debian installation to an Ubuntu installation.
> >
> >       Is there some reason this is desirable?  Do you have another
> package
> > or software
> >       you need in the container, that is only available on Ubuntu?
> Using a
> > different
> >       container may mean you get different test binaries and ultimately
> > different
> >       results, so we'd like to encourage people to use the same OS inside
> > the container
> >       if possible.
> >
> >       If you really want to change things, though, there is hope on the
> > horizon.
> >       Daniel Sangorrin of Toshiba is working on a version of Fuego that
> uses
> > the latest
> >       Jenkins version.  You can try this out, if you'd like,
> >       using his source repository.  There are notes about this at:
> >       http://bird.org/fuego/Notes_on_Jenkins_integration_refactoring
> > <http://bird.org/fuego/Notes_on_Jenkins_integration_refactoring>
> >
> >        -- Tim
> >
> >
> >
> >
> >
> > --
> >
> > Regards
> > Vivek.P
> >
> > +91 8050807301 (M)
>



-- 
Regards
Vivek.P

+91 8050807301 (M)

[-- Attachment #1.2: Type: text/html, Size: 12815 bytes --]

[-- Attachment #2: Dockerfile --]
[-- Type: application/octet-stream, Size: 8348 bytes --]

# ==============================================================================
# WARNING: containter created from this image should be run with userdata mounted at /userdata inside docker fs
# ==============================================================================

FROM ubuntu:16.04
MAINTAINER tim.bird@am.sony.com

# ==============================================================================
# Influential environment variables
# ==============================================================================

ARG HTTP_PROXY
ENV INST_FUEGO_ENGINE_PATH /home/jenkins
ENV INST_FUEGO_FRONTEND_PATH /var/lib/jenkins
# URL_PREFIX sets Jenkins URL --prefix note: no trailing "/" at the end!
ENV URL_PREFIX /fuego

# ==============================================================================
# Prepare basic image
# ==============================================================================

WORKDIR /fuego-install
RUN dpkg --add-architecture i386
#RUN dpkg --add-architecture AMD64 
#RUN echo deb http://ftp.us.debian.org/debian trusty main non-free >> /etc/apt/sources.list
#RUN echo deb http://archive.ubuntu.com/ubuntu trusty main universe" >> /etc/apt/sources.list 

RUN if [ -n "$HTTP_PROXY" ]; then echo 'Acquire::http::proxy "'$HTTP_PROXY'";' > /etc/apt/apt.conf.d/80proxy; fi
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -yV install apt-utils daemon gcc make python-paramiko python-lxml python-simplejson python-matplotlib libtool xmlstarlet autoconf automake rsync  iperf  netpipe-tcp texlive-latex-base sshpass wget git diffstat sudo net-tools vim openssh-server curl inotify-tools lzop binutils byacc bison flex rpm iputils-ping isc-dhcp-server nfs-kernel-server tftpd-hpa xinetd texinfo build-essential zlib1g-dev gawk  libglib2.0-dev docbook-utils libncurses-dev tofrodos gfortran libffi-dev libdbus-1-dev tk-dev tcl-dev libxml2-dev liblzma-dev libbfd-dev libiberty-dev cvs libcap-dev quilt sendmail mailutils

RUN DEBIAN_FRONTEND=noninteractive  apt-get update && apt-get -yV install software-properties-common python-software-properties
RUN echo deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial main >> /etc/apt/sources.list
COPY key.pgp /fuego-install
RUN apt-key add /fuego-install/key.pgp
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -yV install openjdk-7-jre openjdk-7-jdk

RUN /bin/bash -c 'echo "dash dash/sh boolean false" | debconf-set-selections ; DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash'
COPY frontend-install/jenkins_1.509.2_all.deb /fuego-install/
RUN dpkg -i /fuego-install/jenkins_1.509.2_all.deb
RUN if [ -n "$HTTP_PROXY" ]; then echo "use_proxy = on" >> /etc/wgetrc && echo 'http_proxy =' $HTTP_PROXY >> /etc/wgetrc; fi
RUN /bin/bash -c 'wget -nv "http://downloads.sourceforge.net/project/getfo/texml/texml-2.0.2/texml-2.0.2.tar.gz" -O texml.tar.gz ; tar xvf texml.tar.gz; cd texml-2.0.2 ; python setup.py install; cd -' 
RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config

# ==============================================================================
# Install debian armhf cross toolchain
# ==============================================================================

#RUN echo deb http://emdebian.org/tools/debian/ trusty main > /etc/apt/sources.list.d/crosstools.list
#RUN echo deb http://emdebian.org/tools/debian/ trusty main > /etc/apt/sources.list.d/crosstools.list
#RUN dpkg --add-architecture armhf
#RUN if [ -n "$HTTP_PROXY" ]; then curl --proxy $HTTP_PROXY http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | sudo apt-key add -; else curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | sudo apt-key add -; fi
#RUN DEBIAN_FRONTEND=noninteractive apt-get update
#RUN DEBIAN_FRONTEND=noninteractive apt-get -yV install crossbuild-essential-armhf

# ==============================================================================
# get Fuego core via git
# ==============================================================================

ENV INST_FUEGO_CORE_GIT_REVISION c2ddbab

RUN mkdir -p /home/jenkins
RUN if [ -n "$HTTP_PROXY" ]; then git config --global http.proxy $HTTP_PROXY; fi
#RUN git clone https://bitbucket.org/tbird20d/fuego-core.git $INST_FUEGO_ENGINE_PATH/fuego && cd $INST_FUEGO_ENGINE_PATH/fuego && git reset --hard $INST_FUEGO_CORE_NEXT_GIT_REVISION && cd /fuego-install
RUN git clone -b next https://bitbucket.org/tbird20d/fuego-core.git $INST_FUEGO_ENGINE_PATH/fuego && cd $INST_FUEGO_ENGINE_PATH/fuego && cd /fuego-install
RUN ln -s $INST_FUEGO_ENGINE_PATH/fuego/engine/* $INST_FUEGO_ENGINE_PATH/
RUN ln -s $INST_FUEGO_ENGINE_PATH/fuego/jobs $INST_FUEGO_FRONTEND_PATH/jobs

COPY docs $INST_FUEGO_FRONTEND_PATH/userContent/docs/

RUN ln -s $INST_FUEGO_ENGINE_PATH/fuego/engine/scripts/ftc /usr/local/bin/

# ==============================================================================
# copy a miscelaneous Fuego script
# ==============================================================================

COPY fuego-scripts/maintain_config_link.sh /usr/local/bin/

# ==============================================================================
# get ttc script and helpers
# ==============================================================================
RUN git clone https://github.com/tbird20d/ttc.git $INST_FUEGO_ENGINE_PATH/ttc
RUN $INST_FUEGO_ENGINE_PATH/ttc/install.sh /usr/local/bin
RUN perl -p -i -e "s#config_dir = \"/etc\"#config_dir = \"/userdata/conf\"#" /usr/local/bin/ttc

# ==============================================================================
# Init userdata
# ==============================================================================

RUN ln -s /userdata/buildzone $INST_FUEGO_ENGINE_PATH/buildzone
RUN ln -s /userdata/work $INST_FUEGO_ENGINE_PATH/work
RUN ln -s /userdata/logs $INST_FUEGO_ENGINE_PATH/logs
RUN ln -s /userdata/logs $INST_FUEGO_FRONTEND_PATH/logs
RUN ln -s /userdata/conf/boards $INST_FUEGO_ENGINE_PATH/overlays/boards
RUN ln -s /userdata/conf/config.xml $INST_FUEGO_FRONTEND_PATH/config.xml
RUN ln -s /userdata/conf/tools.sh $INST_FUEGO_ENGINE_PATH/scripts/tools.sh
#RUN mkdir $INST_FUEGO_ENGINE_PATH/logs/logruns

# ==============================================================================
# Initialize Jenkins plugin configs
# ==============================================================================
RUN DEBIAN_FRONTEND=noninteractive  apt-get update
RUN ln -s $INST_FUEGO_ENGINE_PATH/fuego/plugins-conf/scriptler $INST_FUEGO_FRONTEND_PATH/
RUN ln -s $INST_FUEGO_ENGINE_PATH/fuego/plugins-conf/sidebar-link.xml $INST_FUEGO_FRONTEND_PATH/

COPY frontend-install/jenkins.cfg /etc/default/jenkins
COPY fuego-scripts/subsitute_jen_url_prefix.sh /fuego-install/
RUN /fuego-install/subsitute_jen_url_prefix.sh /etc/default/jenkins

# ==============================================================================
# Install Jenkins UI updates
# ==============================================================================

RUN chown -R jenkins  $INST_FUEGO_ENGINE_PATH $INST_FUEGO_FRONTEND_PATH /var/cache/jenkins /etc/default/jenkins
COPY frontend-install/plugins $INST_FUEGO_FRONTEND_PATH/
COPY frontend-install/jenkins-updates /fuego-install/jenkins-updates
RUN /fuego-install/subsitute_jen_url_prefix.sh /fuego-install/jenkins-updates
WORKDIR /fuego-install/jenkins-updates
RUN echo "installing custom UI updates"
RUN /etc/init.d/jenkins start && ./updates.sh
RUN ln -s $INST_FUEGO_ENGINE_PATH/logs $INST_FUEGO_FRONTEND_PATH/userContent/fuego.logs

# ==============================================================================
# Setup daemons config
# ==============================================================================

COPY container-cfg/sshd_config /etc/ssh/sshd_config
COPY fuego-scripts/user-setup.sh /fuego-install/
RUN /fuego-install/user-setup.sh

# ==============================================================================
# Clear workspace
# ==============================================================================

WORKDIR /home/jenkins

# ==============================================================================
# Setup startup command
# ==============================================================================

COPY fuego-scripts /
COPY fuego-scripts/fuego-start-cmd.sh /etc/
CMD /etc/fuego-start-cmd.sh
RUN ln -s /userdata/target /usr/local/arm-xxxx-linux-gnueabi

[-- Attachment #3: key.pgp --]
[-- Type: application/octet-stream, Size: 594 bytes --]

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1

mI0ES8OmlQEEALy8ttT3KgmjoqCkeU7S04/j615RDivV0CHv+5mdJFQY10wo6v6k
rmXxK757eIoRDN1B3ztl8vjqLHxi8oA+f4inZcrrIZYjW0MghO+IcKEbKCrPUPjD
fQBSIvZD5ZaiibMNwZJ6TidS2r6nSAH+aoMRgXYycQPGkAHDcaPKY54zABEBAAG0
JExhdW5jaHBhZCBPcGVuSkRLIGJ1aWxkcyAoYWxsIGFyY2hzKYi2BBMBAgAgBQJL
w6aVAhsDBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQ65sdiIb0TiraSgQAr+WD
+qGcW5yrkS2QBMq+g+Ew2tLqeDLw8Y2xZ4BhnRzB3WljBfwj7wt/KOugjJWaEWuY
GiuLBf6vy+At5VtXs0FSk6oIZR0XZvUVamFPXeTkZqUiw4oTNlBTeOhAxrevRWzn
mLuRAIWlr0dARJyLCK5MMVVhesouoG8WpOrniXs=
=7ooG
-----END PGP PUBLIC KEY BLOCK-----


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-04 10:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-28  4:27 [Fuego] Fuego doesnt work with Ubuntu 16 image Vivek Padmanabhan
2017-03-01  1:22 ` Bird, Timothy
2017-03-02 13:22   ` Vivek Padmanabhan
2017-03-02 22:10     ` Bird, Timothy
2017-03-04 10:07       ` Vivek Padmanabhan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.