diff --git a/docs/cozystack/local.md b/docs/cozystack/local.md index e55e99528ae983c46e85883bb59b3bc73f2c0859..d915609155410c75e7d96c91018d726cebfc36a0 100644 --- a/docs/cozystack/local.md +++ b/docs/cozystack/local.md @@ -2,6 +2,8 @@  [cozy-stack](https://forge.grandlyon.com/web-et-numerique/factory/llle_project/cozy-stack) +To upgrade the stack on alpha, check [this page](../easycozy/configuration.md#stack-version). + ## Why are we cloning the official repo ? Cozy Cloud has chosen to not maintain the official [docker image](https://hub.docker.com/r/cozy/cozy-app-dev) properly. This is why we have a mirroring version of their official repository with some custom docker configuration improving: diff --git a/docs/easycozy/commands.md b/docs/easycozy/commands.md index 97f99a27840c8172a9d8a8df258e9ca321c345fd..7cbb86fb91a36bdcc3871f306c358e0c87622632 100644 --- a/docs/easycozy/commands.md +++ b/docs/easycozy/commands.md @@ -59,46 +59,7 @@ docker-compose exec cozy ./cozy instances debug --domain "[name].cozy.self-data. docker-compose exec cozy ./cozy instances ls ``` -## Stack - -### Check stack version - -```bash -docker-compose exec cozy ./cozy version -``` - -### Update stack version - -Update version in the Dockerfile on gitlab. - -**On server :** - -1. git pull or change locally the version in cozy-stack/Dockerfile -2. create the docker image using: - - ```bash - cd /easy-cozy/build - ./build-docker-image.sh - ``` - -3. Start the container based on the built image - - ```bash - cd .. - docker-compose up -d cozy - ``` - -:::info Error encounter - -Docker container was not launched, when consulting logs we can see the following error - -> ./cozy: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./cozy) - -We have replaced debian:stable-slim with ubuntu:20.10 as installer for our docker build: https://forge.grandlyon.com/pocs/cozy/easy-cozy/-/commit/48a30a03f209169e0f1ebb0d106bb4361e7cd167 - -::: - -### Manipulate data +## Manipulate data To read/write data from the stack you can run the following commands diff --git a/docs/easycozy/configuration.md b/docs/easycozy/configuration.md index 108eca2afb23a77a78075026befc646525b6cdc6..c1ed7bc4140a65c10229f132ef4fbeda2b3c669f 100644 --- a/docs/easycozy/configuration.md +++ b/docs/easycozy/configuration.md @@ -1,12 +1,10 @@ # Configuration -## :gear: Configuration - This section includes all configurations available for the stack. -### Configuration File +## Configuration File -The stack's configuration file is located at `.easy-cozy/cozystack/cozy.yml`. It can be edited in order to changes various parameters, smtp, logs ... +The stack's configuration file is located at `./easy-cozy/cozystack/cozy.yml`. It can be edited in order to changes various parameters, smtp, logs ... ### SMTP @@ -51,3 +49,42 @@ After updating configuration don't forget to restart your cozy-stack : ```bash docker-compose restart cozy ``` + +## Stack Version + +### Check stack version + +```bash +docker-compose exec cozy ./cozy version +``` + +### Update stack version + +Update version in the Dockerfile on gitlab. + +**On server :** + +1. git pull or change locally the version in cozy-stack/Dockerfile +2. create the docker image using: + + ```bash + cd /easy-cozy/build + ./build-docker-image.sh + ``` + +3. Start the container based on the built image + + ```bash + cd .. + docker-compose up -d cozy + ``` + +:::info Error encounter + +Docker container was not launched, when consulting logs we can see the following error + +> ./cozy: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./cozy) + +We have replaced debian:stable-slim with ubuntu:20.10 as installer for our docker build: https://forge.grandlyon.com/pocs/cozy/easy-cozy/-/commit/48a30a03f209169e0f1ebb0d106bb4361e7cd167 + +:::