forked from 7studios/docker-pentaho-8.1
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
33 lines (22 loc) · 1.08 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM openjdk:latest
MAINTAINER greggentling https://github.com/greggentling
ENV PENTAHO_HOME /opt/pentaho
RUN . /etc/environment
ENV JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk-amd64
ENV PENTAHO_JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk-amd64
# Install Dependences
RUN apt-get update; apt-get install zip netcat postgresql-client -y; \
apt-get install wget unzip git vim cron libwebkitgtk-1.0-0 -y; \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mkdir ${PENTAHO_HOME}; useradd -s /bin/bash -d ${PENTAHO_HOME} pentaho; chown pentaho:pentaho ${PENTAHO_HOME}
RUN mkdir /work
VOLUME /etc/cron.d
VOLUME /work
RUN wget --progress=dot:giga https://downloads.sourceforge.net/project/pentaho/Pentaho%208.2/server/pentaho-server-ce-8.2.0.0-342.zip -O /tmp/pentaho-server.zip
RUN /usr/bin/unzip -q /tmp/pentaho-server.zip -d $PENTAHO_HOME; \
rm -f /tmp/pentaho-server.zip;
RUN rm -f /opt/pentaho/pentaho-server/promptuser.sh
EXPOSE 8080
COPY run_pentaho_server.sh /usr/local/bin
RUN chmod +x /usr/local/bin/run_pentaho_server.sh
CMD /usr/local/bin/run_pentaho_server.sh