From 9d5baf9f02331ad81cb95f7b52e39bf86972cc8e Mon Sep 17 00:00:00 2001
From: Vincent Massol <vincent@massol.net>
Date: Mon, 18 Sep 2017 17:50:05 +0200
Subject: [PATCH] XDOCKER-33: Libreoffice is not starting correctly

---
 8/mysql-tomcat/Dockerfile    | 2 ++
 8/postgres-tomcat/Dockerfile | 2 ++
 9/mysql-tomcat/Dockerfile    | 2 ++
 9/postgres-tomcat/Dockerfile | 2 ++
 template/Dockerfile          | 2 ++
 5 files changed, 10 insertions(+)

diff --git a/8/mysql-tomcat/Dockerfile b/8/mysql-tomcat/Dockerfile
index 9693fd3..000dcf5 100644
--- a/8/mysql-tomcat/Dockerfile
+++ b/8/mysql-tomcat/Dockerfile
@@ -31,11 +31,13 @@ MAINTAINER Vincent Massol <vincent@massol.net>
 # Note: when using docker-compose, the ENV values below are overridden from the .env file.
 
 # Install LibreOffice + other tools
+# Note that procps is required to get ps which is used by JODConverter to start LibreOffice
 RUN apt-get update && \
   apt-get --no-install-recommends -y install \
     curl \
     libreoffice \
     unzip \
+    procps \
     libmysql-java && \
   rm -rf /var/lib/apt/lists/*
 
diff --git a/8/postgres-tomcat/Dockerfile b/8/postgres-tomcat/Dockerfile
index 6c5a454..a119d01 100644
--- a/8/postgres-tomcat/Dockerfile
+++ b/8/postgres-tomcat/Dockerfile
@@ -31,11 +31,13 @@ MAINTAINER Vincent Massol <vincent@massol.net>
 # Note: when using docker-compose, the ENV values below are overridden from the .env file.
 
 # Install LibreOffice + other tools
+# Note that procps is required to get ps which is used by JODConverter to start LibreOffice
 RUN apt-get update && \
   apt-get --no-install-recommends -y install \
     curl \
     libreoffice \
     unzip \
+    procps \
     libpostgresql-jdbc-java && \
   rm -rf /var/lib/apt/lists/*
 
diff --git a/9/mysql-tomcat/Dockerfile b/9/mysql-tomcat/Dockerfile
index 33ee80c..20833e2 100644
--- a/9/mysql-tomcat/Dockerfile
+++ b/9/mysql-tomcat/Dockerfile
@@ -31,11 +31,13 @@ MAINTAINER Vincent Massol <vincent@massol.net>
 # Note: when using docker-compose, the ENV values below are overridden from the .env file.
 
 # Install LibreOffice + other tools
+# Note that procps is required to get ps which is used by JODConverter to start LibreOffice
 RUN apt-get update && \
   apt-get --no-install-recommends -y install \
     curl \
     libreoffice \
     unzip \
+    procps \
     libmysql-java && \
   rm -rf /var/lib/apt/lists/*
 
diff --git a/9/postgres-tomcat/Dockerfile b/9/postgres-tomcat/Dockerfile
index a82d9fd..786bf7b 100644
--- a/9/postgres-tomcat/Dockerfile
+++ b/9/postgres-tomcat/Dockerfile
@@ -31,11 +31,13 @@ MAINTAINER Vincent Massol <vincent@massol.net>
 # Note: when using docker-compose, the ENV values below are overridden from the .env file.
 
 # Install LibreOffice + other tools
+# Note that procps is required to get ps which is used by JODConverter to start LibreOffice
 RUN apt-get update && \
   apt-get --no-install-recommends -y install \
     curl \
     libreoffice \
     unzip \
+    procps \
     libpostgresql-jdbc-java && \
   rm -rf /var/lib/apt/lists/*
 
diff --git a/template/Dockerfile b/template/Dockerfile
index 74c4c07..a3dc5e7 100644
--- a/template/Dockerfile
+++ b/template/Dockerfile
@@ -31,11 +31,13 @@ MAINTAINER Vincent Massol <vincent@massol.net>
 # Note: when using docker-compose, the ENV values below are overridden from the .env file.
 
 # Install LibreOffice + other tools
+# Note that procps is required to get ps which is used by JODConverter to start LibreOffice
 RUN apt-get update && \\
   apt-get --no-install-recommends -y install \\
     curl \\
     libreoffice \\
     unzip \\
+    procps \\
     <% if (db == 'mysql') print 'libmysql-java'
        if (db == 'postgres') print 'libpostgresql-jdbc-java' %> && \\
   rm -rf /var/lib/apt/lists/*
-- 
GitLab