From 2ef03871259b9ce261d724b066e09bdf5294562b Mon Sep 17 00:00:00 2001 From: felixboehm Date: Wed, 3 Jun 2020 15:12:54 +0200 Subject: [PATCH] better docs --- examples/eos-compose/README.md | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/examples/eos-compose/README.md b/examples/eos-compose/README.md index dd68ddf..0c681f1 100644 --- a/examples/eos-compose/README.md +++ b/examples/eos-compose/README.md @@ -1,6 +1,36 @@ # EOS for oCIS -Set your domain or IP in .env and start compose file +# Setup + +Setup on hcloud cx21 and install some dependencies (imho needs cx21 to have enough ram for building ocis) + +First check for correct hcloud project: `hcloud context list' + +``` +# set your name here for labels and ssh-key setup +ME=$(whoami) +SERVER_NAME=eos-ocis-test + +# create server +hcloud server create --type cx21 --image ubuntu-20.04 --ssh-key $ME --name $SERVER_NAME --label owner=$ME --label for=test --label from=eos-compose + +IPADDR=$(hcloud server ip $SERVER_NAME) + +ssh -t root@$IPADDR apt-get update -y +ssh -t root@$IPADDR apt-get install -y git screen docker.io docker-compose +ssh -t root@$IPADDR git clone https://github.com/owncloud-docker/compose-playground.git +ssh -t root@$IPADDR "cd compose-playground/examples/eos-compose && ./build" +``` + +Anytime: +- Check IP `hcloud server ip $SERVER_NAME` +- Access `ssh root@IPADDR` + +# Run + +1. Access the hcloud machine or run localy ... +2. Set your domain or IP in .env +3. Start via docker compose ``` echo "OCIS_DOMAIN=localhost" > .env