From a05b39e38bb40a40310056154dd0708098506d96 Mon Sep 17 00:00:00 2001 From: Dave Conroy Date: Tue, 12 Apr 2022 16:11:17 -0700 Subject: [PATCH] Release 2.4.1 - See CHANGELOG.md --- CHANGELOG.md | 6 ++++++ Dockerfile | 2 +- LICENSE | 2 +- README.md | 28 ++++++++++++++-------------- install/etc/cont-init.d/10-coolwsd | 2 +- 5 files changed, 23 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a28fa0..a77622d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 2.4.1 2022-04-12 + + ### Changed + - Cleanup some old unused lines and code + + ## 2.4.0 2022-04-07 ### Added diff --git a/Dockerfile b/Dockerfile index 36d0ffd..c7c6cbf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -257,7 +257,7 @@ RUN set -x && \ ### Setup LibreOffice Online Jails sudo -u cool /opt/cool/bin/coolwsd-systemplate-setup /opt/cool/systemplate /opt/libreoffice && \ \ - if [ -d "/build-assets/container/src" ] ; then cp -R /build-assets/container/src/* /usr/src/libreoffice-container ; fi; \ + if [ -d "/build-assets/container/src" ] ; then cp -R /build-assets/container/src/* / ; fi; \ if [ -d "/build-assets/container/scripts" ] ; then for script in /build-assets/container/scripts/*.sh; do echo "** Applying $script"; bash $script; done && \ ; fi ; \ apt-get autoremove -y && \ apt-get clean && \ diff --git a/LICENSE b/LICENSE index 81d2163..5dd7a07 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Dave Conroy +Copyright (c) 2022 Dave Conroy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 8366ac6..0ceee86 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ This will build a Docker image for [Collabora Online](https://www.collaboraoffic ### Build from Source - Clone this repository and build the image with `docker build (imagename) .` -- If you decide to compile this, it will take quite a few hours even on the fastest computer due to the amount of data required to download to compile. At some stages this image will grow to 30GB before sheeding most of it for it's final size. +- If you decide to compile this, it will take quite a few hours even on the fastest computer due to the amount of data required to download to compile. At some stages this image will grow to 30GB before shedding most of it for it's final size. ### Prebuilt Images @@ -78,7 +78,7 @@ Builds of the image are available on [Docker Hub](https://hub.docker.com/r/tired docker pull tiredofit/collabora-online:(imagetag) ``` -The following image tags are available along with their taged release based on what's written in the [Changelog](CHANGELOG.md): +The following image tags are available along with their tagged release based on what's written in the [Changelog](CHANGELOG.md): | LibreOffice version | Collabora Online version | Tag | | ------------------- | ------------------------ | -------- | @@ -126,17 +126,17 @@ Be sure to view the following repositories to understand all the customizable op | [OS Base](https://github.com/tiredofit/docker-debian/) | Customized Image based on Debian Linux | #### General Usage -| Parameter | Description | Default | -| -------------------------------- | ------------------------------------------------------------------------------------------------------------------ | --------- | -| `SETUP_TYPE` | Automatically generate configuration with defaults. Set to `MANUAL` and map the configuration file to use your own | `AUTO` | -| `ALLOWED_HOSTS` | Set which domains which can access service Seperate Multiple with `,` - Example: `^(.*)\.example\.org` | `` | -| `EXTRA_OPTIONS` | If you want to pass additional arguments upon startup, add it here | `` | -| `INTERFACE` | Web interface type `classic` or `notebookbar` | `classic` | -| `WATERMARK_OPACITY` | Watermark Opacity | `0.2` | -| `WATERMARK_TEXT` | Text to display for watermark | `` | -| `ENABLE_MACROS` | Enable Macros | `FALSE` | -| `MACRO_SECURITY_LEVEL` | Macro Security Level `1` Medium `0` Low | `1` | -| `ENABLE_METRICS_UNAUTHENTICATED` | Enable Unauthenticated Metrics | `FALSE` | +| Parameter | Description | Default | +| -------------------------------- | ------------------------------------------------------------------------------------------------------------------ | ------------- | +| `SETUP_TYPE` | Automatically generate configuration with defaults. Set to `MANUAL` and map the configuration file to use your own | `AUTO` | +| `ALLOWED_HOSTS` | Set which domains which can access service Seperate Multiple with `,` - Example: `https://www.example\.org` | `` | +| `EXTRA_OPTIONS` | If you want to pass additional arguments upon startup, add it here | `` | +| `INTERFACE` | Web interface type `classic` or `notebookbar` | `notebookbar` | +| `WATERMARK_OPACITY` | Watermark Opacity | `0.2` | +| `WATERMARK_TEXT` | Text to display for watermark | `` | +| `ENABLE_MACROS` | Enable Macros | `FALSE` | +| `MACRO_SECURITY_LEVEL` | Macro Security Level `1` Medium `0` Low | `1` | +| `ENABLE_METRICS_UNAUTHENTICATED` | Enable Unauthenticated Metrics | `FALSE` | #### Administration @@ -268,7 +268,7 @@ The image comes with English (US, GB, Canada variants) baked into the image, how | `NETWORK_PROTOCOL` | Network Protocol `ipv4` `ipv6` `all` | `ipv4` | | `ENABLE_WEBDAV` | Enable WebDav Storage | `FALSE` | | `FILE_SERVER_ROOT_PATH` | Path to directory considered as root | `browser/../` | -| `FRAME_ANCESTORS` | Hosts where interface van be hosted in Iframe | `` | +| `FRAME_ANCESTORS` | Hosts where interface can be hosted in Iframe | `` | | `ENABLE_MOUNT_JAIL` | Enable mounting jails | `true` | | `CHILD_ROOT_PATH` | Child root path | `child-roots` | | `SYS_TEMPLATE_PATH` | System Template Path | `systemplate` | diff --git a/install/etc/cont-init.d/10-coolwsd b/install/etc/cont-init.d/10-coolwsd index 16c1b13..8d786a3 100755 --- a/install/etc/cont-init.d/10-coolwsd +++ b/install/etc/cont-init.d/10-coolwsd @@ -121,6 +121,7 @@ if var_true "${ENABLE_TLS}" ; then else if [ ! -f "${TLS_CERT_PATH}"/"${TLS_KEY_FILENAME}" ] || [ ! -f "${TLS_CERT_PATH}"/"${TLS_CA_FILENAME}" ] || [ ! -f "${TLS_CERT_PATH}"/"${TLS_CERT_FILENAME}" ] ; then print_error "TLS Certificates missing... Please switch to autogenerate mode, or place your certifcates in the correct location." + exit 1 fi fi fi @@ -167,7 +168,6 @@ if [ "${SETUP_TYPE,,}" = "auto" ]; then sed -i -e "s|.*<\/browser_logging>|${LOG_CLIENT_CONSOLE}<\/browser_logging>|" /etc/coolwsd/coolwsd.xml sed -i -e "s|.*<\/proto>|${NETWORK_PROTOCOL}<\/proto>|" /etc/coolwsd/coolwsd.xml sed -i -e "s|.*<\/frame_ancestors>|${FRAME_ANCESTORS}<\/frame_ancestors>|" /etc/coolwsd/coolwsd.xml - #sed -i -e "s|localhost<\/host>|${ALLOWED_HOSTS}<\/host>|" /etc/coolwsd/coolwsd.xml sed -i -e "s|.*<\/connection_timeout>|${CONNECTION_TIMEOUT}<\/connection_timeout>|" /etc/coolwsd/coolwsd.xml sed -i -e "s|.*<\/ca_file_path>|${TLS_CERT_PATH}/${TLS_CA_FILENAME}<\/ca_file_path>|" /etc/coolwsd/coolwsd.xml sed -i -e "s|.*<\/cert_file_path>|${TLS_CERT_PATH}/${TLS_CERT_FILENAME}<\/cert_file_path>|" /etc/coolwsd/coolwsd.xml