Simply contains a python script from ( https://gitlab.com/tibernut/youtube_dl ) and runs it indefinitely. The script will check for new youtube videos from a few channels and then write information about those videos to a mysql database. The database and this container are meant to be run in a Kubernetes pod. This project exists to help me learn about Docker and Kubernetes.
###Dockerfile### MAINTAINER Chris Jones [email protected]
RUN apt update -y && apt install -y git && git clone https://gitlab.com/tibernut/youtube_dl.git && pip3 install feedparser && pip3 install PyMySQL && pip3 install pytube
CMD ["python","/youtube_dl/POC.py"]
###Kubernetes pod YAML###
kind: Pod
metadata:
name: youdltest
spec:
containers:
- name: youdlscript
image: tibernut/youdl:poc
- name: youdldb
image: mariadb:latest
ports:
- containerPort: 3306
env:
- name: MYSQL_ROOT_PASSWORD
value: "gudpassword"
Content type
Image
Digest
Size
93.1 MB
Last updated
almost 8 years ago
docker pull tibernut/youdl:testing