Own docker as rock-on

Hey guys, im very new to docker, only played a bit with my nextcloud instance and Libreoffice online with.

So im a bit confused how it works to create your own rock-on. I want to user JDownloader on my Rockstor, so i found this docker image: https://hub.docker.com/r/aptalca/docker-jdownloader2/ now i realy dont know how to install it as an rock-on

@Fire_Fly40235 Hello and welcome to the Rockstor community.

I think what you are looking for is the Readme File in our rockon-registry. That describes what is required to create your own custom Rockon. Best have a read and then ask further questions as your run into problems, if in fact you do. Then once you have it up and running you can submit it to that repository where upon it will become available to all Rockstor users.

The vast majority of the Rockon definition files, all viable in that repository, were created by forum members so there is quite a lot of knowledge here about how to get them up and running. Also just looking at the other definitions can help a lot on seeing what is required. Basically it’s one json formatted file per Rockon to define what is needed to install it successfully.

Hope that helps.

Like i said im very new to docker, and the .json thing … i tried now this:

https://pastebin.com/VC3B1nZW

Summary

{
“JDownloader”: {
“containers”: {
“jload”: {
“image”: “aptalca/docker-jdownloader2”,
“launch_order”: 1,
“ports”: {
“8090”: {
“description”: “JDownloader WebUI port.”,
“host_default”: 8090,
“label”: “WebUI port”,
“protocol”: “tcp”,
“ui”: true
}
},
“volumes”: {
"/config": {
“description”: “Choose a Share for JDownloader configuration.”,
“label”: “Config Storage”
},
"/downloads": {
“description”: “Choose a Share for JDownloader downloads.”,
“label”: “Download Storage”
}
},
“environment”: {
“PUID”: {
“description”: “Enter a valid UID to run JDownloader as.”,
“label”: “UID to run JDownloader as.”,
},
“PGID”: {
“description”: “Enter a valid GID to use along with the above UID.”,
“label”: “GID to run JDownloader as.”,
}
}
}
},
“description”: “Jdownloader”,
“more_info”: “Jdownloader”,
“ui”: {
“slug”: “”
},
“volume_add_support”: true,
“website”: “http://jdownloader.org/”,
“version”: “2.0”
}
}

but im getting this error when i update my rock-on list:

Error while processing Rock-on profile at /opt/rockstor/rockons-metastore/jload.json. Lower level exception: Expecting property name: line 30 column 7 (char 1133)

Summary
        Traceback (most recent call last):

File “/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py”, line 41, in _handle_exception
yield
File “/opt/rockstor/src/rockstor/storageadmin/views/rockon.py”, line 418, in _get_available
ds = json.load(fo)
File “/usr/lib64/python2.7/json/init.py”, line 290, in load
**kw)
File “/usr/lib64/python2.7/json/init.py”, line 338, in loads
return _default_decoder.decode(s)
File “/usr/lib64/python2.7/json/decoder.py”, line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib64/python2.7/json/decoder.py”, line 382, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 30 column 7 (char 1157)

@Fire_Fly40235 Hello again. From a really quick look I think you have a couple of extra “,” in there around line 29, and 33.
Try the following json validation web page:

I.e past you json in there and press “Validate JSON”. So you could make those formatting changes and then re-check how that looks / runs.

Hope that helps and it looks like you are pretty close.

1 Like