Skip to content

Commit

Permalink
Merge branch 'master' of github.com:KaveIO/KaveToolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Chan Naseeb committed Mar 13, 2017
2 parents 044ca7d + 85fefcd commit 463e438
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 9 deletions.
9 changes: 9 additions & 0 deletions config/kaveinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,15 @@ def detect_linux_version():
return "Ubuntu16"
except:
pass
try:
status3, output3, err = mycmd("cat /etc/redhat-release")
if not status3 and "Centos" in output3:
if "release 6" in output3.lower():
return "Centos6"
if "release 7" in output3.lower():
return "Centos6"
except:
pass
status, output, err = mycmd("uname -r")
if status:
raise RuntimeError("Problem detecting linux version: uname -r got:\n\t" + str(
Expand Down
12 changes: 9 additions & 3 deletions docker/c7.workstation/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
FROM kave/kavetoolbox:3.1-Beta.c7.node
MAINTAINER KAVE <kave@kpmg.com>
RUN yum clean all
RUN wget http://repos:kaverepos@repos.dna.kpmglab.com/noarch/KaveToolbox/3.1-Beta/kavetoolbox-installer-3.1-Beta.sh
RUN rm -rf /opt/anaconda /opt/eclipse /opt/kettle
RUN /bin/bash kavetoolbox-installer-3.1-Beta.sh --clean-before

# hack linux version detection for windows builds (docker inconsistent!)
RUN rm -f /opt/KaveToolbox/pro
RUN mv /opt/KaveToolbox/3.0-Beta /opt/KaveToolbox_tmp
RUN rm -rf /opt/KaveToolbox
RUN sed -i 's/return output$/return "Centos7"\n/' /opt/KaveToolbox_tmp/config/kaveinstall.py
RUN /opt/KaveToolbox_tmp/scripts/KaveInstall
RUN rm -rf /opt/KaveToolbox_tmp

12 changes: 9 additions & 3 deletions docker/u14.workstation/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
FROM kave/kavetoolbox:3.1-Beta.u14.node
MAINTAINER KAVE <kave@kpmg.com>
RUN apt-get update
RUN wget http://repos:kaverepos@repos.dna.kpmglab.com/noarch/KaveToolbox/3.1-Beta/kavetoolbox-installer-3.1-Beta.sh
RUN rm -rf /opt/anaconda /opt/eclipse /opt/kettle
RUN /bin/bash kavetoolbox-installer-3.1-Beta.sh --clean-before

# hack linux version detection for windows builds (docker inconsistent!)
RUN rm -f /opt/KaveToolbox/pro
RUN mv /opt/KaveToolbox/3.1-Beta /opt/KaveToolbox_tmp
RUN rm -rf /opt/KaveToolbox
RUN sed -i 's/return output$/return "Ubuntu14"\n/' /opt/KaveToolbox_tmp/config/kaveinstall.py
RUN /opt/KaveToolbox_tmp/scripts/KaveInstall
RUN rm -rf /opt/KaveToolbox_tmp

12 changes: 9 additions & 3 deletions docker/u16.workstation/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
FROM kave/kavetoolbox:3.1-Beta.u16.node
MAINTAINER KAVE <kave@kpmg.com>
RUN apt-get update
RUN wget http://repos:kaverepos@repos.dna.kpmglab.com/noarch/KaveToolbox/3.1-Beta/kavetoolbox-installer-3.1-Beta.sh
RUN rm -rf /opt/anaconda /opt/eclipse /opt/kettle
RUN /bin/bash kavetoolbox-installer-3.1-Beta.sh --clean-before

# hack linux version detection for windows builds (docker inconsistent!)
RUN rm -f /opt/KaveToolbox/pro
RUN mv /opt/KaveToolbox/3.1-Beta /opt/KaveToolbox_tmp
RUN rm -rf /opt/KaveToolbox
RUN sed -i 's/return output$/return "Ubuntu16"\n/' /opt/KaveToolbox_tmp/config/kaveinstall.py
RUN /opt/KaveToolbox_tmp/scripts/KaveInstall
RUN rm -rf /opt/KaveToolbox_tmp

0 comments on commit 463e438

Please sign in to comment.