mirror of
https://github.com/aleho/onlyoffice-ce-docker-license.git
synced 2025-12-31 13:14:05 +01:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
697835396d | ||
|
|
73bd42b61b | ||
|
|
bd859cd0b1 | ||
|
|
ce96de1d2b | ||
|
|
f78cf9366c |
25
.github/workflows/docker-image.yml
vendored
Normal file
25
.github/workflows/docker-image.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Docker Image CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set version
|
||||
id: version
|
||||
run: echo ::set-output name=release_version::${GITHUB_REF#refs/*/}
|
||||
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
echo Building version ${{ steps.version.outputs.release_version }}...
|
||||
docker build . --file Dockerfile --tag alehoho/oo-ce-docker-license:${{ steps.version.outputs.release_version }}
|
||||
@@ -1,6 +1,6 @@
|
||||
## Build stage
|
||||
ARG product_version=6.1.0
|
||||
ARG build_number=83
|
||||
ARG product_version=6.2.2
|
||||
ARG build_number=21
|
||||
ARG oo_root='/var/www/onlyoffice/documentserver'
|
||||
|
||||
FROM onlyoffice/documentserver:${product_version}.${build_number} as build-stage
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From cf7351495fd7cdb2ede5bfe4972adc1f0aa1465e Mon Sep 17 00:00:00 2001
|
||||
From ae791a4d73a613138a2fee024e04bf8009032617 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Hofbauer <alex@derhofbauer.at>
|
||||
Date: Sun, 27 Dec 2020 21:49:37 +0100
|
||||
Subject: [PATCH] Patch for license
|
||||
@@ -14,17 +14,17 @@ Subject: [PATCH] Patch for license
|
||||
7 files changed, 15 insertions(+), 16 deletions(-)
|
||||
|
||||
diff --git a/Common/sources/commondefines.js b/Common/sources/commondefines.js
|
||||
index 694a13a..b2b2e9b 100644
|
||||
index a57f353..78edbd3 100644
|
||||
--- a/Common/sources/commondefines.js
|
||||
+++ b/Common/sources/commondefines.js
|
||||
@@ -975,8 +975,8 @@ const c_oAscUnlockRes = {
|
||||
@@ -992,8 +992,8 @@ const c_oAscUnlockRes = {
|
||||
Empty: 2
|
||||
};
|
||||
|
||||
-const buildVersion = '4.1.2';
|
||||
-const buildNumber = 37;
|
||||
+const buildVersion = '6.1.0';
|
||||
+const buildNumber = 83;
|
||||
+const buildVersion = '6.2.2';
|
||||
+const buildNumber = 21;
|
||||
|
||||
exports.TaskQueueData = TaskQueueData;
|
||||
exports.CMailMergeSendData = CMailMergeSendData;
|
||||
@@ -42,7 +42,7 @@ index 2b79e02..738df37 100644
|
||||
|
||||
exports.AVS_OFFICESTUDIO_FILE_UNKNOWN = 0x0000;
|
||||
diff --git a/Common/sources/license.js b/Common/sources/license.js
|
||||
index 19f0b61..30c31c4 100644
|
||||
index 19f0b61..43adc9b 100644
|
||||
--- a/Common/sources/license.js
|
||||
+++ b/Common/sources/license.js
|
||||
@@ -34,7 +34,7 @@
|
||||
@@ -50,7 +50,7 @@ index 19f0b61..30c31c4 100644
|
||||
const constants = require('./constants');
|
||||
|
||||
-const buildDate = '6/29/2016';
|
||||
+const buildDate = '2021-01-28T11:37:00.000Z';
|
||||
+const buildDate = '2021-04-19T14:36:00.000Z';
|
||||
const oBuildDate = new Date(buildDate);
|
||||
|
||||
exports.readLicense = function*() {
|
||||
@@ -80,7 +80,7 @@ index 19f0b61..30c31c4 100644
|
||||
-exports.packageType = constants.PACKAGE_TYPE_OS;
|
||||
+exports.packageType = constants.PACKAGE_TYPE_I;
|
||||
diff --git a/DocService/sources/DocsCoServer.js b/DocService/sources/DocsCoServer.js
|
||||
index 471a271..5df4fe0 100644
|
||||
index bd209ea..9151489 100644
|
||||
--- a/DocService/sources/DocsCoServer.js
|
||||
+++ b/DocService/sources/DocsCoServer.js
|
||||
@@ -103,6 +103,7 @@ const pubsubService = require('./pubsubRabbitMQ');
|
||||
@@ -100,7 +100,7 @@ index 471a271..5df4fe0 100644
|
||||
let shutdownFlag = false;
|
||||
|
||||
const MIN_SAVE_EXPIRATION = 60000;
|
||||
@@ -2969,7 +2970,7 @@ exports.install = function(server, callbackFunction) {
|
||||
@@ -2976,7 +2977,7 @@ exports.install = function(server, callbackFunction) {
|
||||
});
|
||||
};
|
||||
exports.setLicenseInfo = function(data) {
|
||||
@@ -110,7 +110,7 @@ index 471a271..5df4fe0 100644
|
||||
exports.getLicenseInfo = function() {
|
||||
return licenseInfo;
|
||||
diff --git a/DocService/sources/server.js b/DocService/sources/server.js
|
||||
index db085bb..7d76d34 100644
|
||||
index b623759..29574bd 100644
|
||||
--- a/DocService/sources/server.js
|
||||
+++ b/DocService/sources/server.js
|
||||
@@ -129,7 +129,6 @@ try {
|
||||
@@ -147,5 +147,5 @@ index 40bf93e..1df9c10 100644
|
||||
build-date: $(GRUNT_FILES)
|
||||
sed "s|\(const buildVersion = \).*|\1'${PRODUCT_VERSION}';|" -i $(COMMON_DEFINES_JS)
|
||||
--
|
||||
2.29.2
|
||||
2.30.2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user