aleho / onlyoffice-ce-docker-license Goto Github PK
View Code? Open in Web Editor NEWOnlyoffice with mobile editing enabled
Home Page: https://hub.docker.com/r/alehoho/oo-ce-docker-license
Onlyoffice with mobile editing enabled
Home Page: https://hub.docker.com/r/alehoho/oo-ce-docker-license
I can pull the image and use that, but for some reason, building the image results in the following error:
$ docker build --tag=onlyoffice-patched https://github.com/aleho/onlyoffice-ce-docker-license.git
unable to prepare context: unable to 'git clone' to temporary context directory: error fetching: fatal: couldn't find remote ref master
: exit status 128
I've run the git clone
commands separately without any problem, using --branch v6.3.1.32
, so this is just a problem building.
Using multi-stage build saves ~200MB compressed size. Here is Dockerfile
:
ARG product_version=6.1.1
ARG build_number=53
FROM onlyoffice/documentserver:${product_version}.${build_number} AS builder
LABEL stage=builder
ARG product_version
ARG build_number
ARG build_deps="git make g++ nodejs npm"
RUN apt-get update && apt-get install -y ${build_deps}
ARG tag=v${product_version}.${build_number}
RUN mkdir /build \
&& 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
COPY license.patch /build/
WORKDIR /build/server
ENV PRODUCT_VERSION=${product_version}
ENV BUILD_NUMBER=${build_number}
RUN npm install -g pkg grunt grunt-cli \
&& git apply /build/license.patch \
&& make \
&& pkg /build/build_tools/out/linux_64/onlyoffice/documentserver/server/FileConverter --targets=node10-linux -o /build/converter \
&& pkg /build/build_tools/out/linux_64/onlyoffice/documentserver/server/DocService --targets=node10-linux --options max_old_space_size=4096 -o /build/docservice \
&& cp /build/converter /var/www/onlyoffice/documentserver/server/FileConverter/converter \
&& cp /build/docservice /var/www/onlyoffice/documentserver/server/DocService/docservice
FROM onlyoffice/documentserver:${product_version}.${build_number}
RUN sed -si \
's/isSupportEditFeature:function(){return!1}/isSupportEditFeature:function(){return true}/g' \
/var/www/onlyoffice/documentserver/web-apps/apps/documenteditor/mobile/app.js \
/var/www/onlyoffice/documentserver/web-apps/apps/presentationeditor/mobile/app.js \
/var/www/onlyoffice/documentserver/web-apps/apps/spreadsheeteditor/mobile/app.js
COPY --from=builder /build/converter /var/www/onlyoffice/documentserver/server/FileConverter/converter
COPY --from=builder /build/docservice /var/www/onlyoffice/documentserver/server/DocService/docservice
WORKDIR /
Label is used for easier stage image cleanup when build is done:
$ docker image prune --filter label=stage=builder
Hello aleho,
i have made a german tutorial for install onlyoffice in a lxc container under proxmox pve.
I think this tutorial will also work on a normal debian/ubuntu environment.
When you think it is helpful you can add the link on readme.
@aleho
Congratulations on your work, it worked perfectly. I agree with you, it is unacceptable for the company to say that the software is open-source and yet it puts blockages within the system.
I repeat, congratulations on your excellent work and I also protest with you this misrepresentation of open source software by some companies.
When opening a word document, it will be stuck in the loading interface
6.1.1.53 is released !
https://hub.docker.com/r/onlyoffice/documentserver/tags?page=1&ordering=last_updated
Is there upgrade planned to this version ?
Hi
I'm having difficulty generating certificate with certbot --nginx, I get some errors. How can I proceed with the installation of the certificate?
Thank you very much in advance!
Hello. Thanks for the great software!
I can't insert a shape or a photo in mobile editing. This worked fine in the original version.
Software used
Nextcloud 20.0.0
Onlyoffice 6.2.2.21
Docker version 20.10.5
Ive been running this for about 6 months now and havent seen this error before. Is this a client side config, or something introduced through 6.2 version?
# docker build --tag=onlyoffice-patched https://github.com/aleho/onlyoffice-ce-docker-license.git
Sending build context to Docker daemon 78.85kB
Step 1/30 : ARG product_version=6.2.0
Step 2/30 : ARG build_number=123
Step 3/30 : ARG oo_root='/var/www/onlyoffice/documentserver'
Step 4/30 : FROM onlyoffice/documentserver:${product_version}.${build_number} as build-stage
6.2.0.123: Pulling from onlyoffice/documentserver
83ee3a23efb7: Already exists
db98fc6f11f0: Already exists
f611acd52c6c: Already exists
1c793b3fbf5f: Pull complete
b37e9fe2f61a: Pull complete
831bbdeb7675: Pull complete
3d01ba254a78: Pull complete
Digest: sha256:3076745f11462786328b8c1604f0b4df2f9dda47527b3743c5dc5dfbaab13215
Status: Downloaded newer image for onlyoffice/documentserver:6.2.0.123
---> 512373e541c2
Step 5/30 : ARG product_version
---> Running in b2f3a341a463
Removing intermediate container b2f3a341a463
---> 302163207b39
Step 6/30 : ARG build_number
---> Running in d356b768e3d7
Removing intermediate container d356b768e3d7
---> 615cee522024
Step 7/30 : ARG oo_root
---> Running in 74474fdbcb75
Removing intermediate container 74474fdbcb75
---> 012fb2dcdfa7
Step 8/30 : ENV PRODUCT_VERSION=${product_version}
---> Running in c21e897e1f36
Removing intermediate container c21e897e1f36
---> 1fd39c37bd60
Step 9/30 : ENV BUILD_NUMBER=${build_number}
---> Running in 76d53959a652
Removing intermediate container 76d53959a652
---> 1edb2db8f159
Step 10/30 : ARG me_search='isSupportEditFeature:function(){return!1}'
---> Running in e1849930cbde
Removing intermediate container e1849930cbde
---> f0c01e02658b
Step 11/30 : ARG me_patch='s/isSupportEditFeature:function(){return!1}/isSupportEditFeature:function(){return true}/g'
---> Running in 862b4caebbc2
Removing intermediate container 862b4caebbc2
---> 6c0948a04b2d
Step 12/30 : RUN grep -q "${me_search}" ${oo_root}/web-apps/apps/documenteditor/mobile/app.js && sed -si "${me_patch}" ${oo_root}/web-apps/apps/documenteditor/mobile/app.js
---> Running in 3660f6de59ae
failed to create endpoint priceless_lewin on network bridge: failed to add the host (veth2faca5f) <=> sandbox (veth43ca11f) pair interfaces: operation not supported
Hello
I would like some help, I am using the /usr/bin/ocumentserver-letsencrypt.sh script but I am getting an error after generating the certificate.
nginx application does not starta, error logs:
Preparing for shutdown, it can take a lot of time, please wait... * Starting PostgreSQL 12 database server
[ OK ]
Se puder ajudar, agradeço!
Hello Alex,
today i pulled your new image from dockerhub.
I installed it like the old images. But with the new one i become some critical errors.
When i builded from scratch like you, it will work like a charm.
2020-10-19T12:56:01.671] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
[2020-10-19T12:56:01.671] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
[2020-10-19T12:56:01.671] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
[2020-10-19T12:56:01.671] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
I installed it like this:
sudo docker pull alehoho/oo-ce-docker-license
sudo docker run -d --name=onlyoffice -p 80:80 --restart=always alehoho/oo-ce-docker-license
sudo docker ps
sudo docker exec -it onlyoffice /bin/bash
nano /etc/onlyoffice/documentserver/local.json
// Changed part of this file
"token": {
"enable": {
"request": {
"inbox": true,
"outbox": true
},
"browser": true
},
"browser": {
"secretFromInbox": true
},
"inbox": {
"header": "Authorization"
},
"outbox": {
"header": "Authorization"
}
},
"secret": {
"inbox": {
"string": "KeinEinfachesPasswort"
},
"outbox": {
"string": "KeinEinfachesPasswort"
},
"session": {
"string": "KeinEinfachesPasswort"
}
}
I'm sorry for my bad english skills :/ But a big thank you for your work at this repo!
Hello !
Iam trying to integrate your docker onlyoffice unlimited with alfresco but how ?
i informe you in windows when i test is onlyoffice is running taping : this url : http://127.0.0.1:8083 or ip adrress of host example my ip adrress is : 192.168.0.200 so http://192.168.0.200:8083 its still working and so putting the url : in alfresco share :
Configuration d'ONLYOFFICE Document Server in alfresco :
Git version: 1.8.3.1
I got an error for command
docker build
--tag=onlyoffice-patched
https://github.com/aleho/onlyoffice-ce-docker-license.git
Step 1/15 : ARG oo_version=5.6.2.2
Please provide a source image with 'from' prior to commit
hi,guy,When can you upgrade oo to 6.2
can you make v6.3.2 docker image??
What I pull down is version 6.2.2?
Any luck to have it working using Makefile of official app :
https://github.com/nextcloud/documentserver_community/
https://github.com/nextcloud/documentserver_community/blob/master/Makefile
I replaced docker image by yours but fail on sed in version of Makefile
how open Common/sources/commondefines.js ?
how will doing run it?
https://github.com/aleho/onlyoffice-ce-docker-license/blob/main/server.patch
Ik would be nice to upload this image to Docker Hub.
There is a new version 6.4.1
Hi. I have a problem with connection between running onlyoffice docker and owncloud docker. When I try set in owncloud server params for connection to onlyoffice ( http://<IP_for_onlyoffice>) get error: Error when trying to connect (cURL error 7: Failed to connect to <IP_for_onlyoffice> port 80: No route to host)
Checking work of onlyoffice by link: <IP_for_onlyoffice>/healthcheck is Ok.
All dockers container running on one VM mashine with CentOS 7.
I do verify work on host mashine
What I did incorrect?
P.S. Owncloud install by link: https://doc.owncloud.com/server/10.5/admin_manual/installation/docker/#logging-in
Hello,
with the new 5.6.5.3 version the mobile editing doesn't work anymore.
With the previous version everything works perfekt.
Can you fix this? Many thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.