Skip to content
Browse files

Add initial Dockerfile for Pentaho 5.0.1

  • Loading branch information...
1 parent 54a5ec4 commit 26548fa9847856a3475bf4b8de283745dfa8ae40 @jwarlander committed
Showing with 44 additions and 0 deletions.
  1. +44 −0 Dockerfile
44 Dockerfile
@@ -0,0 +1,44 @@
+# Pentaho Business Analytics 5.0
+# VERSION 1.0
+FROM ubuntu
+MAINTAINER Johan Warlander,
+# Make sure package repository is up to date
+RUN echo "deb precise main universe" > /etc/apt/sources.list
+RUN apt-get update
+RUN apt-get upgrade -y
+# Install some basic utilities
+RUN apt-get install -y curl git zip
+# Add the Web Upd8 Oracle Java 7 repository
+RUN apt-get install -y python-software-properties
+RUN add-apt-repository ppa:webupd8team/java -y
+RUN apt-get update
+# Install Oracle Java 7
+RUN echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
+RUN apt-get install -y oracle-java7-installer
+# Set up Pentaho user + directory
+# - must have home directory where Pentaho can store config etc
+# - also set up installation directory with ownership
+RUN useradd -m pentaho
+RUN mkdir /opt/pentaho
+RUN chown pentaho:pentaho /opt/pentaho
+# Install Pentaho Business Analytics
+RUN su -c "curl -L -o /opt/pentaho/" pentaho
+RUN su -c "unzip -q /opt/pentaho/ -d /opt/pentaho/" pentaho
+# Disable first-time startup prompt
+RUN rm /opt/pentaho/biserver-ce/
+# Disable daemon mode for Tomcat
+RUN sed -i -e 's/\(exec ".*"\) start/\1 run/' /opt/pentaho/biserver-ce/tomcat/bin/
+# Set up runtime options
+EXPOSE 8080
+ENTRYPOINT ["/opt/pentaho/biserver-ce/"]
+USER pentaho

0 comments on commit 26548fa

Please sign in to comment.
Something went wrong with that request. Please try again.