Skip to content

Commit a2a0189

Browse files
committed
Release 23.05.0-3 - See CHANGELOG.md
1 parent 1ca12f8 commit a2a0189

File tree

3 files changed

+185
-11
lines changed

3 files changed

+185
-11
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 23.05.0-3 2023-06-05 <dave at tiredofit dot ca>
2+
3+
### Added
4+
- Collabora Office cp-23.05.0-3
5+
- Collabora Online cp-23.05.0-3
6+
7+
18
## 23.05.0-2 2023-06-01 <dave at tiredofit dot ca>
29

310
### Added

Dockerfile

+5-11
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ ARG APP_NAME
1313
ARG APP_BRAND
1414

1515
### Environment Variables
16-
ENV COLLABORA_ONLINE_VERSION=${COLLABORA_ONLINE_VERSION:-"cp-23.05.0-2"} \
16+
ENV COLLABORA_ONLINE_VERSION=${COLLABORA_ONLINE_VERSION:-"cp-23.05.0-3"} \
1717
COLLABORA_ONLINE_REPO_URL=${COLLABORA_ONLINE_REPO_URL:-"https://github.com/CollaboraOnline/online"} \
1818
#
19-
LIBREOFFICE_VERSION=${LIBREOFFICE_VERSION:-"cp-23.05.0-2"} \
19+
LIBREOFFICE_VERSION=${LIBREOFFICE_VERSION:-"cp-23.05.0-3"} \
2020
LIBREOFFICE_REPO_URL=${LIBREOFFICE_REPO_URL:-"https://github.com/LibreOffice/core"} \
2121
#
2222
APP_NAME=${APP_NAME:-"Document Editor"} \
@@ -127,14 +127,13 @@ RUN source /assets/functions/00-container && \
127127
--without-package-format && \
128128
chown -R cool ${GIT_REPO_SRC_CORE} && \
129129
sudo -u cool make fetch && \
130-
sudo -u cool make -j$(nproc) build-nocheck && \
130+
sudo -u cool make -j$(nproc) build && \
131131
mkdir -p /opt/libreoffice && \
132132
chown -R cool /opt/libreoffice && \
133133
cp -R ${GIT_REPO_SRC_CORE}/instdir/* /opt/libreoffice/ && \
134134
\
135135
### Build LibreOffice Online (Not as long as above)
136-
clone_git_repo ${COLLABORA_ONLINE_REPO_URL} ${COLLABORA_ONLINE_VERSION} ${GIT_REPO_SRC_ONLINE}
137-
RUN source /assets/functions/00-container && \
136+
clone_git_repo ${COLLABORA_ONLINE_REPO_URL} ${COLLABORA_ONLINE_VERSION} ${GIT_REPO_SRC_ONLINE} && \
138137
if [ -d "/build-assets/online/src" ] ; then cp -R /build-assets/online/src/* ${GIT_REPO_SRC_ONLINE} ; fi; \
139138
if [ -d "/build-assets/online/scripts" ] ; then for script in /build-assets/online/scripts/*.sh; do echo "** Applying $script"; bash $script; done && \ ; fi ; \
140139
sed -i \
@@ -184,25 +183,22 @@ RUN source /assets/functions/00-container && \
184183
FROM docker.io/tiredofit/debian:bullseye
185184
LABEL maintainer="Dave Conroy (dave at tiredofit dot ca)"
186185
LABEL org.opencontainers.image.source="https://github.com/tiredofit/docker-collabora-online"
187-
### Set Defaults
186+
188187
ENV ADMIN_USER=admin \
189188
ADMIN_PASS=collaboraonline \
190189
CONTAINER_ENABLE_MESSAGING=FALSE \
191190
IMAGE_NAME="tiredofit/collabora-online" \
192191
IMAGE_REPO_URL="https://github.com/tiredofit/docker-collabora-online/"
193192

194-
### Grab Compiled Assets from builder image
195193
COPY --from=builder /opt/ /opt/
196194
COPY CHANGELOG.md /assets/.changelogs/tiredofit_docker-collabora-online.md
197195

198196
COPY build-assets /build-assets
199197

200-
### Install Dependencies
201198
RUN source /assets/functions/00-container && \
202199
set -x && \
203200
adduser --quiet --system --group --home /opt/cool cool && \
204201
\
205-
### Add Repositories
206202
echo "deb http://deb.debian.org/debian $(cat /etc/os-release |grep "VERSION=" | awk 'NR>1{print $1}' RS='(' FS=')') contrib" >> /etc/apt/sources.list && \
207203
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections && \
208204
package update && \
@@ -240,7 +236,6 @@ RUN source /assets/functions/00-container && \
240236
ttf-mscorefonts-installer \
241237
&& \
242238
\
243-
### Setup Directories and Permissions
244239
mkdir -p /etc/coolwsd && \
245240
mv /opt/cool/coolwsd.xml /etc/coolwsd/ && \
246241
mv /opt/cool/coolkitconfig.xcu /etc/coolwsd/ && \
@@ -260,7 +255,6 @@ RUN source /assets/functions/00-container && \
260255
touch /var/log/cool/coolwsd.log && \
261256
chown -R cool /var/log/cool && \
262257
\
263-
### Setup LibreOffice Online Jails
264258
sudo -u cool /opt/cool/bin/coolwsd-systemplate-setup /opt/cool/systemplate /opt/libreoffice && \
265259
\
266260
if [ -d "/build-assets/container/src" ] && [ -n "$(ls -A "/build-assets/container/src" 2>/dev/null)" ]; then cp -R /build-assets/container/src/* / ; fi; \

Dockerfile.alpine

+173
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
FROM tiredofit/alpine:3.18 as builder
2+
LABEL maintainer="Dave Conroy (dave at tiredofit dot ca)"
3+
LABEL org.opencontainers.image.source="https://github.com/tiredofit/docker-collabora-online"
4+
5+
### Buildtime arguments
6+
ARG COLLABORA_ONLINE_VERSION
7+
ARG COLLABORA_ONLINE_REPO_URL
8+
ARG LIBREOFFICE_VERSION
9+
ARG LIBREOFFICE_REPO_URL
10+
ARG MAX_CONNECTIONS
11+
ARG MAX_DOCUMENTS
12+
ARG APP_NAME
13+
ARG APP_BRAND
14+
15+
### Environment Variables
16+
ENV COLLABORA_ONLINE_VERSION=${COLLABORA_ONLINE_VERSION:-"cp-23.05.0-2"} \
17+
COLLABORA_ONLINE_REPO_URL=${COLLABORA_ONLINE_REPO_URL:-"https://github.com/CollaboraOnline/online"} \
18+
#
19+
LIBREOFFICE_VERSION=${LIBREOFFICE_VERSION:-"cp-23.05.0-2"} \
20+
LIBREOFFICE_REPO_URL=${LIBREOFFICE_REPO_URL:-"https://github.com/LibreOffice/core"} \
21+
#
22+
APP_NAME=${APP_NAME:-"Document Editor"} \
23+
APP_BRAND=${APP_BRAND:-"unbranded"} \
24+
#
25+
POCO_VERSION=${POCO_VERSION:-"poco-1.12.4-release.tar.gz"} \
26+
POCO_URL=${POCO_URL:-"https://github.com/pocoproject/poco/archive/"} \
27+
#
28+
MAX_CONNECTIONS=${MAX_CONNECTIONS:-"100000"} \
29+
## Uses Approximately 20mb per document open
30+
MAX_DOCUMENTS=${MAX_DOCUMENTS:-"100000"}
31+
32+
COPY build-assets /build-assets
33+
34+
RUN source /assets/functions/00-container && \
35+
set -x && \
36+
package update && \
37+
package upgrade && \
38+
package install .container-build-deps \
39+
build-base \
40+
git \
41+
&& \
42+
43+
package install .collabora-office-build-deps \
44+
abseil-cpp-dev \
45+
apache-ant \
46+
autoconf \
47+
automake \
48+
bison \
49+
bluez-dev \
50+
boost-dev \
51+
box2d-dev \
52+
clang \
53+
clucene-dev \
54+
coreutils \
55+
cppunit-dev \
56+
cups-dev \
57+
doxygen \
58+
findutils \
59+
flex \
60+
freetype-dev \
61+
glew-dev \
62+
glm-dev \
63+
glu-dev \
64+
gperf \
65+
gpgme-dev \
66+
gst-plugins-base-dev \
67+
gstreamer-dev \
68+
gtk+3.0-dev \
69+
gtk4.0-dev \
70+
harfbuzz-dev \
71+
hunspell-dev \
72+
hyphen-dev \
73+
icu-dev \
74+
junit \
75+
kconfig-dev \
76+
lcms2-dev \
77+
libabw-dev \
78+
libcdr-dev \
79+
libe-book-dev \
80+
libepubgen-dev \
81+
libetonyek-dev \
82+
libexttextcat-dev \
83+
libfreehand-dev \
84+
libjpeg-turbo-dev \
85+
libmspub-dev \
86+
libmwaw-dev \
87+
libnumbertext-dev \
88+
libodfgen-dev \
89+
liborcus-dev \
90+
libpagemaker-dev \
91+
libpq-dev \
92+
libqxp-dev \
93+
libstaroffice-dev \
94+
libvisio-dev \
95+
libwebp-dev \
96+
libwpd-dev \
97+
libwpg-dev \
98+
libwps-dev \
99+
libxml2-utils \
100+
libxrandr-dev \
101+
libxrender-dev \
102+
libxslt-dev \
103+
libzmf-dev \
104+
llvm-dev \
105+
mariadb-dev \
106+
mdds-dev \
107+
mythes-dev \
108+
neon-dev \
109+
nss-dev \
110+
openjpeg-dev \
111+
openldap-dev \
112+
openssl-dev \
113+
perl \
114+
perl-archive-zip \
115+
plasma-framework-dev \
116+
poppler-dev \
117+
py3-setuptools \
118+
python3-dev \
119+
qt5-qtbase-dev \
120+
qt5-qttools-dev \
121+
qt6-qtbase-dev \
122+
qt6-qttools-dev \
123+
redland-dev \
124+
sed \
125+
tar \
126+
unixodbc-dev \
127+
vigra-dev \
128+
xmlsec-dev \
129+
xz \
130+
zip \
131+
&& \
132+
\
133+
### Build Poco
134+
mkdir -p /usr/src/poco && \
135+
curl -sSL ${POCO_URL}${POCO_VERSION} | tar xvfz - --strip 1 -C /usr/src/poco && \
136+
cd /usr/src/poco && \
137+
./configure \
138+
--static \
139+
--no-tests \
140+
--no-samples \
141+
--no-sharedlibs \
142+
--cflags="-fPIC" \
143+
--omit=Zip,Data,Data/SQLite,Data/ODBC,Data/MySQL,MongoDB,PDF,CppParser,PageCompiler,Redis,Encodings \
144+
--prefix=/opt/poco \
145+
&& \
146+
make -j$(nproc) && \
147+
make install && \
148+
\
149+
### Build Fetch LibreOffice - This will take a while..
150+
clone_git_repo ${LIBREOFFICE_REPO_URL} ${LIBREOFFICE_VERSION} ${GIT_REPO_SRC_CORE}
151+
152+
RUN source /assets/functions/00-container && \
153+
set -x && \
154+
GIT_REPO_SRC_CORE=/usr/src/core && \
155+
adduser -D -S -h /dev/null -s /sbin/nologin -u 1000 cool && \
156+
cd /usr/src/core && \
157+
if [ -d "/build-assets/core/src" ] && [ -n "$(ls -A "/build-assets/core/src" 2>/dev/null)" ]; then cp -R /build-assets/core/src/* / ; fi; \
158+
if [ -d "/build-assets/core/scripts" ] && [ -n "$(ls -A "/build-assets/core/scripts" 2>/dev/null)" ]; then for script in /build-assets/core/scripts/*.sh; do echo "** Applying $script"; bash $script; done && \ ; fi ; \
159+
sed -i "s|--enable-symbols|--disable-symbols|g" ${GIT_REPO_SRC_CORE}/distro-configs/CPLinux-LOKit.conf && \
160+
\
161+
echo "--prefix=/opt/libreoffice" >> ${GIT_REPO_SRC_CORE}/distro-configs/CPLinux-LOKit.conf && \
162+
./autogen.sh \
163+
--with-distro="CPLinux-LOKit" \
164+
--disable-epm \
165+
--without-package-format && \
166+
chown -R cool ${GIT_REPO_SRC_CORE} && \
167+
sudo -u cool make fetch
168+
RUN source /assets/functions/00-container && \
169+
set -x && \
170+
sudo -u cool make -j$(nproc) build && \
171+
mkdir -p /opt/libreoffice && \
172+
chown -R cool /opt/libreoffice && \
173+
cp -R ${GIT_REPO_SRC_CORE}/instdir/* /opt/libreoffice/

0 commit comments

Comments
 (0)