-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (34 loc) · 1.66 KB
/
Dockerfile
File metadata and controls
46 lines (34 loc) · 1.66 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
# Versao do Java
FROM eclipse-temurin:8-jdk
MAINTAINER Renato araujorenato045@gmail.com
LABEL Pentaho='Server 9.4 com drivers postgres, oracle e mysql'
# Init ENV
ENV BISERVER_VERSION 9.4 #Versão do Pentaho pode ser alterada coforme os binaŕios, visitar # Link em REAME.md
ENV BISERVER_TAG 9.4.0.0-343
ENV PENTAHO_HOME /opt/pentaho
# Aplica a JAVA_HOME corretamente
ENV PENTAHO_JAVA_HOME $JAVA_HOME
# Install Dependences
RUN apt-get update; apt-get install zip -y; \
apt-get install wget unzip git vim -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 -R pentaho:pentaho ${PENTAHO_HOME};
# Download Pentaho BI Server
# Disable first-time startup prompt
# Disable daemon mode for Tomcat
RUN /usr/bin/wget --progress=dot:giga \
"https://github.com/ambientelivre/legacy-pentaho-ce/releases/download/pentaho-server-ce-${BISERVER_TAG}/pentaho-server-ce-${BISERVER_TAG}.zip" \
-O /tmp/pentaho-server-ce-${BISERVER_TAG}.zip; \
/usr/bin/unzip -q /tmp/pentaho-server-ce-${BISERVER_TAG}.zip -d $PENTAHO_HOME; \
rm -f /tmp/pentaho-server-ce-${BISERVER_TAG}.zip $PENTAHO_HOME/pentaho-server/promptuser.sh; \
sed -i -e 's/\(exec ".*"\) start/\1 run/' $PENTAHO_HOME/pentaho-server/tomcat/bin/startup.sh; \
chmod +x $PENTAHO_HOME/pentaho-server/start-pentaho.sh;
#ADD DB drivers
COPY ./lib/. $PENTAHO_HOME/pentaho-server/tomcat/lib
#COPY ./scripts/. ${PENTAHO_HOME}/pentaho-server/scripts
#Always non-root user
USER pentaho
WORKDIR /opt/pentaho
EXPOSE 8080 8009
CMD ["sh", "/opt/pentaho/pentaho-server/start-pentaho.sh"]
#ENTRYPOINT ["sh", "-c", "$PENTAHO_HOME/pentaho-server/scripts/run.sh"]