help required! Building a template - icons missing


Recommended Posts

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>

Link to comment

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.

Link to comment

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 ].

Link to comment

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>

Link to comment

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..

Link to comment

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).

Link to comment

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/

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.