Build

Build requirements

see Development - Getting Started

Get the sources

git clone https://github.com/owncloud/ocis.git
cd ocis

Build the oCIS binary

The oCIS binary source is in the ocis folder inside the oCIS repository. In this folder you can build the oCIS binary:

cd ocis
make generate
make build

After building you have the binary within the bin/ folder. Try to run it: ./bin/ocis -h

Build a local oCIS docker image

If you are developing and want to run your local changes in a docker or docker-compose setup, you have to build an image locally.

Therefore run following commands in the root of the oCIS repository:

docker build -t owncloud/ocis:dev .

Then you can test as usual via

docker run --rm -ti owncloud/ocis:dev