Can all Linux apps be dockerized


Recommended Posts

I asked in another post if it is possible to run Asset UPNP in unraid.

 

http://lime-technology.com/forum/index.php?topic=37544.msg347182#msg347182

 

 

But can it be dockerized?

 

Any help, hints and tips are welcome.

 

I am useless when it comes to coding it myself though.

 

Seems like it hsould be able too.  Only hitch may be the order specific download link.

 

How do you mean?

 

Link to comment

I asked in another post if it is possible to run Asset UPNP in unraid.

 

http://lime-technology.com/forum/index.php?topic=37544.msg347182#msg347182

 

 

But can it be dockerized?

 

Any help, hints and tips are welcome.

 

I am useless when it comes to coding it myself though.

 

it's a 30 day trial version unless you pay.

 

Look further down. you also can get the premium registered version if you want. But the Windows version keeps working after 30 days. I already have a license though.

Link to comment

I asked in another post if it is possible to run Asset UPNP in unraid.

 

http://lime-technology.com/forum/index.php?topic=37544.msg347182#msg347182

 

 

But can it be dockerized?

 

Any help, hints and tips are welcome.

 

I am useless when it comes to coding it myself though.

 

it's a 30 day trial version unless you pay.

 

Look further down. you also can get the premium registered version if you want. But the Windows version keeps working after 30 days. I already have a license though.

 

i knocked up a "working" docker earlier with the 30 day trial version , i'm not really certain what it's about so haven't really tested it out as such.

Link to comment

I asked in another post if it is possible to run Asset UPNP in unraid.

 

http://lime-technology.com/forum/index.php?topic=37544.msg347182#msg347182

 

 

But can it be dockerized?

 

Any help, hints and tips are welcome.

 

I am useless when it comes to coding it myself though.

 

it's a 30 day trial version unless you pay.

 

Look further down. you also can get the premium registered version if you want. But the Windows version keeps working after 30 days. I already have a license though.

 

i knocked up a "working" docker earlier with the 30 day trial version , i'm not really certain what it's about so haven't really tested it out as such.

 

Would you share it? How must it be configured? I need to tell it where my music library is and to convert flac to wav. I really appreciate it.

Because I am just starting with dockers it would be nice if you tell me how to set dockers up.

Link to comment

I asked in another post if it is possible to run Asset UPNP in unraid.

 

http://lime-technology.com/forum/index.php?topic=37544.msg347182#msg347182

 

 

But can it be dockerized?

 

Any help, hints and tips are welcome.

 

I am useless when it comes to coding it myself though.

 

it's a 30 day trial version unless you pay.

 

Look further down. you also can get the premium registered version if you want. But the Windows version keeps working after 30 days. I already have a license though.

 

i knocked up a "working" docker earlier with the 30 day trial version , i'm not really certain what it's about so haven't really tested it out as such.

 

Would you share it? How must it be configured? I need to tell it where my music library is and to convert flac to wav. I really appreciate it.

Because I am just starting with dockers it would be nice if you tell me how to set dockers up.

 

i sent you a PM (i think, lol)

Link to comment

Thanks, while that is aterrific guide, I rather not add a repositorie right now, but just a raw docker file. Can this be added in the same way or are more steps needed? I probably oversee many things and want to too fast. I just need a very basic beginner's guide.

 

i sent that docker as a raw dockerfile because specifically this app has a paid version that requires your order number in the wget pull.

 

obviously i can't build a normal dockerhub based docker on that basis as your order number would be out there for the world to pirate etc....

 

to build, take the raw file and make a file called Dockerfile (the cap D is important, with no extension either, use nano on the unraid box itself)... then making sure you are in the same folder as the dockerfile, run this to build...

 

docker build --rm=true -t sparklyballs/asset-upnp .

 

the . at the end of the code above is required.

Link to comment

Thanks, while that is aterrific guide, I rather not add a repositorie right now, but just a raw docker file. Can this be added in the same way or are more steps needed? I probably oversee many things and want to too fast. I just need a very basic beginner's guide.

 

i sent that docker as a raw dockerfile because specifically this app has a paid version that requires your order number in the wget pull.

 

obviously i can't build a normal dockerhub based docker on that basis as your order number would be out there for the world to pirate etc....

 

to build, take the raw file and make a file called Dockerfile (the cap D is important, with no extension either, use nano on the unraid box itself)... then making sure you are in the same folder as the dockerfile, run this to build...

 

docker build --rm=true -t sparklyballs/asset-upnp .

 

the . at the end of the code above is required.

 

after building both sparklyballs/asset-upnp and phusion/baseimage appear under docker images on the docker page in unraid.....

 

Can they now run.... or must they be added to a container?

 

I saw a file being downloaded from dbpoweramp.

 

 

Again I I want to go too fast I fear.

Have to take small steps to get a better understanding of how it works. I hope I will have a running Asset UPNP server on unraid soon. Gonna call it a day now, getting late over 01:10 AM here in Holland. Thanks so far.

Link to comment

Just for fun I tried to run the newly build image but asset runs at a totally wrong ip-address:

 

docker run -t -i sparklyballs/asset-upnp /bin/bash

Asset UPnP startup...

Version: R4.3

Functionality: Trial 30 Days Remaining

Supported formats: .opus .wv .aif .aiff .aifc .mpc .mpp .mp+ .ogg .oga .m4a .mp4 .m4b .aac .mp3 .mp2 .m2a .mpga .mpa .mpx .mpg .mp1 .mpeg .flac .fla .wav .bwf .w64

Starting Asset web interface at http://172.17.0.4:45537

Detected IP address: 172.17.0.4

 

Where does it get that that address from?

 

My home network is at 192.168.10.xxx

Link to comment

I am completely stuck at the moment. Been reading a lot about host and bridge and general networking in docker but its a bit above my capabilities. And the fact that it is all written in English doesn't help. But I cant blame you all for that. After building the image it looked promising but I think I did something wrong after that. I have the image showing up on the docker page in unraid but every time I try to edit a setting ie network from bridge to host I get a command failed error probably because docker daemon cant find it.

Link to comment

I am completely stuck at the moment. Been reading a lot about host and bridge and general networking in docker but its a bit above my capabilities. And the fact that it is all written in English doesn't help. But I cant blame you all for that. After building the image it looked promising but I think I did something wrong after that. I have the image showing up on the docker page in unraid but every time I try to edit a setting ie network from bridge to host I get a command failed error probably because docker daemon cant find it.

 

From the unraid command line (not inside the docker itself) run

 

docker ps

 

this gives you a list of containers currently running. if this particular container is running run

 

docker stop sparklyballs/asset-upnp

 

if it isn't running, that's good but run

 

docker ps -a

 

to make sure it's currently built and still available.

 

then go to the docker page in the unraid webui and add it using the following

 

I4HHKqY.png

 

substituting your paths in the host path sides to where you want to save your config files and where your music is stored.

 

and making note of the tcp and udp settings for the following

 

Pn7ccZf.png

 

click apply, then you can find the asset webui at

 

<your unraid ip>:45537

 

Link to comment

root@Hal-1:~# docker run -t -i sparklyballs/asset-upnp /bin/bash

Asset UPnP startup...

Version: R4.3

Functionality: Trial 30 Days Remaining

Supported formats: .opus .wv .aif .aiff .aifc .mpc .mpp .mp+ .ogg .oga .m4a .mp4 .m4b .aac .mp3 .mp2 .m2a .mpga .mpa .mpx .mpg .mp1 .mpeg .flac .fla .wav .bwf .w64

Detected IP address: 172.17.0.2

Starting Asset web interface at http://172.17.0.2:45537

 

^CStopping UPnP service.

Asset UPnP terminating.

root@Hal-1:~# docker ps -a

CONTAINER ID        IMAGE                                    COMMAND                CREATED                STATUS                            PORTS              NAMES

596e778b566b        sparklyballs/asset-upnp:latest  "/usr/bin/asset/bin/  About a minute ago  Exited (0) 16 seconds ago                      drunk_brattain

Link to comment

root@Hal-1:~# docker run -t -i sparklyballs/asset-upnp /bin/bash

Asset UPnP startup...

Version: R4.3

Functionality: Trial 30 Days Remaining

Supported formats: .opus .wv .aif .aiff .aifc .mpc .mpp .mp+ .ogg .oga .m4a .mp4 .m4b .aac .mp3 .mp2 .m2a .mpga .mpa .mpx .mpg .mp1 .mpeg .flac .fla .wav .bwf .w64

Detected IP address: 172.17.0.2

Starting Asset web interface at http://172.17.0.2:45537

 

^CStopping UPnP service.

Asset UPnP terminating.

root@Hal-1:~# docker ps -a

CONTAINER ID        IMAGE                                    COMMAND                CREATED                STATUS                            PORTS              NAMES

596e778b566b        sparklyballs/asset-upnp:latest  "/usr/bin/asset/bin/  About a minute ago  Exited (0) 16 seconds ago                      drunk_brattain

 

ok, don't run it again from the command line again and go to the unraid webui and follow the info up there about adding in asset.

 

 

Link to comment

Pulling image: sparklyballs/upnp

STATUS: Pulling repository sparklyballs/upnp

 

TOTAL DATA PULLED: 0 MB

 

 

 

   

 

 

Iget an error:

Command:root@localhost:# /usr/bin/docker run -d --name="Asset-UPnP" --net="bridge" -e TZ="Europe/Berlin" -p 1900:1900/udp -p 26125:26125/tcp -p 45537:45537/tcp -v "/mnt/cache/Config/asset":"/root/dBpoweramp":rw -v "/mnt/user/Music1/":"/music":rw sparklyballs/upnp

 

Unable to find image 'sparklyballs/upnp' locally

Pulling repository sparklyballs/upnp

2015/01/13 17:00:03 Error: image sparklyballs/upnp not found

 

The command failed.

 

Probably a typo on my account. Once again going too fast. Forgot Asset somewhere I think.

Link to comment

Finally:

 

Command:root@localhost:# /usr/bin/docker run -d --name="Asset-UPnP" --net="bridge" -e TZ="Europe/Berlin" -p 45537:45537/tcp -p 26125:26125/tcp -p 1900:1900/udp -v "/mnt/cache/Config/asset/":"/root/dBpoweramp":rw -v "/mnt/user/Music1/":"/music":rw sparklyballs/asset-upnp

 

5c721629ad9ed3a8a06a2bd56a3b544fee0c652872a6fe096d93b570ff0c7fc3

 

The command finished successfully!

 

 

Does it look ok?

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.