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: 9
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.083

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; 06-19-2020 at 04:56 PM. 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: 9
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: 9
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: 9
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: 9
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: 9
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
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 07:46 PM.


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