mirror of
https://github.com/LibreOffice/online.git
synced 2025-07-25 16:04:48 +00:00
docker: generate the WOPI proof key at container startup
Change-Id: Ic2d8dedcc7aff2a33ef5e26d986a1302fc6941fa Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92851 Tested-by: Andras Timar <andras.timar@collabora.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
This commit is contained in:
@ -12,7 +12,7 @@ RUN apt-get update
|
||||
# install LibreOffice run-time dependencies
|
||||
# install adduser, findutils, openssl and cpio that we need later
|
||||
# install an editor
|
||||
RUN apt-get -y install locales-all libpng16-16 fontconfig adduser cpio findutils nano libpocoxml50 libpocoutil50 libpoconetssl50 libpoconet50 libpocojson50 libpocofoundation50 libpococrypto50 libcap2-bin openssl inotify-tools procps libxcb-shm0 libxcb-render0 libxrender1 libxext6
|
||||
RUN apt-get -y install locales-all libpng16-16 fontconfig adduser cpio findutils nano libpocoxml50 libpocoutil50 libpoconetssl50 libpoconet50 libpocojson50 libpocofoundation50 libpococrypto50 libcap2-bin openssl openssh-client inotify-tools procps libxcb-shm0 libxcb-render0 libxrender1 libxext6
|
||||
|
||||
# tdf#117557 - Add CJK Fonts to LibreOffice Online Docker Image
|
||||
RUN apt-get -y install fonts-wqy-zenhei fonts-wqy-microhei fonts-droid-fallback fonts-noto-cjk
|
||||
@ -31,7 +31,6 @@ RUN rm -rf /var/cache/loolwsd/*
|
||||
RUN rm -rf /opt/lool
|
||||
RUN mkdir -p /opt/lool/child-roots
|
||||
RUN loolwsd-systemplate-setup /opt/lool/systemplate /opt/libreoffice >/dev/null 2>&1
|
||||
RUN loolwsd-generate-proof-key >/dev/null 2>&1
|
||||
RUN touch /var/log/loolwsd.log
|
||||
# Fix permissions
|
||||
RUN chown lool:lool /var/log/loolwsd.log
|
||||
|
@ -41,5 +41,8 @@ perl -pi -e "s/<password (.*)>.*<\/password>/<password \1>${password}<\/password
|
||||
pkill -f --signal 1 loolwsd
|
||||
) &
|
||||
|
||||
# Generate WOPI proof key
|
||||
loolwsd-generate-proof-key
|
||||
|
||||
# Start loolwsd
|
||||
exec /usr/bin/loolwsd --version --o:sys_template_path=/opt/lool/systemplate --o:child_root_path=/opt/lool/child-roots --o:file_server_root_path=/usr/share/loolwsd ${extra_params}
|
||||
|
Reference in New Issue
Block a user