Skip to content

Commit

Permalink
Update SDK to 8.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
swollner committed Dec 1, 2023
1 parent 319f38a commit 22ae590
Show file tree
Hide file tree
Showing 16 changed files with 68 additions and 150 deletions.
23 changes: 3 additions & 20 deletions deploy/docker/compose/src/main/scripts/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -114,24 +114,15 @@
# --- 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=

Expand Down Expand Up @@ -225,11 +216,6 @@
# --- 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
Expand All @@ -253,15 +239,12 @@
# 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ USER worker
EXPOSE 8080

ENTRYPOINT ["entrypoint.sh"]
CMD [ "/opt/bitnami/scripts/tomcat/run.sh" ]
CMD ["catalina.sh", "run"]

VOLUME [ "/opt/alfresco/alf_data" ]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,11 @@ fi

########################################################################################################################

exec /opt/bitnami/scripts/tomcat/entrypoint.sh "$@"
# Load libraries
. /opt/bitnami/scripts/libtomcat.sh
. /opt/bitnami/scripts/liblog.sh

# Load Tomcat environment variables
. /opt/bitnami/scripts/tomcat-env.sh

exec "$@"
15 changes: 6 additions & 9 deletions deploy/docker/repository/build/service/src/main/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,7 @@ RUN set -eux \
&& mv alf_data/keystore .

RUN set -eux \
&& xmlstarlet ed -L \
-i '/Context' -t attr -n 'unloadDelay' -v "15000" \
-d '/Context/Loader' \
tomcat/conf/Catalina/localhost/alfresco.xml
&& xmlstarlet ed -L -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
Expand All @@ -140,10 +137,7 @@ RUN set -eux \
&& rm -f tomcat/webapps/share.war

RUN set -eux \
&& xmlstarlet ed -L \
-i '/Context' -t attr -n 'unloadDelay' -v "15000" \
-d '/Context/Loader' \
tomcat/conf/Catalina/localhost/share.xml
&& xmlstarlet ed -L -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

Expand Down Expand Up @@ -200,15 +194,18 @@ COPY --chown=worker:worker assets/profiler profiler/

USER worker

STOPSIGNAL SIGWINCH

EXPOSE 8009 8080 8081

ENTRYPOINT ["entrypoint.sh"]
CMD [ "/opt/bitnami/scripts/tomcat/run.sh" ]
CMD ["catalina.sh", "run"]

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}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ 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:-/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_logout="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT:-}"
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:-}"
Expand Down Expand Up @@ -456,25 +451,19 @@ 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 [[ "${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}
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}
fi
else
sed -i -r 's|<!--\s*SAML||g' tomcat/webapps/edu-sharing/WEB-INF/web.xml
Expand Down Expand Up @@ -726,4 +715,11 @@ done

########################################################################################################################

exec /opt/bitnami/scripts/tomcat/entrypoint.sh "$@"
# Load libraries
. /opt/bitnami/scripts/libtomcat.sh
. /opt/bitnami/scripts/liblog.sh

# Load Tomcat environment variables
. /opt/bitnami/scripts/tomcat-env.sh

exec "$@"
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ services:
REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL: "${REPOSITORY_SERVICE_AUTH_EXTERNAL:-false}"
REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN: "${REPOSITORY_SERVICE_AUTH_EXTERNAL_LOGIN:-}"
REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT: "${REPOSITORY_SERVICE_AUTH_EXTERNAL_LOGOUT:-}"
REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_DESTROY_SESSION: "${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_DESTROY_SESSION:-false}"
REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_REDIRECT: "${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_REDIRECT:-}"
REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_REDIRECT_URL: "${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_REDIRECT_URL:-}"
REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN_PROVIDERS_URL: "${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN_PROVIDERS_URL:-}"
REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN_PROVIDER_TARGET_URL: "${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN_PROVIDER_TARGET_URL:-}"
REPOSITORY_SERVICE_HOME_PROVIDER: "${REPOSITORY_SERVICE_PROVIDER:-}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,16 @@ services:
- "${COMMON_BIND_HOST:-127.0.0.1}:${REPOSITORY_MAILCATCHER_PORT_HTTP:-8025}:1080"

repository-search-solr4:
command: ["catalina.sh", "jpda", "run"]
environment:
CATALINA_OPTS: >-
-Xms${REPOSITORY_SEARCH_SOLR4_JAVA_XMS:-512m}
-Xmx${REPOSITORY_SEARCH_SOLR4_JAVA_XMX:-512m}
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.port=7199
-Dcom.sun.management.jmxremote.ssl=false
-javaagent:/opt/alfresco/tomcat/agent/jmx_prometheus_javaagent.jar=9090:/opt/alfresco/tomcat/agent/jmx-exporter-config.yaml
-agentlib:jdwp=transport=dt_socket,address=0.0.0.0:5005,server=y,suspend=n
JPDA_ADDRESS: "0.0.0.0:5005"
ports:
- "${COMMON_BIND_HOST:-127.0.0.1}:${REPOSITORY_SEARCH_SOLR4_PORT_HTTP:-8200}:8080"
- "${COMMON_BIND_HOST:-127.0.0.1}:${REPOSITORY_SEARCH_SOLR4_PORT_JPDA:-8201}:5005"

repository-service:
command: ["catalina.sh", "jpda", "run"]
environment:
CATALINA_OPTS: >-
-Xms${REPOSITORY_SERVICE_JAVA_XMS:-2g}
-Xmx${REPOSITORY_SERVICE_JAVA_XMX:-4g}
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.port=7199
-Dcom.sun.management.jmxremote.ssl=false
-javaagent:/opt/alfresco/tomcat/agent/jmx_prometheus_javaagent.jar=9090:/opt/alfresco/tomcat/agent/jmx-exporter-config.yaml
-agentlib:jdwp=transport=dt_socket,address=0.0.0.0:5005,server=y,suspend=n
JPDA_ADDRESS: "0.0.0.0:5005"
ports:
- "${COMMON_BIND_HOST:-127.0.0.1}:${REPOSITORY_SERVICE_PORT_JPDA:-8101}:5005"
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ data:
{{- if .Values.config.metrics.enabled }}
-javaagent:/opt/alfresco/tomcat/agent/jmx_prometheus_javaagent.jar=9090:/opt/alfresco/tomcat/agent/jmx-exporter-config.yaml
{{- end }}
{{- if default .Values.global.debug .Values.debug }}
-agentlib:jdwp=transport=dt_socket,address=0.0.0.0:5005,server=y,suspend=n
{{- end }}
JPDA_ADDRESS: "0.0.0.0:5005"
{{- if .Values.config.antivirus.enabled }}
REPOSITORY_ANTIVIRUS_SERVER_HOST: {{ .Values.config.antivirus.host | quote }}
REPOSITORY_ANTIVIRUS_SERVER_PORT: {{ .Values.config.antivirus.port | quote }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ data:
return (synth(200, "OK"));
}
if (req.method == "POST" || req.method == "PUT" || req.method == "DELETE" || req.url ~ "/rest/") {
return (pass);
}
if (req.restarts > 0) {
set req.hash_always_miss = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ spec:
- name: {{ include "edusharing_repository_service.name" . }}-server
image: {{ include "edusharing_repository_service.image" . }}{{ .Values.image.prefix }}-deploy-docker-repository-build-service:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.global.image.pullPolicy }}
{{- if default .Values.global.debug .Values.debug }}
args: [ "catalina.sh", "jpda", "run" ]
{{- end }}
{{- $patroni := merge .Values.config.database.patroni .Values.global.patroni }}
{{- if $patroni.enabled }}
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ data:
{{- if .Values.config.metrics.enabled }}
-javaagent:/opt/alfresco/tomcat/agent/jmx_prometheus_javaagent.jar=9090:/opt/alfresco/tomcat/agent/jmx-exporter-config.yaml
{{- end }}
{{- if default .Values.global.debug .Values.debug }}
-agentlib:jdwp=transport=dt_socket,address=0.0.0.0:5005,server=y,suspend=n
{{- end }}
JPDA_ADDRESS: "0.0.0.0:5005"
{{- with .Values.config.override.application.common }}
REPOSITORY_SEARCH_SOLR4_CONFIG: | {{ . | nindent 4 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ spec:
- name: {{ include "edusharing_repository_search_solr4.name" . }}
image: {{ include "edusharing_repository_search_solr4.image" . }}{{ .Values.image.prefix }}-deploy-docker-repository-build-search-solr4:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.global.image.pullPolicy }}
{{- if default .Values.global.debug .Values.debug }}
args: [ "catalina.sh", "jpda", "run" ]
{{- end }}
envFrom:
- configMapRef:
name: {{ include "edusharing_repository_search_solr4.name" . }}-env
Expand Down Expand Up @@ -232,6 +235,9 @@ spec:
- name: {{ include "edusharing_repository_search_solr4.name" $ }}
image: {{ include "edusharing_repository_search_solr4.image" $ }}{{ $.Values.image.prefix }}-deploy-docker-repository-build-search-solr4:{{ $.Values.image.tag }}
imagePullPolicy: {{ $.Values.global.image.pullPolicy }}
{{- if default $.Values.global.debug $.Values.debug }}
args: [ "catalina.sh", "jpda", "run" ]
{{- end }}
env:
- name: REPOSITORY_SEARCH_SOLR4_CONFIG
value: | {{ .spec.config.override.application.common | nindent 12 }}
Expand Down
Loading

0 comments on commit 22ae590

Please sign in to comment.