archedraft Posted June 2, 2015 Share Posted June 2, 2015 I was wondering if anyone knows where to find (or would write up) a guide on how to create a docker container with Github. I have cloned other people's projects and messed around a bit but I was never really sure what or why certain things ended up in the dockerfile. I have looked at various users dockerfiles and I really cannot find any rhyme or reason on why they added certain things. For example, certain ones match unRAID's permissions and some don't. Also, is there any sort of unRAID "standard" dockerfile that is a good starting point? Link to comment
CHBMB Posted June 2, 2015 Share Posted June 2, 2015 Yeah, I'd be interested in a guide on this too. Good idea archedraft! Link to comment
sparklyballs Posted June 2, 2015 Share Posted June 2, 2015 i don't know if there's a specfic way to write a dockerfile, but in terms of making something more unraid compatible, the first step is to modify the user and group id's of the user nobody to match unraids and then to try and run as many apps in the docker as nobody. Â if you can't run an app as user, then try and get any config files etc saved on unraid to be owned by user nobody. Â aside from that, there is little to make a docker unraid specific. Â the real trick though is thinking about the template in the webui of unraid and how to get the most from it. Link to comment
archedraft Posted June 2, 2015 Author Share Posted June 2, 2015 How do you test your dockers after you create them? I attempted to write my own docker but it failed to start and I cannot for the life of me figure out what's going on. Link to comment
sparklyballs Posted June 2, 2015 Share Posted June 2, 2015 How do you test your dockers after you create them? I attempted to write my own docker but it failed to start and I cannot for the life of me figure out what's going on.  i tend to build slightly differently.  i have a docker server , i do  docker run -it <baseimage> bash  and then try everything from the command line until i get it how i want it.  then i playback the commands and build a dockerfile from them. Link to comment
archedraft Posted June 2, 2015 Author Share Posted June 2, 2015 How do you test your dockers after you create them? I attempted to write my own docker but it failed to start and I cannot for the life of me figure out what's going on.  i tend to build slightly differently.  i have a docker server , i do  docker run -it <baseimage> bash  and then try everything from the command line until i get it how i want it.  then i playback the commands and build a dockerfile from them.  So if I am understanding this correctly, someone needs to write a docker that allows others to create a docker and said docker will record all your commands and export them neatly to a dockerfile for you?? Link to comment
sparklyballs Posted June 2, 2015 Share Posted June 2, 2015 How do you test your dockers after you create them? I attempted to write my own docker but it failed to start and I cannot for the life of me figure out what's going on.  i tend to build slightly differently.  i have a docker server , i do  docker run -it <baseimage> bash  and then try everything from the command line until i get it how i want it.  then i playback the commands and build a dockerfile from them.  So if I am understanding this correctly, someone needs to write a docker that allows others to create a docker and said docker will record all your commands and export them neatly to a dockerfile for you??  lol, hell no.  it's just the way i do it sometimes. other times i just use one of my other dockers as a template (because most of the stuff there already works)  link me to the git of the container you can't get running. Link to comment
soana Posted June 2, 2015 Share Posted June 2, 2015 I created a very simple docker to backup my kodi sql database every night take a look in my signature. After a lot of trail and error I ended up having a phusion container to test all the commands - same as sparklyballs suggests - and that made it work much faster. It took me some time until I figured out I can use a script that runs when the container starts (firstrun.sh) that helped a lot with passing variables from the template to the docker. Link to comment
archedraft Posted June 2, 2015 Author Share Posted June 2, 2015 lol, hell no. Â it's just the way i do it sometimes. other times i just use one of my other dockers as a template (because most of the stuff there already works) Â link me to the git of the container you can't get running. Lol well one can try! Â Here is the link... (don't judge me!) https://github.com/archedraft/docker-fgallery Link to comment
sparklyballs Posted June 2, 2015 Share Posted June 2, 2015 you don't have a start file or command as far as i can see. Â just /bin/bash. Link to comment
archedraft Posted June 2, 2015 Author Share Posted June 2, 2015 you don't have a start file or command as far as i can see.  just /bin/bash.  Hmmm, yes that would be a good place to start Link to comment
sparklyballs Posted June 2, 2015 Share Posted June 2, 2015 i may be reading their site wrong but it looks to me like that app generates all the things you need to display a folder of images in a html page, in the folder itself. Â then you have a different url for each folder, that sounds a bloody horrible implementation to my mind. Link to comment
archedraft Posted June 3, 2015 Author Share Posted June 3, 2015 Â i may be reading their site wrong but it looks to me like that app generates all the things you need to display a folder of images in a html page, in the folder itself. Â then you have a different url for each folder, that sounds a bloody horrible implementation to my mind. Â Really... Well that does suck! Scratch that docker from my list. Link to comment
trurl Posted June 3, 2015 Share Posted June 3, 2015 Â i may be reading their site wrong but it looks to me like that app generates all the things you need to display a folder of images in a html page, in the folder itself. Â then you have a different url for each folder, that sounds a bloody horrible implementation to my mind. Â Really... Well that does suck! Scratch that docker from my list. Will it include subfolders? Link to comment
sparklyballs Posted June 3, 2015 Share Posted June 3, 2015 Â i may be reading their site wrong but it looks to me like that app generates all the things you need to display a folder of images in a html page, in the folder itself. Â then you have a different url for each folder, that sounds a bloody horrible implementation to my mind. Â Really... Well that does suck! Scratch that docker from my list. Will it include subfolders? Â it doesn't say either way. Link to comment
archedraft Posted June 3, 2015 Author Share Posted June 3, 2015 A little Off-Topic, but my ideal photo organizer would not modify my photos or add anything into the photo folder itself. It would save whatever files it needed into a folder I specify. It would organize by photos by data taken and be quick to view a series of photos. That's all, a minimal program that was quick! If anyone knows of anything like that please let me know! Also, it would be ideal if it would make my morning coffee... Link to comment
sparklyballs Posted June 3, 2015 Share Posted June 3, 2015 A little Off-Topic, but my ideal photo organizer would not modify my photos or add anything into the photo folder itself. It would save whatever files it needed into a folder I specify. It would organize by photos by data taken and be quick to view a series of photos. That's all, a minimal program that was quick! If anyone knows of anything like that please let me know! Also, it would be ideal if it would make my morning coffee... Â the trouble with some of these "simple" apps, they just don't lend themselves well to docker and unraid docker even less. Â Â Link to comment
hernandito Posted June 3, 2015 Share Posted June 3, 2015 What about as a VM Sparkly? I have thousands of photos sitting in folders and no way to easily look at them. Link to comment
sparklyballs Posted June 3, 2015 Share Posted June 3, 2015 What about as a VM Sparkly? I have thousands of photos sitting in folders and no way to easily look at them. Â in a VM they'll be fine. Â Â Link to comment
trurl Posted June 3, 2015 Share Posted June 3, 2015 Maybe someone that already has a Linux VM could try out some photo viewer apps and if one of them looks good it could be made into a "desktop docker". Â Link to comment
hernandito Posted June 3, 2015 Share Posted June 3, 2015 Maybe someone that already has a Linux VM could try out some photo viewer apps and if one of them looks good it could be made into a "desktop docker". Â Which package... I haved looked at Lychee, Piwigo, and others mentioned on another thread here... Nothing seems like the right thing. Link to comment
trurl Posted June 3, 2015 Share Posted June 3, 2015 Maybe someone that already has a Linux VM could try out some photo viewer apps and if one of them looks good it could be made into a "desktop docker". Â Which package... I haved looked at Lychee, Piwigo, and others mentioned on another thread here... Nothing seems like the right thing. Those are all web. I mean something that runs on a Linux desktop. Then rdp could be added like some of the other dockers. Googling "linux photo viewer" should turn up some ideas. Link to comment
archedraft Posted June 3, 2015 Author Share Posted June 3, 2015 Maybe someone that already has a Linux VM could try out some photo viewer apps and if one of them looks good it could be made into a "desktop docker".  Which package... I haved looked at Lychee, Piwigo, and others mentioned on another thread here... Nothing seems like the right thing.  I do have a linux VM I would be happy to backup and throw some test apps on it. I have just been having a hard time finding one that acts the way I want. If anyone has any apps they think might fit the bill let me know and I'll see what happens Link to comment
hernandito Posted June 3, 2015 Share Posted June 3, 2015 Trying Lychee Docker from Sparkly.... before I comment, I will see how it performs/behaves. Â I just want a gallery of my massive photo folders. So I can view thumbnails and then full size. Link to comment
archedraft Posted June 3, 2015 Author Share Posted June 3, 2015 Those are all web. I mean something that runs on a Linux desktop. Then rdp could be added like some of the other dockers. Â Hmm, that's an interesting idea. So use a linux desktop photo viewer and then add the RDP protocol to allow users to RDP through a web browser? Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.