TVHEADEND
우분투에서 도커로 빌드 하기
우분투에서 도커로 빌드 하기
우분투 설치후 터미널 실행
Get Docker CE for Ubuntu 홈페이지에 들어가 명령어로 설치
(https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/)
1.기존 버전 도커 삭제 (처음 설치 시 건너 뜀)
$ sudo apt-get remove docker docker-engine docker.io
2. 이후 순서대로 입력
$ sudo apt-get update
$ sudo apt-get install \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual
$ sudo apt-get update
$ sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo apt-key fingerprint 0EBFCD88
$ sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
$ sudo apt-get update
$ sudo apt-get install docker-ce
3. 도커 설치 확인
$ sudo docker version
이렇게 나오면 도커 설치 완료
도커에 wiserain/tvheadend 이미지 다운 및 설치
(도커 명령어 참고 홈페이지 http://pyrasis.com/book/DockerForTheReallyImpatient/Chapter03)
1. search
명령어로 이미지 검색하기
$ sudo docker search tvheadend
2. 이미지 확인후 wiserain/tvheadend 이미지다운
$ sudo docker pull wiserain/tvheadend
3. 다운 받은 이미지 확인 하기
$ sudo docker images
4.이미지 확인 후 wiserain/tvheadend 설치
$ sudo docker run -d \
--restart=always \
--name=tvheadend \
--net=host \
-e TZ="Asia/Seoul" \
-v /home/ohjack/tvheadend/config:/config \
-v /home/ohjack/tvheadend/recordings:/recordings \
-v /home/ohjack/tvheadend/epg2xml:/epg2xml \
-e PGID=0 -e PUID=0 \
-p 9981:9981 \
-p 9982:9982 \
wiserain/tvheadend
5. 설치한 컨테이너 확인 하기
$ sudo docker ps
6. ifconfig 입력하여 접속 주소 확인 후 tvheadend에 접속 하여 초기 설정 하기
예시:192.168.1.192:9981
M3u 넣기
우분투 머신에 파일 넣기
경로 내폴더/tvhedend/config
Tvhedend 네트워크 설정 URL 항목에 하기 주소 기입
file:///config/kt.m3u