spants Posted March 1, 2015 Share Posted March 1, 2015 I have built a template for Nodered and everything is working well. I have setup DockerHub and Github but I have the following issues: 1) the Template shows in the list as [nodered] nodered and I would like it to shown as [spants] nodered - where is the title of the repo defined?. 2) The icons do not work: In the template I defined: <Banner>http://i.imgur.com/zXpacAF.png</Banner> <Icon>http://i.imgur.com/zXpacAF.png</Icon> but these do not download... This is shown as a missing picture with url http://192.168.1.22/state/plugins/dynamix.docker.manager/images/spants-nodered-latest-icon.png Any ideas? Tony my unfinished template : <?xml version="1.0" encoding="utf-8"?> <Container> <Name>NodeRed</Name> <Description> NodeRed description here.[br][br] NodeRed will run on port 1880.[br][br] [b][span style='color: #E80000;']Directions:[/span][/b][br] [b]/data[/b] : in this path, Node Red will store it's configuration files. </Description> <Registry>https://registry.hub.docker.com/u/spants/nodered/</Registry> <GitHub>https://github.com/spants/unraidtemplates</GitHub> <Repository>spants/nodered</Repository> <BindTime>true</BindTime> <Privileged>false</Privileged> <Environment/> <Networking> <Mode>bridge</Mode> <Publish> <Port> <HostPort>1880</HostPort> <ContainerPort>1880</ContainerPort> <Protocol>tcp</Protocol> </Port> </Publish> </Networking> <Data> <Volume> <HostDir>/mnt/disk9/docker/appdata/nodered</HostDir> <ContainerDir>/data</ContainerDir> <Mode>rw</Mode> </Volume> </Data> <WebUI>http://[iP]:[PORT:1880]</WebUI> <Banner>http://i.imgur.com/zXpacAF.png</Banner> <Icon>http://i.imgur.com/zXpacAF.png</Icon> </Container> Quote Link to comment
CHBMB Posted March 1, 2015 Share Posted March 1, 2015 Is the repo name derived from the github location? I'll have a look later when I'm at my desktop. In the meantime check out chbmb on github as that structure is working I can take no credit for it I used smdion's as I wanted to modify one of his docker containers for personal use. Quote Link to comment
Zuhkov Posted March 1, 2015 Share Posted March 1, 2015 1) the Template shows in the list as [nodered] nodered and I would like it to shown as [spants] nodered - where is the title of the repo defined?. I will check to be sure, but I'm pretty sure the repo title is based on the name of the folder in which XML template resides in your repo. So in my repo (https://github.com/Zuhkov/docker-containers/tree/templates), my XML templates are in a directory called zuhkov which shows up in Docker manager as [ zuhkov ]. Quote Link to comment
spants Posted March 1, 2015 Author Share Posted March 1, 2015 Thanks - the repo name is the directory! Just need to sort out the icons not showing now... Quote Link to comment
CHBMB Posted March 1, 2015 Share Posted March 1, 2015 There's a closing environment without an opening if you know what I mean <Environment/> Still looking through the rest... Quote Link to comment
CHBMB Posted March 1, 2015 Share Posted March 1, 2015 Try this, I'm a noob at this sort of stuff so no guarantee <?xml version="1.0" encoding="utf-8"?> <Container> <Name>NodeRed</Name> <Description> NodeRed description here.[br][br] NodeRed will run on port 1880.[br][br] [b][span style='color: #E80000;']Directions:[/span][/b][br] [b]/data[/b] : in this path, Node Red will store it's configuration files. </Description> <Registry>https://registry.hub.docker.com/u/spants/nodered/</Registry> <Repository>spants/nodered</Repository> <BindTime>true</BindTime> <Privileged>false</Privileged> <Networking> <Mode>bridge</Mode> <Publish> <Port> <HostPort>1880</HostPort> <ContainerPort>1880</ContainerPort> <Protocol>tcp</Protocol> </Port> </Publish> </Networking> <Environment> <Variable> <Name></Name> <Value></Value> </Variable> </Environment> <Data> <Volume> <HostDir>/mnt/disk9/docker/appdata/nodered</HostDir> <ContainerDir>/data</ContainerDir> <Mode>rw</Mode> </Volume> </Data> <WebUI>http://[iP]:[PORT:1880]</WebUI> <Banner>http://i.imgur.com/zXpacAF.png</Banner> <Icon>http://i.imgur.com/zXpacAF.png</Icon> </Container> Quote Link to comment
trurl Posted March 1, 2015 Share Posted March 1, 2015 There's a closing environment without an opening if you know what I mean <Environment/> Still looking through the rest... Actually, this is valid XML. It is just an empty Environment node. A closing would be </Environment> Quote Link to comment
CHBMB Posted March 1, 2015 Share Posted March 1, 2015 There's a closing environment without an opening if you know what I mean <Environment/> Still looking through the rest... Actually, this is valid XML. It is just an empty Environment node. A closing would be </Environment> Just trying to compare it with mine that works, oops Can you see what the issue is trurl? I've tried the links and they load up in my browser. Wasn't sure what else to try.. Quote Link to comment
trurl Posted March 1, 2015 Share Posted March 1, 2015 I had a similar problem and I think the developer of the DUC container did too. I think it is caching the images somewhere and you have to get it to reload them. I don't really know how or if that is really even what is happening. I'm pretty sure I tried a browser refresh and it didn't help, but after a reboot there they were. Maybe stopping and restarting docker itself (not the container but the whole docker system). Quote Link to comment
sparklyballs Posted March 1, 2015 Share Posted March 1, 2015 make a repo called whatever (it really doesn't matter) then inside that repo, type in whatever you want your repo to appear as in the docker webui followed by / then the filename like so in that example the repo will appear as test repo Quote Link to comment
sparklyballs Posted March 1, 2015 Share Posted March 1, 2015 what you're doing essentialy is making a folder when you type / and you use the resulting folder as the repo address that you give to people to put in their unraid's. Quote Link to comment
spants Posted March 1, 2015 Author Share Posted March 1, 2015 Thanks - I have the repo name sorted out now. It is the name of the directory. Not sure of the icon not showing as they dont download for me. Anyone want to try my template? It installs NodeRed (nodered.org) on port 1880. Map /data to your where the flows will be saved. I will tidy it up after the cup final (come on Chelsea!) by adding some extra modules and description. https://github.com/spants/unraidtemplates/ Quote Link to comment
CHBMB Posted March 1, 2015 Share Posted March 1, 2015 Your name in lights (With Icons!!) Quote Link to comment
spants Posted March 1, 2015 Author Share Posted March 1, 2015 woohoo! Thanks! BTW, what triggers the update available message for a docker in unraid?. Is it the docker push to docker hub or do I change something on the xml/github? thanks Tony Quote Link to comment
sparklyballs Posted March 1, 2015 Share Posted March 1, 2015 woohoo! Thanks! BTW, what triggers the update available message for a docker in unraid?. Is it the docker push to docker hub or do I change something on the xml/github? thanks Tony when a new build is completed on docker hub. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.