From 2a34984f86881de806de4db13f05f633e0af6df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Wed, 9 Mar 2022 19:47:15 +0100 Subject: [PATCH] Update README.md --- README.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/README.md b/README.md index 18fb96e..1439e3c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,44 @@ +# FOR ARM64 ONLY +--- +## Onlyoffice-Documentserver with `arm64` support +### This runs a modified version of the official deb package with the help of `qemu` and `binfmt` +### To see how I did it, look [at this comment](https://github.com/ONLYOFFICE/DocumentServer/issues/152#issuecomment-1061902836) - I used this method and put it in `Dockerfile` so you don't have to mess aroud with your system in any weird ways (like in the mentioned comment) + +## Installation +#### 1. Clone the repository (for example to your home directory `cd /home/$USER/`) + + `git clone https://github.com/jiriks74/Docker-DocumentServer-Arm64.git && cd Docker-DocumentServer-Arm64` + +#### 2. Build the docker image + `docker-compose build` + - This will take a long time. The things that takte the longes are `dpkg-deb: building package 'onlyoffice-documentserver' in 'onlyoffice-documentserver-modified.deb'` and `Generating presentation themes...` - Both of them take like 20 minutes, it's not stuck, it's just slow + +#### 3. Create and start the container + `docker-compose up -d --build` + - This will start the server. It is set to be automatically started/restarted so as long you have docker running on startup this will start automatically + +## Updating +#### 1. Stop and delete the old container + + `docker-compose down` + +#### 2. (optional) Clear the docker cache +#### - ! This will remove all unused cache images ! (good for saving space, bad if you develop with and need cache, but you understand it at that point) + + `docker rmi $(docker images -f "dangling=true" -q)` + +#### 4. Rebuild the image without cache + + `docker-compose build --no-cache` + +#### 3. Create and start the new container + + `docker-compose up -d` + +--- + +## The rest of this file is the official `README.md`. I will not change anything in it, it may not work. If you care about something, make a pull request and we'll figure it out. + * [Overview](#overview) * [Functionality](#functionality) * [Recommended System Requirements](#recommended-system-requirements)