Flexget request - completed


Recommended Posts

Anyone interested in making a Flexget container ?

 

I found this online, but it seems to hardcode paths which I don't want.  Looked at the needo/sacreagent headphones container (that I am installing now) and I'm lost trying to turn the flexget into something sexier.

 

Any takers ?

 

FROM google/python:2.7
MAINTAINER cptactionhank <[email protected]>

RUN pip install -I flexget transmissionrpc

RUN mkdir -p /var/lib/flexget \
    && touch /var/lib/flexget/config.yml

VOLUME ["/var/lib/flexget"]

ENTRYPOINT ["/usr/local/bin/flexget", "--loglevel", "warning", "-c", "/var/lib/flexget/config.yml"]

CMD ["daemon", "start"]

Link to comment
  • Replies 56
  • Created
  • Last Reply

Top Posters In This Topic

hi dalben you still after a flexget docker?, i can generate a arch linux based flexget docker if your ok with that?, or do you want to stick with the phusion based images?.

 

I really don't mind what the base is.  If you could whip one up that would be great.

 

Be interested in what the usage case is as i dropped flexget when i moved to deluge and I suspect many others could too.

Link to comment

ok give this a whirl, configuration of flexget is done in the defined /config volume, ive included a sample yml file which shows the formatting for the scheduler (running flexget as daemon) just incase you had previously had it running via a cron job and not aware of the newer daemon mode scheduler.

 

https://registry.hub.docker.com/u/binhex/arch-flexget/

 

let me know how you get on.

 

 

Link to comment

Can't pull it down

 

root@tdm:/mnt/cache/docker# docker pull binhex/arch-flexget
Pulling repository binhex/arch-flexget
a7a348eba40c: Error pulling image (latest) from binhex/arch-flexget, endpoint: https://cdn-registry-1.docker.io/v1/, a7a348eba40c: Error pulling image (latest) from binhex/arch-flexget, read tcp 54.230.73.75:443: connection reset by peer ef585917: Download complete
55b6e2923920: Error downloading dependent layers


2014/07/22 10:30:03 Could not find repository on any of the indexed registries.
root@tdm:/mnt/cache/docker#

Link to comment

Can't pull it down

 

root@tdm:/mnt/cache/docker# docker pull binhex/arch-flexget
Pulling repository binhex/arch-flexget
a7a348eba40c: Error pulling image (latest) from binhex/arch-flexget, endpoint: https://cdn-registry-1.docker.io/v1/, a7a348eba40c: Error pulling image (latest) from binhex/arch-flexget, read tcp 54.230.73.75:443: connection reset by peer ef585917: Download complete
55b6e2923920: Error downloading dependent layers


2014/07/22 10:30:03 Could not find repository on any of the indexed registries.
root@tdm:/mnt/cache/docker#

 

hi dalben, thats odd!, i can successfully pull the image down here (22nd july 9.14am gmt), although i have the base already pulled down (binhex/arch-base) so cant do a 100% proof test without deleting all my dockers :-(. can you please try pulling it down again, i have seen issues with dockers registry where images didnt pull down and ive even see btrfs errors reported back, so it is possible the issue is at the docker end.

Link to comment

same mate.  Dunno what the poroblem is

 


root@tdm:/mnt/cache/docker# docker run -d --name=FlexGet -v /mnt/user/videos/:/media -v /mnt/cache/downloads/:/data -v /mnt/cache/apps/headphones/:/config -v /etc/localtime:/etc/localtime:ro binhex/arch-flexget
Unable to find image 'binhex/arch-flexget' locally
Pulling repository binhex/arch-flexget
a7a348eba40c: Error pulling image (latest) from binhex/arch-flexget, endpoint: https://cdn-registry-1.docker.io/v1/, a7a348eba40c: Error pulling image (latest) from binhex/arch-flexget, read tcp 54.230.72.42:443: connection reset by peer ef585917: Download complete
55b6e2923920: Error downloading dependent layers


2014/07/22 19:52:10 Could not find repository on any of the indexed registries.

Link to comment

hey dalben, this has been niggling me so i forced a build on my base image and a build for flexget again to be on the safe side, then spun up a test vm with docker installed and did a pull and it was successful and i could create a container and start it, so it should work for you.

Link to comment

hey dalben, this has been niggling me so i forced a build on my base image and a build for flexget again to be on the safe side, then spun up a test vm with docker installed and did a pull and it was successful and i could create a container and start it, so it should work for you.

 

I appreciate the help but I really don't know what to tell you.  Where can I look ?  I just tried it again.  Same result.

root@tdm:/mnt/cache/docker# docker pull binhex/arch-flexget
Pulling repository binhex/arch-flexget
0bb0d1eb2b57: Error pulling image (latest) from binhex/arch-flexget, endpoint: https://cdn-registry-1.docker.io/v1/, 0bb0d1eb2b57: Error pulling image (latest) from binhex/arch-flexget, read tcp 54.230.74.43:443: connection reset by peer 16337e5a: Download complete
dce0559daa1b: Error downloading dependent layers


2014/07/23 20:24:28 Could not find repository on any of the indexed registries.

So I tried pulling another one down just for the hell of it. 

docker pull cptactionhank/flexget

Surprise surpirse, same error as yours.

 

I then tried another random container

docker pull rednut/unifi-controller

and everything was donwloading fine then bang, same error: "Could not find repository on any of the indexed registries."

 

A google search shows a few people with the error but no clear fix.  It's obviously my end, I'll keep searching.

This is just a draft, and I will not support it.

https://github.com/gfjardim/docker-flexget

The configuration is in the /config volume. The beta webUI on port 5050. Feel free do develop it.

 

Thanks gfjardim, before I can use it I need to learn how to gitpull and build the container myself........

Link to comment

I looked around before killing everything and found a _tmp directory in the /docker/volumes directory that was a couple of days old.  Had a stab in the dark, deleted that tmp directory and bingo itr all started working.

 

Attached is the XML file I made up for gfjardim dockerman if anyone wants to use it.

 

A couple of differences from the flexget plugin phaze built:

 

1) config.ym,l is now flexget.yml.  just rename your old one.

2) to retain your settings of what's been downloaded, rename db-config.sqlite to db-flexget.sqlite

 

/downloads maps to where you want flexget to download the nzb file too.

/media I don't use

/config maps to where the flexget config files are.

 

I really don't know much so support is very limited.

 

Thanks binhex and gfjardim for getting this together.

 

FlexGet.xml.txt

Link to comment
  • 3 months later...

How does this get added to the templates in the docker config for beta10a?

 

simply put the address below in the "templates repositories" text field in dockerman (unraid docker webui section), then click on the "reload info" link at the top right of the docker page and you should then be able to select any of my dockers and pull them down.

 

https://github.com/binhex/docker-templates

Link to comment
  • 1 month later...

I'm making a version of this docker based on phusion to match most of the dockers here instead of the arch one binhex made.  Once again, like the Beets docker, I made this is not software I use.  A few questions for the users:

 

1.  Do you usually want this run as a cron job or as a daemon

2.  Is the WebUI good and worth installing

Link to comment

Fired it up and got the following errors flooding the  log file (the container log file, not the one where I told it my /config was)

 

2015-01-06 20:21 CRITICAL manager Failed to find configuration file config.yml
2015-01-06 20:21 INFO manager Tried to read from: /etc/service/flexget, /root/.flexget, /root/.config/flexget
Could not instantiate manager: No configuration file found.

 

Here's the xml file I am using.  Yours plus some directory paths

 

<?xml version="1.0" encoding="utf-8"?>
<Container>
  <Name>FlexGet</Name>
  <Description>
    This is a Dockerfile for "FlexGet" - (http://flexget.com/)[br][br]
    [b][span style='color: #E80000;']Directions:[/span][/b][br]
    [b]/config[/b] : Where the config file will be created.[br]
  </Description>
  <Registry>https://registry.hub.docker.com/u/smdion/docker-flexget/</Registry>
  <Repository>smdion/docker-flexget</Repository>
  <BindTime>true</BindTime>
  <Privileged>false</Privileged>
  <Networking>
    <Mode>bridge</Mode>
    <Publish>
      <Port>
        <HostPort></HostPort>
        <ContainerPort></ContainerPort>
        <Protocol></Protocol>
      </Port>
    </Publish>
  </Networking>
  <Environment>
    <Variable>
      <Name></Name>
      <Value></Value>
    </Variable>
  </Environment>
  <Data>
    <Volume>
      <HostDir>/mnt/user/videos/</HostDir>
      <ContainerDir>/media</ContainerDir>
      <Mode>rw</Mode>
    </Volume>
    <Volume>
      <HostDir>/mnt/cache/apps/flexget/</HostDir>
      <ContainerDir>/config</ContainerDir>
      <Mode>rw</Mode>
    </Volume>
    <Volume>
      <HostDir>/mnt/cache/downloads/</HostDir>
      <ContainerDir>/downloads</ContainerDir>
      <Mode>rw</Mode>
    </Volume>
    <Volume>
      <HostDir>/etc/localtime</HostDir>
      <ContainerDir>/etc/localtime</ContainerDir>
      <Mode>ro</Mode>
    </Volume>
  </Data>
  <Icon>http://i.imgur.com/KXTg4bO.jpg</Icon>
  <Banner>http://i.imgur.com/Qx23K8K.png</Banner>
</Container>

Link to comment

Fired it up and got the following errors flooding the  log file (the container log file, not the one where I told it my /config was)

 

2015-01-06 20:21 CRITICAL manager Failed to find configuration file config.yml
2015-01-06 20:21 INFO manager Tried to read from: /etc/service/flexget, /root/.flexget, /root/.config/flexget
Could not instantiate manager: No configuration file found.

 

Here's the xml file I am using.  Yours plus some directory paths

 

<?xml version="1.0" encoding="utf-8"?>
<Container>
  <Name>FlexGet</Name>
  <Description>
    This is a Dockerfile for "FlexGet" - (http://flexget.com/)[br][br]
    [b][span style='color: #E80000;']Directions:[/span][/b][br]
    [b]/config[/b] : Where the config file will be created.[br]
  </Description>
  <Registry>https://registry.hub.docker.com/u/smdion/docker-flexget/</Registry>
  <Repository>smdion/docker-flexget</Repository>
  <BindTime>true</BindTime>
  <Privileged>false</Privileged>
  <Networking>
    <Mode>bridge</Mode>
    <Publish>
      <Port>
        <HostPort></HostPort>
        <ContainerPort></ContainerPort>
        <Protocol></Protocol>
      </Port>
    </Publish>
  </Networking>
  <Environment>
    <Variable>
      <Name></Name>
      <Value></Value>
    </Variable>
  </Environment>
  <Data>
    <Volume>
      <HostDir>/mnt/user/videos/</HostDir>
      <ContainerDir>/media</ContainerDir>
      <Mode>rw</Mode>
    </Volume>
    <Volume>
      <HostDir>/mnt/cache/apps/flexget/</HostDir>
      <ContainerDir>/config</ContainerDir>
      <Mode>rw</Mode>
    </Volume>
    <Volume>
      <HostDir>/mnt/cache/downloads/</HostDir>
      <ContainerDir>/downloads</ContainerDir>
      <Mode>rw</Mode>
    </Volume>
    <Volume>
      <HostDir>/etc/localtime</HostDir>
      <ContainerDir>/etc/localtime</ContainerDir>
      <Mode>ro</Mode>
    </Volume>
  </Data>
  <Icon>http://i.imgur.com/KXTg4bO.jpg</Icon>
  <Banner>http://i.imgur.com/Qx23K8K.png</Banner>
</Container>

 

I couldn't find a default config.yaml anywhere.. is there one?

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.