LibreOffice Online Setup Notes

 

# install docker and prerequesists
# https://docs.docker.com/engine/installation/linux/ubuntu/

Single Line

apt-get install curl \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual \
apt-transport-https \
ca-certificates \
&& \
curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add – \
&& \
add-apt-repository \
“deb https://apt.dockerproject.org/repo/ \
ubuntu-$(lsb_release -cs) \
main” \
&& \
apt-get update && apt -y install docker-engine

Individual Steps

sudo apt-get install curl \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual

sudo apt-get install apt-transport-https \
ca-certificates

curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add –
apt-key fingerprint 58118E89F3A912897C070ADBF76221572C52609D

sudo add-apt-repository \
“deb https://apt.dockerproject.org/repo/ \
ubuntu-$(lsb_release -cs) \
main”

sudo apt-get update && sudo apt -y install docker-engine

apt-cache madison docker-engine

docker-engine | 1.13.0-0~xenial | https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages

//run docker
sudo docker pull libreoffice/online:master

docker run -t -d -p 127.0.0.1:9980:9980 -e “domain=domain\.ca” -e ‘username=admin’ -e ‘password=123456’ –dns 8.8.8.8 –dns 8.8.4.4 –restart always –cap-add MKNOD libreoffice/online:master

docker run -t -d -p 127.0.0.1:9980:9980 -e “domain=cloud\.example.\.com” –dns 8.8.8.8 –dns 8.8.4.4 –restart always –cap-add MKNOD collabora/code

docker run -t -d -p 127.0.0.1:9980:9980 -e “domain=domain\.ca” -e ‘username=admin’ -e ‘password=123456’ –dns 8.8.8.8 –dns 8.8.4.4 –restart always –cap-add MKNOD libreoffice/online:master

Notes:

With a recent update of the CODE docker image you can now specify the username/password combination in the docker startup like:

-e ‘username=admin’ -e ‘password=123456’

Afterwards you can access the admin backend accessible at:

https://office.example.com/loleaflet/dist/admin/admin.html

Resources

https://hub.docker.com/r/libreoffice/online/

https://www.collaboraoffice.com/code/

https://central.owncloud.org/t/collabora-online-code-libreoffice-online-with-owncloud/1576/2