|
|
|
To remove all data of an instance:
|
|
|
|
|
|
|
|
1. Access to the instance
|
|
|
|
2. Stop the containers: `docker-compose down`
|
|
|
|
3. Remove all the mounted folders:
|
|
|
|
```
|
|
|
|
$ sudo rm -r /home/opencell/{opencelldata,input-files,postgresql,opencell-log
|
|
|
|
```
|
|
|
|
4. Execute the deploy playbook.
|
|
|
|
|
|
|
|
# Errors
|
|
|
|
|
|
|
|
## Keycloak without the users?
|
|
|
|
### Solution
|
|
|
|
1. Access to the instance via SSH
|
|
|
|
2. Execute:
|
|
|
|
```
|
|
|
|
$ docker exec opencell rm /opt/jboss/opencell-first-start-done
|
|
|
|
```
|
|
|
|
3. Restart OpenCell:
|
|
|
|
```
|
|
|
|
$ docker restart opencell
|
|
|
|
```
|
|
|
|
### Why?
|
|
|
|
When OpenCell image is created, it imports JSON that configure Keycloak. This file is named `opencell-realm-and-users.json` and located in `/opt/jboss`.
|
|
|
|
|
|
|
|
After do this import we create a file named `opencell-first-start-done` that is used to check if import already done to not do it again if docker restart is done on this image. |