COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 03-28-2020, 01:57 PM   #1
zeppelinux
Human being with feelings
 
Join Date: Mar 2020
Posts: 12
Default Docker image on DockerHub

Hi Ninjamers,

I added automated support for this workflow (GitHub + DockerHub):

Push Git Tag -> Linux Compile -> Create Release -> Add binary to the release -> Build Docker image from the release on DockerHub

Using forked from the official mirror GitHub repo: https://github.com/zeppelinux/ninjam
Image is available in DockerHub https://hub.docker.com/r/zeppelinux/ninjam-server

The description in the DockerHub repository is auto generated from the git readme.md and there is not much info, so here are some basic instructions:

$ docker run -v /path/to/ninjam/config.cfg:/usr/local/ninjam/config.cfg -p 2049:2049 --name ninjam zeppelinux/ninjam-server:v0.084

Out of the box configuration.cfg is a copy of example.cfg from the git repositiry, so it doesn't accept all network connections and not allowing anonymous login.

I'm plaining to create something (yaml's or Helm chart) for Kubernetes deployment as well.

NINJAM is awesome, appreciate the idea and the implementation very much!


Cheers,
Dmitry

Last edited by zeppelinux; 09-01-2021 at 12:50 AM. Reason: fix the command
zeppelinux is offline   Reply With Quote
Old 04-27-2020, 01:03 PM   #2
tomphoolery
Human being with feelings
 
Join Date: Apr 2020
Location: Philadelphia
Posts: 5
Default

This is awesome! I wonder how a Ninjam server would fare in a Kubernetes workload...
tomphoolery is offline   Reply With Quote
Old 04-27-2020, 02:36 PM   #3
zeppelinux
Human being with feelings
 
Join Date: Mar 2020
Posts: 12
Default

Quote:
Originally Posted by tomphoolery View Post
This is awesome! I wonder how a Ninjam server would fare in a Kubernetes workload...
Thanks! I have it deployed (created a simple Helm chart, will share it soon) to the cluster and exposed, check it out open.jaminpeace.com:2049

When idle consumes very little resources, still looking forward to put some load on it
zeppelinux is offline   Reply With Quote
Old 04-28-2020, 01:28 AM   #4
zeppelinux
Human being with feelings
 
Join Date: Mar 2020
Posts: 12
Default

Helm Charts are created - makes everything highly automated.

Check it out https://forum.cockos.com/showthread.php?t=235302
zeppelinux is offline   Reply With Quote
Old 06-19-2020, 04:40 PM   #5
zeppelinux
Human being with feelings
 
Join Date: Mar 2020
Posts: 12
Default

Seems like I changed the config file name at some point (and broke the cmd line provided initially), fixed now.

There is also support for jam sessions persistence:

add/uncomment
SessionArchive /usr/local/ninjam/sessions/ 3600

docker run -v /path/to/ninjam/config.cfg:/usr/local/ninjam/config.cfg -v /your/local/sessions:/usr/local/ninjam/sessions -p 2049:2049 --rm --name ninjam zeppelinux/ninjam-server:v0.083

Last edited by zeppelinux; 06-19-2020 at 05:02 PM.
zeppelinux is offline   Reply With Quote
Old 01-02-2021, 04:39 PM   #6
mkmusic
Human being with feelings
 
Join Date: May 2013
Posts: 9
Default Docker-compose file

Hi, wondering if you've considered releasing this as a docker-compose file.

I noticed the docker releases are missing a "latest" tag usually assigned to most recent image. See this example: https://github.com/hpcng/singularity/issues/2825

Happy New Year!

Last edited by mkmusic; 01-02-2021 at 10:54 PM. Reason: latest tag
mkmusic is offline   Reply With Quote
Old 01-03-2021, 12:58 AM   #7
zeppelinux
Human being with feelings
 
Join Date: Mar 2020
Posts: 12
Default

Quote:
Originally Posted by mkmusic View Post
Hi, wondering if you've considered releasing this as a docker-compose file.

I noticed the docker releases are missing a "latest" tag usually assigned to most recent image. See this example: https://github.com/hpcng/singularity/issues/2825

Happy New Year!
Happy 2021!

Docker image 'latest' tag is considered as a bad practice, not sure if it worth to encourage to use it.

Docker compose can be useful when there is something to compose. NINJAM is just one container. Can you please elaborate why you need it?
zeppelinux is offline   Reply With Quote
Old 01-03-2021, 09:42 AM   #8
mkmusic
Human being with feelings
 
Join Date: May 2013
Posts: 9
Default

I'm interested in running 2 - 3 Ninjam servers, so was thinking of using a compose file to simplify maintenance.

My understanding is latest is a tag so when executing `docker pull MyName/Ninjam` you'll receive the most recent release tagged "latest" automatically. Example, forum guide links v083 while docker lists v084 from a couple weeks ago.

Anyways, thanks for maintaining this!
mkmusic is offline   Reply With Quote
Old 01-03-2021, 11:03 AM   #9
zeppelinux
Human being with feelings
 
Join Date: Mar 2020
Posts: 12
Default

You can achieve what you need just by running the same command couple of times (change port & container name). Compose would help and there should be no problem to create one (pull requests are welcome
Saying that, if you really want to automate things - use Helm Charts to deploy to K8.
By not having latest your deployment is safe from auto-upgrade (and potentially from breaking changes), but I see what you mean.

Cheers!
Dmitry
zeppelinux is offline   Reply With Quote
Old 07-22-2021, 02:28 PM   #10
zeppelinux
Human being with feelings
 
Join Date: Mar 2020
Posts: 12
Default Dynamic DNS

In case somebody needs simple solution for attaching dynamic Ip (one that you get from your ISP) to some domain, so you can refer/publish your NINJAM server as my-domain.me:2049 (or whatever) here is the project I open sourced recently: https://github.com/zeppelinux/quarked-ddns
__________________
How low can you go?
LowD
zeppelinux is offline   Reply With Quote
Old 05-12-2023, 09:03 AM   #11
brummbear
Human being with feelings
 
brummbear's Avatar
 
Join Date: May 2016
Location: out west
Posts: 301
Default

Hey Zeppelin, just dropping in to say THANK YOU for uploading the image. Just switched my private server from a Windows PC to a NAS with Docker - your image made this such an easy switch. Thx!
brummbear is offline   Reply With Quote
Old 05-12-2023, 05:26 PM   #12
zeppelinux
Human being with feelings
 
Join Date: Mar 2020
Posts: 12
Default

This is awesome, Thanks brummbear!

Docker Hub is not free to upload new images anymore but whatever is there is still up to date. Will figure out something in case it needs to be updated.
__________________
How low can you go?
LowD
zeppelinux is offline   Reply With Quote
Old 05-12-2023, 05:39 PM   #13
brummbear
Human being with feelings
 
brummbear's Avatar
 
Join Date: May 2016
Location: out west
Posts: 301
Default

Quote:
Originally Posted by zeppelinux View Post
This is awesome, Thanks brummbear!

Docker Hub is not free to upload new images anymore but whatever is there is still up to date.
oops - I did not know that. I mean, is that even true for public repos? I understand that hosting images costs money but for open source public repos this would be a big let down...
brummbear is offline   Reply With Quote
Old 05-12-2023, 11:05 PM   #14
zeppelinux
Human being with feelings
 
Join Date: Mar 2020
Posts: 12
Default

They said Open Source projects are still ok, but these are some projects that they decide... I applied. At that time download counter already showed 100+ thousands, they still didn't get back to me.
__________________
How low can you go?
LowD
zeppelinux is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.