sparklyballs Posted December 18, 2014 Author Share Posted December 18, 2014 i'm running over the command one variable at a time till i find what's throwing it out. Quote Link to comment
sparklyballs Posted December 18, 2014 Author Share Posted December 18, 2014 Looks right, but who knows sudo docker run -d --name=xbmc -–net=host -e MYSQLip:192.168.0.146 -e MYSQLport:3306 -e MYSQLuser:xbmc -e MYSQLpass:xbmc -–privileged -v /appdata/kodi:/root.xbmc sparklyballs/xbmc-headless flag provided but not defined: -–net I'm pulling this again on my separate docker server outside of unraid. give this a whirl sudo docker run -e MYSQLip:192.168.0.146 -e MYSQLport:3306 -e MYSQLuser:xbmc -e MYSQLpass:xbmc -d --name=xbmc -p 8089:8089 --name=xbmc --privileged -v /appdata/kodi:/root/.xbmc sparklyballs/xbmc-headless that should get you up and running. I'll go over the command when the pull is done. Quote Link to comment
smakovits Posted December 18, 2014 Share Posted December 18, 2014 -–net once I posted it here I saw the issue, deleted hyphens and put them back and things started. So now the million dollar question. Once running, what's next Quote Link to comment
sparklyballs Posted December 18, 2014 Author Share Posted December 18, 2014 i think i may have discoverd a major GOTCHA in running my image outside of unraid, the permissions will be all wrong and it won't put in the mysql values, unfortunately i rigged it to be idiot proof and will always put the values in, so you can't manually edit the file. there is another way round this but it requires a build again. keep your run command handy, lol. Quote Link to comment
smakovits Posted December 18, 2014 Share Posted December 18, 2014 This is better than what I had before. Now the url works, before it failed so this a 100 times farther. If only I knew why wernerb image doesn't start, but that isn't really your problem... Using his would let me outside of unraid, I think. But the again, won't all this change with helix anyway? Quote Link to comment
sparklyballs Posted December 18, 2014 Author Share Posted December 18, 2014 i think i may have discoverd a major GOTCHA in running my image outside of unraid, the permissions will be all wrong and it won't put in the mysql values, unfortunately i rigged it to be idiot proof and will always put the values in, so you can't manually edit the file. there is another way round this but it requires a build again. keep your run command handy, lol. clean up any images/containers we have generated thus far... then try this git clone https://github.com/sparklyballs/XBMC-Headless.git or download the zip if you don't have git , from https://github.com/sparklyballs/XBMC-Headless cd into the directory cd XBMC-Headless Quote Link to comment
sparklyballs Posted December 18, 2014 Author Share Posted December 18, 2014 MOST IMPORTANT BIT HERE nano Dockerfile remove this block # Configure user nobody to match unRAID's settings RUN \ usermod -u 99 nobody && \ usermod -g 100 nobody && \ usermod -d /home nobody && \ chown -R nobody:users /home I CAN'T STRESS IMPORTANCE OF TAKING OUT THAT BLOCK then for the compile , gonna take an age i'm afraid docker build --rm=true -t sparklyballs/xbmc-headless . then all being well, go with the run command that worked before including the variables. Quote Link to comment
sparklyballs Posted December 18, 2014 Author Share Posted December 18, 2014 I'm running a concurrent build, with the block removed. hopefully can get this working for you. Quote Link to comment
sparklyballs Posted December 18, 2014 Author Share Posted December 18, 2014 smakovits, my bad, i didn't do a build via the command line with the new variables being added in so i got the command line syntax wrong for variables, the delimiter is = and not : for variables, so the run command should be this instead. docker run -e MYSQLip=192.168.0.146 -e MYSQLport=3306 -e MYSQLuser=xbmc -e MYSQLpass=xbmc -d --name=xbmc -p 8089:8089 --name=xbmc --privileged -v /appdata/kodi:/root/.xbmc sparklyballs/xbmc-headless Quote Link to comment
smakovits Posted December 19, 2014 Share Posted December 19, 2014 Does Xbmc have the ability to run as a specific user, like this docker create --name=mariadb -v /etc/localtime:/etc/localtime:ro -v <path to data>:/config -e PGID=<gid> -e PUID=<uid> -p 3306:3306 lonix/mariadb Quote Link to comment
sparklyballs Posted December 19, 2014 Author Share Posted December 19, 2014 Does Xbmc have the ability to run as a specific user, like this docker create --name=mariadb -v /etc/localtime:/etc/localtime:ro -v <path to data>:/config -e PGID=<gid> -e PUID=<uid> -p 3306:3306 lonix/mariadb Not with this particular container, at least not without some rewriting of the Dockerfile. Quote Link to comment
Sensei73 Posted December 19, 2014 Share Posted December 19, 2014 no, news about kodi helix version? my openelec box is already on this one. thanks in advance. Quote Link to comment
sparklyballs Posted December 19, 2014 Author Share Posted December 19, 2014 when helix goes final i'll whip one up. Quote Link to comment
JM2005 Posted December 20, 2014 Share Posted December 20, 2014 Just wanted to say Thank You! I was using one by wernerb but I like your reduced image size. Quote Link to comment
dalben Posted December 20, 2014 Share Posted December 20, 2014 The wernerb container allows you to select gotham or helix. I'm not sure if you've stripped that functionality out sparky Quote Link to comment
sparklyballs Posted December 20, 2014 Author Share Posted December 20, 2014 The wernerb container allows you to select gotham or helix. I'm not sure if you've stripped that functionality out sparky werner's helix version is only a branch in github, but as helix isn't final yet i've decided not to go that route yet. Quote Link to comment
sparklyballs Posted December 20, 2014 Author Share Posted December 20, 2014 The wernerb container allows you to select gotham or helix. I'm not sure if you've stripped that functionality out sparky werner's helix version is only a branch in github, but as helix isn't final yet i've decided not to go that route yet. Also as now kodi version 15 is now the master branch in kodi git, the experimental branch of werner's container will pull that. Quote Link to comment
NAS Posted December 20, 2014 Share Posted December 20, 2014 I know i have said this before but I would drop effort on everything but producing a trivial to instal Helix headless. It is all but live and very soon that is what everyone will be running. This that hang out on old versions will be doing so without support since XBMC as an entity will be "old". FYI Helix is for me at least the most stable version ever on both old and new hardware. Quote Link to comment
sparklyballs Posted December 20, 2014 Author Share Posted December 20, 2014 I know i have said this before but I would drop effort on everything but producing a trivial to instal Helix headless. It is all but live and very soon that is what everyone will be running. This that hang out on old versions will be doing so without support since XBMC as an entity will be "old". FYI Helix is for me at least the most stable version ever on both old and new hardware. I worked on gotham to get a feel for docker and getting the hang of templates and passing variables etc... I'm just piecing together a helix version right now. Quote Link to comment
NAS Posted December 20, 2014 Share Posted December 20, 2014 Shout if we can help because I think this could be one of the most popular containers here Quote Link to comment
Sensei73 Posted December 20, 2014 Share Posted December 20, 2014 Shout if we can help because I think this could be one of the most popular containers here I agree, I've tempted to create a docker based on werner's docker but without success due to lack of time/knowledge. Thank you for your work. Quote Link to comment
dalben Posted December 20, 2014 Share Posted December 20, 2014 Some of us are stuck on Gotham until our arm based XBMC appliances have an upgrade path. That's if they ever do get an upgrade path. Quote Link to comment
sparklyballs Posted December 20, 2014 Author Share Posted December 20, 2014 Shout if we can help because I think this could be one of the most popular containers here It's currently building over on docker hub, it's a long build, so i running it there. it's too early on a saturday morning for this kind of thing (well was when i started, lol) so i expect it to fall over on first build. Quote Link to comment
NAS Posted December 20, 2014 Share Posted December 20, 2014 Some of us are stuck on Gotham until our arm based XBMC appliances have an upgrade path. That's if they ever do get an upgrade path. I think a load of people will be in the same boat with essentially EOL support But at least you can stick on a known to work docker and leave best alone. Quote Link to comment
sparklyballs Posted December 20, 2014 Author Share Posted December 20, 2014 I do have a question though, i run a vm for building dockers and i was wondering how i can change the user id of nobody and user to match unraids without borxing everything. 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.