Docker Image Build with PrivacyIdea plugin

Julien Cochennec julien.cochennec at ac-orleans-tours.fr
Mon Sep 7 09:05:42 UTC 2020


Hi,

I'm trying to make an IDP with this plugin 
https://github.com/wraezor/privacyIDEA-shibboleth-tfa

I'm using the following code :

FROM unicon/shibboleth-idp

MAINTAINER ***@***

ENV JAVA_HOME /opt/jre-home
ENV PATH "${JAVA_HOME}:${PATH}"

ADD shibboleth-idp/ /opt/shibboleth-idp/
RUN mkdir -p /opt/shibboleth-idp/edit-webapp/WEB-INF/lib
ADD privacyIDEA-shibboleth-tfa/target/shib-2fa-0.2.0-SNAPSHOT.jar 
/opt/shibboleth-idp/edit-webapp/WEB-INF/lib/shib-2fa.jar
ADD 
privacyIDEA-shibboleth-tfa/src/main/resources/conf/authn/privacyidea-authn-beans.xml 
/opt/shibboleth-idp/conf/authn/privacyidea-authn-beans.xml
ADD 
privacyIDEA-shibboleth-tfa/src/main/resources/conf/authn/privacyidea-authn-config.xml 
/opt/shibboleth-idp/conf/authn/privacyidea-authn-config.xml
ADD 
privacyIDEA-shibboleth-tfa/src/main/resources/conf/authn/mfa-authn-config.xml 
/opt/shibboleth-idp/conf/authn/mfa-authn-config.xml
ADD 
privacyIDEA-shibboleth-tfa/src/main/resources/flows/authn/privacyidea 
/opt/shibboleth-idp/flows/authn/privacyidea
ADD 
privacyIDEA-shibboleth-tfa/src/main/resources/views/login-pi-error.vm 
/opt/shibboleth-idp/views/login-pi-error.vm
ADD privacyIDEA-shibboleth-tfa/src/main/resources/views/privacyidea.vm 
/opt/shibboleth-idp/views/privacyidea.vm
RUN mkdir -p /opt/shibboleth-idp/dist/webapp
WORKDIR /opt/shibboleth-idp
RUN /opt/shibboleth-idp/bin/build.sh
RUN mv /opt/shibboleth-idp/dist/webapp /opt/shibboleth-idp/webapp

Did I miss something?

How can I restart the Jetty Server after the build?

I get an error in the build, like :

Step 19/19 : RUN /opt/jetty-home/bin/jetty.sh restart
  ---> Running in 6c26436f3278
Stopping Jetty: ERROR: no pid found at /var/run/jetty.pid
Starting Jetty: Invalid maximum heap size: -XmxJETTY_MAX_HEAP
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Thanks.

-- 
Julien Cochennec
Pôle de compétences - gestion des identités

Mél julien.cochennec at ac-orleans-tours.fr
Tél 02 38 83 48 88

DSI - Rectorat d'Orléans-Tours
10 Rue Molière
45000 Orléans
www.ac-orleans-tours.fr



More information about the dev mailing list