summaryrefslogtreecommitdiffstats
path: root/docker/from-packages/RHEL8
blob: da88cb628a9df67e8b61d15763bc6075bebac491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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

# version: can be '21.11'
# Optional. The default is '21.11'.
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 domain localhost
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

# Start script for Collabora Online
ADD /scripts/start-collabora-online.sh /

EXPOSE 9980

# switch to cool user (use numeric user id to be compatible with Kubernetes Pod Security Policies)
USER 998

# Entry point
CMD ["/start-collabora-online.sh"]