diff --git a/deploy/docker/compose/src/main/scripts/.env.sample b/deploy/docker/compose/src/main/scripts/.env.sample index 41de62c8..b41e94e2 100644 --- a/deploy/docker/compose/src/main/scripts/.env.sample +++ b/deploy/docker/compose/src/main/scripts/.env.sample @@ -114,15 +114,24 @@ # --- relative login path from external authentication service # REPOSITORY_SERVICE_AUTH_EXTERNAL_LOGIN=/shibboleth -# --- relative logout path from external authentication service -# REPOSITORY_SERVICE_AUTH_EXTERNAL_LOGOUT=/logout - # --- absolut path from external authentication provider # REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN_PROVIDERS_URL= # --- relative logout path from external authentication target provider # REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN_PROVIDER_TARGET_URL= +# --- relative logout path from external authentication service +# REPOSITORY_SERVICE_AUTH_EXTERNAL_LOGOUT=/Shibboleth.sso/Logout + +# --- should edu-sharing destroy it's session or does this the idp for us +# REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_DESTROY_SESSION=false + +# --- should edu-sharing redirected us to a page after the logout? +# REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_REDIRECT=false + +# --- the url to redirect to if redirect is true +# REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_REDIRECT_URL= + # --- guest user name # REPOSITORY_SERVICE_GUEST_USER= @@ -216,6 +225,11 @@ # --- public url protocol # SERVICES_RENDERING_SERVICE_PROT=http +# --- use dynamic url +# SERVICES_RENDERING_SERVICE_DYNAMIC_URL=false + +# --- custom content url +# SERVICES_RENDERING_SERVICE_CUSTOM_CONTENT_URL= # --- enables general data protection regulation # SERVICES_RENDERING_SERVICE_GDPR_ENABLED=false @@ -239,12 +253,15 @@ # SERVICES_RENDERING_RENDERMOODLE_URL=https://moodle.example/ # SERVICES_RENDERING_RENDERMOODLE_TOKEN= # SERVICES_RENDERING_RENDERMOODLE_CATEGORY_ID=1 +# SERVICES_RENDERING_RENDERMOODLE_TIMEOUT=90 # --- media converter settings # SERVICES_RENDERING_AUDIO_FORMATS=mp3 # SERVICES_RENDERING_VIDEO_FORMATS=mp4,webm # SERVICES_RENDERING_VIDEO_RESOLUTIONS=240,720,1080 # SERVICES_RENDERING_VIDEO_DEFAULT_RESOLUTION=720 +# SERVICES_RENDERING_VIDEO_TIMEOUT=3600 +# SERVICES_RENDERING_VIDEO_THREADS=1 ######################################################################################################################## # ONLY FOR DEBUGGING diff --git a/deploy/docker/repository/build/search/solr4/src/main/build/Dockerfile b/deploy/docker/repository/build/search/solr4/src/main/build/Dockerfile index dda645d1..23012a59 100644 --- a/deploy/docker/repository/build/search/solr4/src/main/build/Dockerfile +++ b/deploy/docker/repository/build/search/solr4/src/main/build/Dockerfile @@ -122,7 +122,7 @@ USER worker EXPOSE 8080 ENTRYPOINT ["entrypoint.sh"] -CMD ["catalina.sh", "run"] +CMD [ "/opt/bitnami/scripts/tomcat/run.sh" ] VOLUME [ "/opt/alfresco/alf_data" ] diff --git a/deploy/docker/repository/build/search/solr4/src/main/build/assets/entrypoint.sh b/deploy/docker/repository/build/search/solr4/src/main/build/assets/entrypoint.sh index 91ca758e..43ad82bf 100755 --- a/deploy/docker/repository/build/search/solr4/src/main/build/assets/entrypoint.sh +++ b/deploy/docker/repository/build/search/solr4/src/main/build/assets/entrypoint.sh @@ -87,11 +87,4 @@ fi ######################################################################################################################## -# Load libraries -. /opt/bitnami/scripts/libtomcat.sh -. /opt/bitnami/scripts/liblog.sh - -# Load Tomcat environment variables -. /opt/bitnami/scripts/tomcat-env.sh - -exec "$@" +exec /opt/bitnami/scripts/tomcat/entrypoint.sh "$@" diff --git a/deploy/docker/repository/build/service/src/main/build/Dockerfile b/deploy/docker/repository/build/service/src/main/build/Dockerfile index d0a3a8e2..cdfec320 100644 --- a/deploy/docker/repository/build/service/src/main/build/Dockerfile +++ b/deploy/docker/repository/build/service/src/main/build/Dockerfile @@ -116,7 +116,10 @@ RUN set -eux \ && mv alf_data/keystore . RUN set -eux \ - && xmlstarlet ed -L -d '/Context/Loader' tomcat/conf/Catalina/localhost/alfresco.xml + && xmlstarlet ed -L \ + -i '/Context' -t attr -n 'unloadDelay' -v "15000" \ + -d '/Context/Loader' \ + tomcat/conf/Catalina/localhost/alfresco.xml COPY --chown=worker:worker artifacts/alfresco-content-services-share-distribution-${org.alfresco:alfresco-content-services-share-distribution:zip.version}.zip \ /tmp/alfresco-content-services-share-distribution.zip @@ -137,7 +140,10 @@ RUN set -eux \ && rm -f tomcat/webapps/share.war RUN set -eux \ - && xmlstarlet ed -L -d '/Context/Loader' tomcat/conf/Catalina/localhost/share.xml + && xmlstarlet ed -L \ + -i '/Context' -t attr -n 'unloadDelay' -v "15000" \ + -d '/Context/Loader' \ + tomcat/conf/Catalina/localhost/share.xml COPY --chown=worker:worker assets/share/log4j.properties tomcat/webapps/share/WEB-INF/classes/log4j.properties @@ -194,18 +200,15 @@ COPY --chown=worker:worker assets/profiler profiler/ USER worker -STOPSIGNAL SIGWINCH - EXPOSE 8009 8080 8081 ENTRYPOINT ["entrypoint.sh"] -CMD ["catalina.sh", "run"] +CMD [ "/opt/bitnami/scripts/tomcat/run.sh" ] VOLUME [ "/opt/alfresco/alf_data", "/opt/bitnami/tomcat/shared/classes/config/cluster", "/opt/bitnami/tomcat/shared/classes/config/node" ] ######################################################################################################################## - LABEL git.branch=${git.branch} LABEL git.closest.tag.name=${git.closest.tag.fixed} LABEL git.commit.id=${git.commit.id} diff --git a/deploy/docker/repository/build/service/src/main/build/assets/entrypoint.sh b/deploy/docker/repository/build/service/src/main/build/assets/entrypoint.sh index e0a1f62c..78fc3ff0 100755 --- a/deploy/docker/repository/build/service/src/main/build/assets/entrypoint.sh +++ b/deploy/docker/repository/build/service/src/main/build/assets/entrypoint.sh @@ -26,7 +26,12 @@ my_home_appid="${REPOSITORY_SERVICE_HOME_APPID:-local}" my_home_auth="${REPOSITORY_SERVICE_HOME_AUTH:-}" my_home_auth_external="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL:-false}" my_home_auth_external_login="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN:-$my_path_external/shibboleth}" -my_home_auth_external_logout="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT:-}" + +my_home_auth_external_logout="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT:-/Shibboleth.sso/Logout}" +my_home_auth_external_logout_destroy_session="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_DESTROY_SESSION:-"false"}" +my_home_auth_external_logout_redirect="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_REDIRECT:-"false"}" +my_home_auth_external_logout_redirect_url="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_REDIRECT_URL:-$my_base_external}" + my_home_auth_external_login_providers_url="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN_PROVIDERS_URL:-}" my_home_auth_external_login_provider_target_url="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN_PROVIDER_TARGET_URL:-}" my_home_provider="${REPOSITORY_SERVICE_HOME_PROVIDER:-}" @@ -451,19 +456,25 @@ xmlstarlet ed -L \ -s '/config/values' -t elem -n 'loginProviderTargetUrl' -v '' \ -d '/config/values/loginProviderTargetUrl[position() != 1]' \ -u '/config/values/loginProviderTargetUrl' -v "${my_home_auth_external_login_provider_target_url}" \ + -s '/config/values' -t elem -n 'logout' -v '' \ + -d '/config/values/logout[position() != 1]' \ + -s '/config/values/logout' -t elem -n 'url' -v '' \ + -d '/config/values/logout/url[position() != 1]' \ + -u '/config/values/logout/url' -v "${my_home_auth_external_logout}" \ + -s '/config/values/logout' -t elem -n 'destroySession' -v '' \ + -d '/config/values/logout/destroySession[position() != 1]' \ + -u '/config/values/logout/destroySession' -v "${my_home_auth_external_logout_destroy_session}" \ ${eduCConf} - if [[ -n "${my_home_auth_external_logout}" ]] ; then - xmlstarlet ed -L \ - -s '/config/values' -t elem -n 'logout' -v '' \ - -d '/config/values/logout[position() != 1]' \ - -s '/config/values/logout' -t elem -n 'url' -v '' \ - -d '/config/values/logout/url[position() != 1]' \ - -u '/config/values/logout/url' -v "${my_home_auth_external_logout}" \ - -s '/config/values/logout' -t elem -n 'destroySession' -v '' \ - -d '/config/values/logout/destroySession[position() != 1]' \ - -u '/config/values/logout/destroySession' -v 'false' \ - ${eduCConf} + if [[ "${my_home_auth_external_logout_redirect}" == "true" ]] ; then + xmlstarlet ed -L \ + -s '/config/values/logout' -t elem -n 'ajax' -v '' \ + -d '/config/values/logout/ajax[position() != 1]' \ + -u '/config/values/logout/ajax' -v 'true' \ + -s '/config/values/logout' -t elem -n 'next' -v '' \ + -d '/config/values/logout/next[position() != 1]' \ + -u '/config/values/logout/next' -v "${my_home_auth_external_logout_redirect_url}" \ + ${eduCConf} fi else sed -i -r 's|