OwnCloud Infinite Scale telepítése LXC containerbe

  • Linux
  • 2025. február 24.

Install the oCIS binary

Download the oCIS binary of your preferred version and for your CPU architecture and operating system from download.owncloud.com.

 wget -O ocis  https://github.com/owncloud/ocis/releases/download/v7.0.1/ocis-7.0.1-linux-amd64
 chmod +x ocis
 mv ocis /usr/bin

Rename the downloaded binary to ocis and move it to /usr/bin/. As a next step, you need to mark it as executable with chmod +x /usr/bin/ocis.

When you now run ocis help on your command line, you should see the available options for the oCIS command.

OCIS user

sudo useradd -M -s /usr/sbin/nologin ocis
sudo mkdir -p /var/lib/ocis 
sudo mkdir -p /etc/ocis
sudo mkdir -p /var/log/ocis
sudo chown -R ocis:ocis /var/lib/ocis
sudo chown -R ocis:ocis /etc/ocis
sudo chown -R ocis:ocis /var/log/ocis

ENV file

OCIS_URL=https://some-hostname-or-ip:9200
PROXY_HTTP_ADDR=0.0.0.0:9200
OCIS_INSECURE=true
OCIS_LOG_LEVEL=error
OCIS_CONFIG_DIR=/etc/ocis
OCIS_BASE_DATA_PATH=/var/lib/ocis

Systemd service definition

Create the Systemd service definition for oCIS in the file /etc/systemd/system/ocis.service with following content:

nano /etc/systemd/system/ocis.service

[Unit]
Description=OCIS server

[Service]
Type=simple
User=ocis
Group=ocis
EnvironmentFile=/etc/ocis/ocis.env
ExecStart=ocis server
Restart=always

[Install]
WantedBy=multi-user.target

n the service definition we referenced /etc/ocis/ocis.env as our file containing environment variables for the oCIS process. In order to create the file we need first to create the folder /etc/ocis/ and then we can add the actual /etc/ocis/ocis.env with following content:

OCIS_URL=https://some-hostname-or-ip:9200
PROXY_HTTP_ADDR=0.0.0.0:9200
OCIS_INSECURE=false

OCIS_LOG_LEVEL=error

OCIS_CONFIG_DIR=/etc/ocis
OCIS_BASE_DATA_PATH=/var/lib/ocis

Since we set OCIS_CONFIG_DIR to /etc/ocis you can also place configuration files in this directory.

Please change your OCIS_URL in order to reflect your actual deployment. If you are using self-signed certificates you need to set OCIS_INSECURE=true in /etc/ocis/ocis.env.

oCIS will store all data in /var/lib/ocis, because we configured it so by setting OCIS_BASE_DATA_PATH. Therefore you need to create that directory and make it accessible to the user, you use to start oCIS.

Starting the oCIS service

sudo -u ocis ocis init --config-path /etc/ocis

Új initnél le kell törölni az idp mappát (vagy az egészet) az /var/lib/ocis alól

Initialize the oCIS configuration by running ocis init --config-path /etc/ocis.

You can enable oCIS now by running systemctl enable --now ocis. It will ensure that oCIS also is restarted after a reboot of the host.

If you need to restart oCIS because of configuration changes in /etc/ocis/ocis.env, run systemctl restart ocis.

You can have a look at the logs of oCIS by issuing journalctl -f -u ocis.

https://doc.owncloud.com/ocis/7.0/deployment/storage/posixfs.html

STORAGE_USERS_DRIVER="posix"
STORAGE_USERS_POSIX_ROOT=<local-path>
STORAGE_USERS_POSIX_WATCH_TYPE="inotifywait"
STORAGE_USERS_ID_CACHE_STORE="nats-js-kv"
STORAGE_USERS_ID_CACHE_STORE_NODES="localhost:9233"
STORAGE_USERS_POSIX_USE_SPACE_GROUPS="true"

/etc/systemd/system/nats.service