From 24cafe26b0063ef6840654be3b3a88e973ebcd9d Mon Sep 17 00:00:00 2001 From: Zepheris Date: Sun, 26 Nov 2017 21:07:09 -0700 Subject: [PATCH] Initial Commit --- README.md | 6 ++++++ dockerfile | 35 +++++++++++++++++++++++++++++++++++ science-chemistry-icon.png | Bin 0 -> 18697 bytes startup.sh | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 README.md create mode 100644 dockerfile create mode 100644 science-chemistry-icon.png create mode 100644 startup.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..5a5008f --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# Media_Automation +This project aims to build a docker container for personal use that will house the following applications: + +* Filebot +* Flexget +* Custom script that will automate finding and downloading episodes/movies \ No newline at end of file diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..9f32cdb --- /dev/null +++ b/dockerfile @@ -0,0 +1,35 @@ +FROM phusion/baseimage + +MAINTAINER Zepheris + +#RUN rm -f /etc/service/sshd/down + +# Regenerate SSH host keys. baseimage-docker does not contain any, so you +# have to do that yourself. You may also comment out this instruction; the +# init system will auto-generate one during boot. +#RUN /etc/my_init.d/00_regen_ssh_host_keys.sh + +CMD ["/sbin/my_init"] + +ENV PKGS deluge-console python-pip nano sshpass mediainfo openjdk-8-jre wget shellinabox rsync ffmpeg jq git +ENV TERM xterm +ENV LANG en_US.UTF-8 + +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y $PKGS && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +RUN pip install --upgrade pip && \ + pip install --upgrade setuptools &&\ + pip install flexget &&\ + pip install youtube-dl + +RUN wget -O /tmp/filebot.deb 'https://app.filebot.net/download.php?type=deb&arch=amd64' && \ + dpkg -i /tmp/filebot.deb && \ + rm /tmp/filebot.deb + +RUN useradd -u 99 -g 100 -m zepheris + +ADD startup.sh /etc/my_init.d/startup.sh +RUN chmod +x /etc/my_init.d/startup.sh diff --git a/science-chemistry-icon.png b/science-chemistry-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..34315d3f85f1553c4aa6ba1b802a4ac630b42e1f GIT binary patch literal 18697 zcmXteWl)?=)AhA1EH1%r0tA=f4#73J2X}W18hi=v1b24{?(Xhx!QF%Vo3Fllsz!cI z*L2l%_c=W$R8d|66$u{+002}eNipSrJM{le1jxU&SHN%-03@fR#DrCTteknnLrqK* z&YK$@(R6h)dY$iY#2`WGupbsx)fZK-QkWTj8lZ*z{teaKZ7%=dvRI|yrmNd4aO?M( z&WsfX%*M|@yFSaU;^wla={!F zjkPz}_xSEg!B?6g37PS$QqS7!+WJdPaP*H=^9bQkPrcbXd}1~)Sto^D{rBz@8S7UR z-;q0WFjV1vHu6rozAZ4cAy19&V#;b|z^Yq5mWp_)SIDYE5;jc*j zmMWRX%6@wFQCCQ8lP3?>e*hD7fM7R(yOS`~^FYI#-#WEVRpoM{Pbj1uz)*QZXc z>79zIt8TwrUP^fvJ?NwAE3^TxXWk7DEUdjea$~GZ2Plu;26lI_k9^h)S91Bp{{}#SbInzUeu+OwMgx+cRGgqrDOsx2F`rJ)8enl|NBRlE44&~FAksvJe51vM-h*UvDt zt@a$jy%WB?umpcMgB8(vEZ8wLX>eugm7B!^MfA2#7NiSuwMtYt!mZ}{h$@e-pRnIh zTlN;TEzQh=J9KEUup)U|1NUNsI_VN>dKir(TL*|24aP@FE{QqQJ^_kL7Am%C1QenB z4lPUJ4s@XxFWV%l%BMPx-F8KVR}vsWjuuw!^4>ZGRvLZZJH5A!i9KJnqNlMePtX91tfs9X zz=*Z1$ z)*Dw1ji!qpUYU~GNr2GvU-eGRakCm?_uXj;{p-8N_Hoqj`i6Fa8jxTZ6wmu}Q<#F! z`kzA>fa=Iep@?1voll73O-nF~lU4~KIlWsHjf3MI9Z4;%o}aOikQTv0igb*LjPLi< zg3E(;TN1r;avL2lHKPlW@AeHY$Uv>G_c(_=BCNkYlwgT4bjX^7UCfO$&d?HrTK2D$ z4ivS!v=5=wBO)uB6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!m>MO3adM;tz1TgeJ^tWn6->e2_BLs~yEeOzHNtjL1 zC$r#vRI%!bZ54PisZ@qi$&5^2WAO`W{9=wnqM9WmaaE3N(-d;mT0AyZnVoo`5}UoR zTFB2D1kE?}+^TaB9(&n7DIEV)0-*6XtOghw0pM&nnw`g4aohdD9&1x{hc()^g#wWt zja>x|#hPt)Sr4EC!6rL>D#-1ZZjs%-#Ws*!J$^vC}_e+?Kksp@cahC8t$= zvuPZmYLL57t>|h;Y!MW55b46U7iJmZd4S+XtU|-iq&P1YYLrRFYD@F`%L_9PSC$v| z)Jnw#gXl$r$OT&A{6@kT=t<`GwF1EEhSFWg-Cj+6bcfLe3?$3(RG-Zs?6L;JgKD_B zPw|J^RbQY@bGRIu)usrsWj@^^hNC7aTE^VEYN=1RuFOFkVcWQR@kT>k7`BCG!9j)l_1vmd`C{Ix#B-(Tfd4*Fm7D+zI7N z5cd3&aQcY^fR(1o+AgRH8xJ%B_>BOt8|QYT0}%3ACaTBb^S3YvA}lR>Yfev-JrHaw zTkUR}#}{E>c&ZkQRkg4ah6x*)v{@b1J49=Y4k4daGh+!=O{Cn*4%FwLN6{n^sc8k^Ku(>@UCccXWyRF6|!sYcwARZK} z&8Hpe*{jte6FgromGY%xKFvQ;RkT`>e?MK!W|COD%I{-;N)S)i6FQ;IUN*WAU9s6q ztg85$)iM*k!jh-T?%tC#E%{`P_gde;6KU3PRITMRhC)}Z%-vQtx~y6;zZwkaYQxd& z)Nnjpg#a^Ix3;QRX@#@p$lgjtb-LI%s8uwG?pm#;di~YP{Pb}yKzQofx&pw_HhXtJ z%z9Dw>~AY9vJY1L4LRlYNu@>r7@sM2kt|yG&XcXaqg4V{wx9TbUXU?{{a(9 VG0JoKQ4jzC002ovPDHLkV1g#E^1}cC literal 0 HcmV?d00001 diff --git a/startup.sh b/startup.sh new file mode 100644 index 0000000..03e80f0 --- /dev/null +++ b/startup.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +#Check for a user password. If non, then set password to newpassword +if [ -z "$PASSWORD" ]; then + echo "Setting default SSH password to newpassword" + echo "zepheris:newpassword" | chpasswd +else + echo "SSH Password is $PASSWORD" + echo "zepheris:$PASSWORD" | chpasswd +fi + +chown zepheris:users -R /config/ +chown root:root /config/cron/cron_get + +if [ ! -d /home/zepheris/.filebot ]; then setuser zepheris ln -s /config/.filebot /home/zepheris/.filebot; fi +if [ ! -d /home/zepheris/.flexget ]; then setuser zepheris ln -s /config/.flexget /home/zepheris/.flexget; fi +if [ ! -d /home/zepheris/.ssh ]; then setuser zepheris ln -s /config/.ssh /home/zepheris/.ssh; fi +if [ ! -d /home/zepheris/.gitconfig ]; then setuser zepheris ln -s /config/.gitconfig /home/zepheris/.gitconfig; fi +if [ ! -d /home/zepheris/.bashrc ]; then setuser zepheris ln -s /config/.bashrc /home/zepheris/.bashrc; fi +if [ ! -f /etc/cron.d/cron_get ]; then ln -s /config/cron/cron_get /etc/cron.d/cron_get; fi + +#function to stop services and exit the container +_term() { + echo "Caught SIGTERM Signal" + echo "Stopping all services" + service shellinabox stop + + exit 0 +} + +trap 'kill ${!}; _term' SIGTERM + +echo -e "Starting Web SSH" +service shellinabox start