Compare commits

..

1 Commits

Author SHA1 Message Date
Fabrice Roublot bec5ef4eae Update 8.2.1
/ create-package (push) Successful in 15m52s Details
2025-01-26 13:13:11 +01:00
9 changed files with 98 additions and 131 deletions

2
.env
View File

@ -1,2 +1,2 @@
product_version=8.2.2 product_version=8.2.1
build_number=1 build_number=1

View File

@ -1,4 +1,4 @@
ARG product_version=8.2.2 ARG product_version=8.2.1
ARG build_number=1 ARG build_number=1
ARG oo_root='/var/www/onlyoffice/documentserver' ARG oo_root='/var/www/onlyoffice/documentserver'
@ -8,10 +8,8 @@ ARG product_version
ARG build_number ARG build_number
ARG oo_root ARG oo_root
# package version to get that value using the command inside a base onlyoffice/documentserver container
# dpkg -s onlyoffice-documentserver | grep '^Version:' | cut -d' ' -f2 | cut -d'-' -f2
ENV PRODUCT_VERSION=${product_version} ENV PRODUCT_VERSION=${product_version}
ENV BUILD_NUMBER=22 ENV BUILD_NUMBER=38
ARG build_deps="git make g++ nodejs bzip2" ARG build_deps="git make g++ nodejs bzip2"
RUN apt-get update && \ RUN apt-get update && \
@ -22,11 +20,7 @@ RUN apt-get update && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
apt-get update && \ apt-get update && \
apt-get install -y ${build_deps} && \ apt-get install -y ${build_deps} && \
npm install -g pkg grunt grunt-cli && \ npm install -g pkg grunt grunt-cli
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN node -v
RUN npm -v
WORKDIR /build WORKDIR /build
@ -36,12 +30,18 @@ FROM setup-stage as clone-stage
ARG tag=v${PRODUCT_VERSION}.${BUILD_NUMBER} ARG tag=v${PRODUCT_VERSION}.${BUILD_NUMBER}
RUN git config --global advice.detachedHead false && \ RUN git config --global advice.detachedHead false && \
git clone --quiet --branch ${tag} --depth 1 https://github.com/ONLYOFFICE/build_tools.git /build/build_tools && \ git clone --quiet --branch $tag --depth 1 https://github.com/ONLYOFFICE/build_tools.git /build/build_tools && \
git clone --quiet --branch ${tag} --depth 1 https://github.com/ONLYOFFICE/server.git /build/server && \ git clone --quiet --branch $tag --depth 1 https://github.com/ONLYOFFICE/server.git /build/server && \
git clone --quiet --branch ${tag} --depth 1 https://github.com/ONLYOFFICE/sdkjs.git /build/sdkjs && \ git clone --quiet --branch $tag --depth 1 https://github.com/ONLYOFFICE/sdkjs.git /build/sdkjs && \
git clone --quiet --branch ${tag} --depth 1 https://github.com/ONLYOFFICE/web-apps.git /build/web-apps git clone --quiet --branch $tag --depth 1 https://github.com/ONLYOFFICE/web-apps.git /build/web-apps
## Build
FROM clone-stage as build-stage
# build server with license checks patched
WORKDIR /build/server
# Patch Server # Patch Server
COPY patches/server /build/server/patches COPY patches/server /build/server/patches
# Needs a fake author to allow commits # Needs a fake author to allow commits
@ -51,16 +51,8 @@ RUN git config --global user.email "contact@workstreams.ch" && \
git am --ignore-whitespace patches/*.patch && \ git am --ignore-whitespace patches/*.patch && \
make make
RUN pkg /build/build_tools/out/linux_64/onlyoffice/documentserver/server/FileConverter --targets=node16-linux -o /build/converter
## Build RUN pkg /build/build_tools/out/linux_64/onlyoffice/documentserver/server/DocService --targets=node16-linux --options max_old_space_size=4096 -o /build/docservice
FROM clone-stage as build-stage
# build server with license checks patched
WORKDIR /build/server
RUN make && \
pkg /build/build_tools/out/linux_64/onlyoffice/documentserver/server/FileConverter --targets=node16-linux -o /build/converter && \
pkg /build/build_tools/out/linux_64/onlyoffice/documentserver/server/DocService --targets=node16-linux --options max_old_space_size=4096 -o /build/docservice
# build web-apps with mobile editing # build web-apps with mobile editing
RUN cd /build/web-apps/build && npm install RUN cd /build/web-apps/build && npm install
@ -68,24 +60,24 @@ RUN cd /build/web-apps/build && npm install
COPY patches/web-apps-mobile /build/web-apps-mobile COPY patches/web-apps-mobile /build/web-apps-mobile
RUN cd /build/web-apps/build && grunt --addon=web-apps-mobile RUN cd /build/web-apps/build && grunt --addon=web-apps-mobile
#cd /build/web-apps && \ #RUN cd /build/web-apps && \
# git am --ignore-whitespace patches/*.patch && \ #git am --ignore-whitespace patches/*.patch && \
#cd /build/web-apps/build && grunt --addon=web-apps-mobile
## Final image ## Final image
FROM onlyoffice/documentserver:${product_version}.${build_number} FROM onlyoffice/documentserver:${product_version}.${build_number}
ARG oo_root ARG oo_root
ARG COMPANY_NAME=onlyoffice
ARG PRODUCT_NAME=documentserver #ARG COMPANY_NAME=onlyoffice
ARG DS_SUPERVISOR_CONF=/etc/supervisor/conf.d/ds.conf #ARG PRODUCT_NAME=documentserver
#ARG DS_SUPERVISOR_CONF=/etc/supervisor/conf.d/ds.conf
# Remove all documentserver-example data # Remove all documentserver-example data
RUN rm -rf /var/www/$COMPANY_NAME/$PRODUCT_NAME-example \ #RUN rm -rf /var/www/$COMPANY_NAME/$PRODUCT_NAME-example \
&& rm -rf /etc/$COMPANY_NAME/$PRODUCT_NAME-example \ # && rm -rf /etc/$COMPANY_NAME/$PRODUCT_NAME-example \
&& rm -f $DS_SUPERVISOR_CONF \ # && rm -f $DS_SUPERVISOR_CONF \
&& rm -f /etc/nginx/includes/ds-example.conf \ # && rm -f /etc/nginx/includes/ds-example.conf \
&& ln -s /etc/$COMPANY_NAME/$PRODUCT_NAME/supervisor/ds.conf $DS_SUPERVISOR_CONF # && ln -s /etc/$COMPANY_NAME/$PRODUCT_NAME/supervisor/ds.conf $DS_SUPERVISOR_CONF
# server # server
COPY --from=build-stage --chown=ds:ds /build/converter ${oo_root}/server/FileConverter/converter COPY --from=build-stage --chown=ds:ds /build/converter ${oo_root}/server/FileConverter/converter

@ -1 +1 @@
Subproject commit 4ff56c51ac078ab8177072c57846edae446a4c02 Subproject commit 01eb43ddf96ec601318eb96a6535aa0ea9b59f0c

View File

@ -43,7 +43,7 @@ git format-patch -1 -o ../../patches/wed-apps/
### Step 3: Build Docker Image ### Step 3: Build Docker Image
Update Dockerfile. You can get tags <a href="https://hub.docker.com/r/onlyoffice/documentserver/tags">here</a> Update Dockerfile. You can get tags <a href="https://hub.docker.com/r/onlyoffice/documentserver/tags">here</a>
``` ```
ARG product_version=8.1.3 ARG product_version=8.2
ARG build_number=2 ARG build_number=2
``` ```
Build docker image without tags Build docker image without tags
@ -55,7 +55,7 @@ docker build -t wsoffice .
Or directly Or directly
``` ```
docker build --build-arg product_version=8.1.3 --build-arg build_number=2 -t wsoffice . docker build --build-arg product_version=8.2 --build-arg build_number=2 -t wsoffice .
``` ```
### Step 4: Test and enjoy ### Step 4: Test and enjoy

@ -1 +0,0 @@
Subproject commit a60bc78e2328982c5e7a43dd9865a9df7a996439

View File

@ -2,7 +2,7 @@
"services": { "services": {
"CoAuthoring": { "CoAuthoring": {
"server": { "server": {
"savetimeoutdelay": 5000 "savetimeoutdelay": 15000
}, },
"expire": { "expire": {
"sessionidle": "10h", "sessionidle": "10h",
@ -12,11 +12,8 @@
"enable": true, "enable": true,
"interval": "1m" "interval": "1m"
}, },
"lock": {
"enable": false
},
"callbackBackoffOptions": { "callbackBackoffOptions": {
"retries": 5, "retries": 10,
"timeout": { "timeout": {
"factor": 2, "factor": 2,
"minTimeout": 5000, "minTimeout": 5000,

View File

@ -1,7 +1,7 @@
From 89906da95f777d1fd093dddeb39ea30821288723 Mon Sep 17 00:00:00 2001 From c44eb4c80e24cfeb28c8938220060a41aeca1551 Mon Sep 17 00:00:00 2001
From: Fabrice <fabrice.roublot@workstreams.ch> From: WS-Bot <contact@workstreams.ch>
Date: Tue, 28 Jan 2025 12:29:01 +0100 Date: Mon, 14 Oct 2024 16:57:25 +0200
Subject: [PATCH] fix licence on 8.2.2 Subject: [PATCH 1/3] Update user constent and license
--- ---
Common/sources/constants.js | 4 ++-- Common/sources/constants.js | 4 ++--
@ -10,55 +10,55 @@ Subject: [PATCH] fix licence on 8.2.2
3 files changed, 11 insertions(+), 11 deletions(-) 3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/Common/sources/constants.js b/Common/sources/constants.js diff --git a/Common/sources/constants.js b/Common/sources/constants.js
index 700696ff..fa308911 100644 index 700696f..fa30891 100644
--- a/Common/sources/constants.js --- a/Common/sources/constants.js
+++ b/Common/sources/constants.js +++ b/Common/sources/constants.js
@@ -87,8 +87,8 @@ exports.LICENSE_RESULT = { @@ -87,8 +87,8 @@ exports.LICENSE_RESULT = {
NotBefore: 16 NotBefore: 16
}; };
-exports.LICENSE_CONNECTIONS = 20; -exports.LICENSE_CONNECTIONS = 20;
-exports.LICENSE_USERS = 3; -exports.LICENSE_USERS = 3;
+exports.LICENSE_CONNECTIONS = 9999; +exports.LICENSE_CONNECTIONS = 9999;
+exports.LICENSE_USERS = 9999; +exports.LICENSE_USERS = 9999;
exports.LICENSE_EXPIRE_USERS_ONE_DAY = 24 * 60 * 60; // day in seconds exports.LICENSE_EXPIRE_USERS_ONE_DAY = 24 * 60 * 60; // day in seconds
exports.AVS_OFFICESTUDIO_FILE_UNKNOWN = 0x0000; exports.AVS_OFFICESTUDIO_FILE_UNKNOWN = 0x0000;
diff --git a/Common/sources/license.js b/Common/sources/license.js diff --git a/Common/sources/license.js b/Common/sources/license.js
index 8813cbac..37aba586 100644 index 8813cba..37aba58 100644
--- a/Common/sources/license.js --- a/Common/sources/license.js
+++ b/Common/sources/license.js +++ b/Common/sources/license.js
@@ -46,20 +46,20 @@ exports.readLicense = async function () { @@ -46,20 +46,20 @@ exports.readLicense = async function () {
type: c_LR.Success, type: c_LR.Success,
packageType: constants.PACKAGE_TYPE_OS, packageType: constants.PACKAGE_TYPE_OS,
mode: constants.LICENSE_MODE.None, mode: constants.LICENSE_MODE.None,
- branding: false, - branding: false,
+ branding: true, + branding: true,
connections: constants.LICENSE_CONNECTIONS, connections: constants.LICENSE_CONNECTIONS,
connectionsView: constants.LICENSE_CONNECTIONS, connectionsView: constants.LICENSE_CONNECTIONS,
- customization: false, - customization: false,
- advancedApi: false, - advancedApi: false,
- usersCount: 0, - usersCount: 0,
- usersViewCount: 0, - usersViewCount: 0,
+ customization: true, + customization: true,
+ advancedApi: true, + advancedApi: true,
+ usersCount: constants.LICENSE_CONNECTIONS, + usersCount: constants.LICENSE_CONNECTIONS,
+ usersViewCount: constants.LICENSE_CONNECTIONS, + usersViewCount: constants.LICENSE_CONNECTIONS,
usersExpire: constants.LICENSE_EXPIRE_USERS_ONE_DAY, usersExpire: constants.LICENSE_EXPIRE_USERS_ONE_DAY,
- hasLicense: false, - hasLicense: false,
+ hasLicense: true, + hasLicense: true,
buildDate: oBuildDate, buildDate: oBuildDate,
startDate: startDate, startDate: startDate,
- endDate: null, - endDate: null,
+ endDate: new Date("2099-01-01T23:59:59.000Z"), + endDate: new Date("2099-01-01T23:59:59.000Z"),
customerId: "", customerId: "",
- alias: "" - alias: ""
+ alias: "community" + alias: "community"
}, null]; }, null];
}; };
diff --git a/Makefile b/Makefile diff --git a/Makefile b/Makefile
index e8e1308f..3967dacb 100644 index e8e1308..23f7e2e 100644
--- a/Makefile --- a/Makefile
+++ b/Makefile +++ b/Makefile
@@ -87,7 +87,7 @@ DEBUG = $(BRANDING_DIR)/debug.js @@ -87,7 +87,7 @@ DEBUG = $(BRANDING_DIR)/debug.js
@ -66,10 +66,10 @@ index e8e1308f..3967dacb 100644
.NOTPARALLEL: .NOTPARALLEL:
-all: $(SPELLCHECKER_DICTIONARIES) $(TOOLS) $(SCHEMA) $(CORE_FONTS) $(DOCUMENT_TEMPLATES) $(LICENSE) $(WELCOME) $(INFO) build-date -all: $(SPELLCHECKER_DICTIONARIES) $(TOOLS) $(SCHEMA) $(CORE_FONTS) $(DOCUMENT_TEMPLATES) $(LICENSE) $(WELCOME) $(INFO) build-date
++all: $(SCHEMA) $(LICENSE) $(WELCOME) $(INFO) build-date +all: $(SCHEMA) $(LICENSE) $(WELCOME) $(INFO) build-date
build-date: $(GRUNT_FILES) build-date: $(GRUNT_FILES)
sed "s|\(const buildVersion = \).*|\1'${PRODUCT_VERSION}';|" -i $(COMMON_DEFINES_JS) sed "s|\(const buildVersion = \).*|\1'${PRODUCT_VERSION}';|" -i $(COMMON_DEFINES_JS)
-- --
2.30.2 2.47.0

View File

@ -1,15 +1,15 @@
From 0ff69dc133ce522e75b1ab1cd12e6bb5b4729b70 Mon Sep 17 00:00:00 2001 From 11da7405507e744086a739915d6b046f82b749b4 Mon Sep 17 00:00:00 2001
From: Fabrice <fabrice.roublot@workstreams.ch> From: WS-Bot <contact@workstreams.ch>
Date: Tue, 28 Jan 2025 13:24:20 +0100 Date: Mon, 14 Oct 2024 16:57:25 +0200
Subject: [PATCH] fix ms on fileconverter Subject: [PATCH 2/3] Add 'ms' package dependency to FileConverter
--- ---
FileConverter/npm-shrinkwrap.json | 7 ++++++- FileConverter/npm-shrinkwrap.json | 5 +++++
FileConverter/package.json | 3 ++- FileConverter/package.json | 1 +
2 files changed, 8 insertions(+), 2 deletions(-) 2 files changed, 6 insertions(+)
diff --git a/FileConverter/npm-shrinkwrap.json b/FileConverter/npm-shrinkwrap.json diff --git a/FileConverter/npm-shrinkwrap.json b/FileConverter/npm-shrinkwrap.json
index e57a7f59..fe4b10ef 100644 index e57a7f5..04afbc4 100644
--- a/FileConverter/npm-shrinkwrap.json --- a/FileConverter/npm-shrinkwrap.json
+++ b/FileConverter/npm-shrinkwrap.json +++ b/FileConverter/npm-shrinkwrap.json
@@ -4,6 +4,11 @@ @@ -4,6 +4,11 @@
@ -24,15 +24,8 @@ index e57a7f59..fe4b10ef 100644
"@expo/spawn-async": { "@expo/spawn-async": {
"version": "1.3.0", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/@expo/spawn-async/-/spawn-async-1.3.0.tgz", "resolved": "https://registry.npmjs.org/@expo/spawn-async/-/spawn-async-1.3.0.tgz",
@@ -112,4 +117,4 @@
"integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI="
}
}
-}
+}
\ No newline at end of file
diff --git a/FileConverter/package.json b/FileConverter/package.json diff --git a/FileConverter/package.json b/FileConverter/package.json
index 6b6207b1..a0ccb02b 100644 index 6b6207b..3e2abd0 100644
--- a/FileConverter/package.json --- a/FileConverter/package.json
+++ b/FileConverter/package.json +++ b/FileConverter/package.json
@@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@
@ -43,13 +36,6 @@ index 6b6207b1..a0ccb02b 100644
"@expo/spawn-async": "1.3.0", "@expo/spawn-async": "1.3.0",
"bytes": "3.0.0", "bytes": "3.0.0",
"co": "4.6.0", "co": "4.6.0",
@@ -19,4 +20,4 @@
"../DocService/sources/editorDataRedis.js"
]
}
-}
+}
\ No newline at end of file
-- --
2.30.2 2.47.0

View File

@ -1,14 +1,14 @@
From 7d920561d4d435dd01604bc9326188205ff3ae36 Mon Sep 17 00:00:00 2001 From 51b7c7be0ce97803ba17c31e871534cbeb5fb56a Mon Sep 17 00:00:00 2001
From: Fabrice <fabrice.roublot@workstreams.ch> From: WS-Bot <contact@workstreams.ch>
Date: Tue, 28 Jan 2025 13:27:43 +0100 Date: Mon, 26 Aug 2024 14:20:32 +0200
Subject: [PATCH] fix package.js on server Subject: [PATCH 3/3] Fix packaging of DocService
--- ---
package.json | 6 +++--- package.json | 4 ++--
1 file changed, 3 insertions(+), 3 deletions(-) 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package.json b/package.json diff --git a/package.json b/package.json
index 00506422..f3f023a3 100644 index 0050642..a08f856 100644
--- a/package.json --- a/package.json
+++ b/package.json +++ b/package.json
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
@ -29,13 +29,6 @@ index 00506422..f3f023a3 100644
], ],
"dest": "./" "dest": "./"
}, },
@@ -96,4 +96,4 @@
"3d-party-lic-report": "run-s 3d-party-lic-md-header 3d-party-lic-report:*",
"build": "run-p install:*"
}
-}
+}
\ No newline at end of file
-- --
2.30.2 2.47.0