2020-11-22 15:18:37 -06:00
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
FROM registry.access.redhat.com/ubi8/ubi:8.1
# repo: can be 'repos', 'repos-staging', 'repos-snapshot'
# Optional. The default is 'repos'.
ARG repo
2022-08-11 08:25:02 -05:00
# version: can be '22.05' and '21.11'
# Optional. The default is '22.05'.
2020-11-22 15:18:37 -06:00
ARG version
# type: can be
# 'code' - Collabora Online Development Edition
# 'cool' - Collabora Online, to build this you need to give your secret URL part from https://support.collaboraoffice.com, i.e. you have to be Collabora partner or customer
# 'key' - Collabora Online, the license key enabled version.
# Optional. The default is 'code'.
ARG type
# secret_key is the URL hash from https://support.collaboraoffice.com
# Mandatory, when you build 'cool', otherwise not needed.
ARG secret_key
# Environment variables
ENV LC_CTYPE C.UTF-8
# Setup scripts for Collabora Online
ADD /scripts/install-collabora-online-rhel8.sh /
RUN bash install-collabora-online-rhel8.sh
RUN rm -rf /install-collabora-online-rhel8.sh
2021-10-17 03:43:36 -05:00
# Start script for Collabora Online
ADD /scripts/start-collabora-online.sh /
2022-03-31 11:02:30 -05:00
ADD /scripts/start-collabora-online.pl /
2021-10-17 03:43:36 -05:00
2020-11-22 15:18:37 -06:00
EXPOSE 9980
2021-11-15 10:04:57 -06:00
# switch to cool user (use numeric user id to be compatible with Kubernetes Pod Security Policies)
2020-11-22 15:18:37 -06:00
USER 998
# Entry point
2021-10-11 15:44:24 -05:00
CMD ["/start-collabora-online.sh"]