Running jamovi with Docker

Discuss the jamovi platform, possible improvements, etc.
Post Reply
lange.kristian
Posts: 2
Joined: Tue Jun 21, 2022 9:26 am

Running jamovi with Docker

Post by lange.kristian »

Hi,

I couldn't find some documentation about how to run jamovi with a Docker container, especially which ports to expose. In the end I've got it running by exposing all ports with:

Code: Select all

docker run --network host jamovi/jamovi
But I'm not sure if this is the proper way? The webpage seems to work fine and is accessible under: 127.0.0.1:42969/?access_key=f81a0d78c99147c5865d58a230610cbf

But I get a couple of errors in the terminal:

docker run --network host jamovi/jamovi
/usr/lib/jamovi/server/jamovi/server/__main__.py:116: DeprecationWarning: There is no current event loop
loop = get_event_loop()
jamovi
version: 0.0.0
cli: 0.0.0
[Errno 2] No such file or directory: '/root/.jamovi/settings.json'
jamovi.server.server - listening across origin(s): 127.0.0.1:42969 127.0.0.1:41749 127.0.0.1:35705
jamovi.server.server - jamovi accessible from: 127.0.0.1:42969/?access_key=f81a0d78c99147c5865d58a230610cbf
ports: 42969, 41749, 35705, access_key: f81a0d78c99147c5865d58a230610cbf
jamovi.server.session - creating instance: 9a0e4dce-f1fc-40be-adc1-0cef4c19fb46
instance_started 9a0e4dce-f1fc-40be-adc1-0cef4c19fb46
404 GET /modules/r-datasets?v=1.0.1.0 (127.0.0.1) 0.65ms
404 GET /modules/lsj-data?v=1.0.1.0 (127.0.0.1) 0.85ms


So, I guess my questions are:
1) How to properly run jamovi with Docker?
2) Are the errors something to worry about?

Best,
Kristian
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: Running jamovi with Docker

Post by jonathon »

yes, i should improve the documentation here. this docker-compose should help you out:

https://github.com/jamovi/jamovi/blob/current-dev/docker-compose.yaml

none of those error messages/warnings you need to worry about.

cheers

jonathon
lange.kristian
Posts: 2
Joined: Tue Jun 21, 2022 9:26 am

Re: Running jamovi with Docker

Post by lange.kristian »

Thanks! It works with docker-compose. Just for my understanding what's this other container 'jamovi-deps' doing? It's not started by default, isn't it?
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: Running jamovi with Docker

Post by jonathon »

jamovi-deps is a build dependency, so not needed at runtime.

cheers

jonathon
Post Reply