mirror of https://github.com/ekimekim/wubloader
Create new playlist manager service
Playlist manager adds youtube videos to youtube playlists based on database tags.pull/186/head
parent
86f7823348
commit
9562032c24
@ -0,0 +1,17 @@
|
|||||||
|
FROM alpine:3.7
|
||||||
|
# dependencies needed for compiling c extensions
|
||||||
|
# also busybox-extras for telnet for easier use of backdoor
|
||||||
|
RUN apk --update add py2-pip gcc python-dev musl-dev file make busybox-extras
|
||||||
|
|
||||||
|
# Install gevent so that we don't need to re-install it when common changes
|
||||||
|
RUN pip install gevent
|
||||||
|
|
||||||
|
# Install common lib first as it changes less
|
||||||
|
COPY common /tmp/common
|
||||||
|
RUN pip install /tmp/common && rm -r /tmp/common
|
||||||
|
|
||||||
|
# Install actual application
|
||||||
|
COPY playlist_manager /tmp/playlist_manager
|
||||||
|
RUN pip install /tmp/playlist_manager && rm -r /tmp/playlist_manager
|
||||||
|
|
||||||
|
ENTRYPOINT ["python2", "-m", "playlist_manager"]
|
@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
import gevent.monkey
|
||||||
|
gevent.monkey.patch_all()
|
||||||
|
|
||||||
|
import logging
|
||||||
|
import os
|
||||||
|
|
||||||
|
import argh
|
||||||
|
|
||||||
|
from playlist_manager.main import main
|
||||||
|
|
||||||
|
LOG_FORMAT = "[%(asctime)s] %(levelname)8s %(name)s(%(module)s:%(lineno)d): %(message)s"
|
||||||
|
|
||||||
|
level = os.environ.get('WUBLOADER_LOG_LEVEL', 'INFO').upper()
|
||||||
|
logging.basicConfig(level=level, format=LOG_FORMAT)
|
||||||
|
argh.dispatch_command(main)
|
@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
pass
|
@ -0,0 +1,16 @@
|
|||||||
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name = "wubloader-playlist-manager",
|
||||||
|
version = "0.0.0",
|
||||||
|
packages = find_packages(),
|
||||||
|
install_requires = [
|
||||||
|
"argh",
|
||||||
|
"gevent",
|
||||||
|
"prometheus-client",
|
||||||
|
"psycogreen",
|
||||||
|
"psycopg2",
|
||||||
|
"requests",
|
||||||
|
"wubloader-common",
|
||||||
|
],
|
||||||
|
)
|
Loading…
Reference in New Issue