Closed SHU-red closed 2 years ago
Sorry i have additional info I have to use the volume as bind mount and through docker-compose
Isnt this possible?
EDIT: Something like:
services:
sepia:
container_name: sepia
image: sepia/home:v2.6.1_amd64
restart: unless-stopped
environment:
ISDOCKER: "true"
ports:
- "20726:20726"
volumes:
- /mycustompath/docker_volumes/sepia_data:/home/admin/SEPIA
Again as said, somehow the SEPIA folder is empty
UPDATE: Somehow i got the files created by using docker with cli-commands directly Now the container is in an infinite bootloop --> This means, that even if im already executing setup.sh, the container-execution stopps immediately
Can all of this be caused, just because im using bind-mount-directories and not defined docker-volumes? I need to use bind-mounts because of the zfs-filesystem in TrueNAS SCALE ... otherwise this would cause a mess ..
During one single loop the following logs can be seen
Starting nginx: nginx.
/--------------------------------------------------------------------------------
| Instructions to run SEPIA as Docker container
| More info: https://github.com/SEPIA-Framework/sepia-docs/wiki/SEPIA-inside-virtual-environments
|
| On your HOST (the machine that runs the Docker container) you need to increase
| virtual memory (mmap counts) for Elasticsearch via the command (Linux):
| - sudo sysctl -w vm.max_map_count=262144
| In Windows and Mac you might need to SSH into your Docker VM first, e.g. via
| - Mac (xhyve): screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
| - Windows (Docker Toolbox): docker-machine ssh
| The SEPIA Docker container will inherit this setting form the host.
|
| Create an EMPTY Docker volume so that the container can copy persistent data (Linux example):
| - SEPIA_SHARE=/home/[my-user]/sepia-home-share && mkdir -p
| - docker volume create --opt type=none --opt device= --opt o=bind sepia-home-share
|
| On the first run use the terminal to finish the SEPIA setup, e.g.:
| - docker run --rm --name=sepia_home -it -v sepia-home-share:/home/admin/SEPIA sepia/home:vX.Y.Z /bin/bash
| - bash setup.sh (steps 4 and 1)
|
| Exit setup and terminal and use a default run command like this:
| - docker run --rm --name=sepia_home -p 20726:20726 -v sepia-home-share:/home/admin/SEPIA sepia/home:vX.Y.Z
\--------------------------------------------------------------------------------
openjdk version "11.0.14" 2022-01-18
OpenJDK Runtime Environment (build 11.0.14+9-post-Debian-1deb10u1)
OpenJDK 64-Bit Server VM (build 11.0.14+9-post-Debian-1deb10u1, mixed mode, sharing)
Running: SEPIA Home v2.6.1
Running Elasticsearch 5.3.3
95
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Waiting for Elasticsearch on port 20724 ...
....
Connection found. Waiting for cluster health check (max. 60s) ...
Status YELLOW or GREEN: true
Elasticsearch is ready for action.
Checking Elasticsearch setup ...
Elasticsearch is NOT yet setup (or not running with default settings)! Run setup.sh first.
OK sorry for all of my self-talking here It seems ive been getting to make the setup by just setting everything up via normal docker-cli
Afterwards i hope i can manage/set-up my sepia through portainer-stacks (docker-compose) properly
Thanks
Hi @SHU-red
some additional info that might be helpful to understand what was going on:
I have to admit I'm not a big fan of running SEPIA inside of Docker at the moment. In its current state its more complicated to set up and maintain/update than simply installing Java and the hand full of basic Linux packages required to run SEPIA, but I get why its appealing to users especially when they manage containers from one central place (NAS etc.).
I think with some love the process could become much easier for example one could implement some checks for the empty SEPIA folder, use symlinks for the database folder etc. and run the setup before building the container. The user could then boot up the system right away and simply has to create a test user and change the default passwords for admin and assistant :thinking: .
Thank you very much!
Describe the bug I want to try out sepia Therefore i followed the guide at https://hub.docker.com/r/sepia/home
SEPIA client and server versions
To Reproduce Steps to reproduce the behavior:
Expected behavior setup.sh is there and further installation steps can be performed
Additional context Home-Server running on TrueNAS Scale I have no knowledge in using Sepia by now