SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux > SageTV for unRAID/Docker
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV for unRAID/Docker Discussion related to SageTV for unRAID/Docker. Questions, issues, problems, suggestions, etc. relating to SageTV for unRAID/Docker should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-02-2017, 08:28 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Any tips on working with docker containers

I have created a file called sage.sh which contains:"docker exec -it stuckless-sagetv-server-java8 bash" to facilitate getting to a bash prompt in my SageTV container.

Does anyone have any tips on copying files from a Windows or Linux PC into a docker container? For now in Windows I am copying files to a temp folder that I have set up in the Sage server folder. So this file in Windows/samba is \\server\appdata\sagetv\server\temp and in my container that maps to \opt\sagetv\server\temp. Is that the best way to do this or is there a better way?

I often use Notepad++ in Windows to edit files on a Linux server using the NppFTP functionality as described here. Is there any way to edit files within a docker container like this?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #2  
Old 02-02-2017, 10:42 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
I have never felt the need to copy files into a container, because it wouldn't persist anyway.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #3  
Old 02-03-2017, 06:07 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
what is it that you are needing to copy into the container?
Reply With Quote
  #4  
Old 02-03-2017, 07:07 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Don't you need to copy the lirc configuration files into the container or am I doing this wrong? I thought that those files are in the container in /etc/lirc? Or do they go outside of the container in the core unRAID area? That could be my problem.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #5  
Old 02-03-2017, 07:13 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
you can place hardware.conf, lircd.conf, and gentuner.lirc in the appdata/sagetv/server/lirc.d folder, and the docker container startup scripts will copy them to the right place in the virtual filesystem when the container is started.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #6  
Old 02-03-2017, 07:16 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by wayner View Post
Don't you need to copy the lirc configuration files into the container or am I doing this wrong? I thought that those files are in the container in /etc/lirc? Or do they go outside of the container in the core unRAID area? That could be my problem.
Quote:
Originally Posted by Fuzzy View Post
you can place hardware.conf, lircd.conf, and gentuner.lirc in the appdata/sagetv/server/lirc.d folder, and the docker container startup scripts will copy them to the right place in the virtual filesystem when the container is started.
This is briefly described as well in the Configuration Options readme.

https://github.com/stuckless/sagetv-...ase/OPTIONS.md
Reply With Quote
  #7  
Old 02-03-2017, 09:00 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by Fuzzy View Post
you can place hardware.conf, lircd.conf, and gentuner.lirc in the appdata/sagetv/server/lirc.d folder, and the docker container startup scripts will copy them to the right place in the virtual filesystem when the container is started.
Ok, that makes sense but does that mean that you should only make any changes in the appdata/sagetv/server/lirc.d folder and then restart the docker?

That is kind of a slow process isn't it as the docker takes a minute or two to start up completely. That's not an issue if everything works correctly on the first go, but if you are having to futz around that could take a long time.

Or could you make changes inside the container and then recopy back to this folder once you have everything working.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #8  
Old 02-03-2017, 09:38 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by wayner View Post
Ok, that makes sense but does that mean that you should only make any changes in the appdata/sagetv/server/lirc.d folder and then restart the docker?

That is kind of a slow process isn't it as the docker takes a minute or two to start up completely. That's not an issue if everything works correctly on the first go, but if you are having to futz around that could take a long time.

Or could you make changes inside the container and then recopy back to this folder once you have everything working.
you can do it either way... the advantage of letting the container do it is that it will ensure that dos2unix is run on the file (in cause you edited them in windows), and it will obviously restart the lirc services, etc.

If you edit inside the container then you need to make sure that you are restarting the lirc service correctly to pick up the changes, etc.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
proper output of 6ch AAC audio in MP4 containers benjatelcom SageTV Software 0 12-21-2010 11:34 PM
Current BKM for Blu-ray containers now that SageTV does Bluray jmv SageTV HD Theater - Media Player 12 08-19-2009 11:48 AM
How do we request changes to the api/containers? PLUCKYHD SageTV Studio 1 06-03-2009 02:49 PM
Playing MP4 containers with DirectShow, which codecs work? phelme SageTV Software 1 03-08-2009 08:06 PM
h264 videos in .ts containers -- problems horseflesh SageTV Software 2 01-20-2007 02:35 AM


All times are GMT -6. The time now is 12:36 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.