Skip to content

Commit

Permalink
add packages for UI builds
Browse files Browse the repository at this point in the history
This builder image is being used inside fabric8-planner builds.
Jenkins file https://github.com/fabric8-ui/fabric8-planner/blob/master/Jenkinsfile#L14 --> groovy script https://github.com/fabric8io/fabric8-pipeline-library/blob/master/vars/fabric8UITemplate.groovy#L9 --> https://hub.docker.com/r/fabric8/fabric8-ui-builder/tags/

and fabric8-planner builds are showing an error on console 
```
make: Entering directory `/home/jenkins/workspace/8-ui_fabric8-planner_master-ZPP4IZOIOGZC2EHZQQ2O5PEN76546POVNRCE6JLDNBSQQFFN5RDA@2/node_modules/integer/build'
  CXX(target) Release/obj.target/integer/src/integer.o
make: g++: Command not found
make: *** [Release/obj.target/integer/src/integer.o] Error 127
make: Leaving directory `/home/jenkins/workspace/8-ui_fabric8-planner_master-ZPP4IZOIOGZC2EHZQQ2O5PEN76546POVNRCE6JLDNBSQQFFN5RDA@2/node_modules/integer/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
```
So I feel that we are missing few packages and need to install them. 
Following are packages we need to run the build smoothly
 - groupinstall 'Development Tools'
 - gcc-c++"

Ref:
facebook/react#3744 (comment)
https://unix.stackexchange.com/a/32439

Once merged I hope to see the changes in fabric8-cd whenever I use `container('ui')` in my Jenkins file
  • Loading branch information
pranavgore09 authored Jan 25, 2018
1 parent 3c57d6b commit b422fd8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,17 @@ RUN curl -LO https://github.com/Medium/phantomjs/releases/download/v$PHANTOM_VER
chmod +x /usr/bin/phantomjs && \
rm -rf phantomjs-$PHANTOM_VERSION-linux-x86_64 phantomjs-$PHANTOM_VERSION-linux-x86_64.tar.bz2

RUN yum groupinstall -y 'Development Tools'

RUN yum update -y && \
yum install -y make curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
yum install -y make curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker gcc-c++

RUN curl -L https://www.kernel.org/pub/software/scm/git/git-2.8.3.tar.gz | tar xzv && \
pushd git-2.8.3 && \
make prefix=/usr/ install && \
popd && \
rm -rf git-2.8.3* && \
yum remove -y make curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker && \
yum remove -y make curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker && \
yum clean all

RUN npm install -g jasmine-node protractor
Expand Down

0 comments on commit b422fd8

Please sign in to comment.