-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
1,177 additions
and
445 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
PUTIO_TOKEN=personal_oauth_token | ||
|
||
workon putio-automator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
*pyc | ||
|
||
application.db | ||
application.log | ||
/application.db | ||
/application.log | ||
/AUTHORS | ||
/build/ | ||
/ChangeLog | ||
/config.py | ||
/dist/ | ||
/.eggs/ | ||
/.env | ||
/putio_automator.egg-info/ | ||
/*.egg-info/ | ||
/README.rst | ||
/tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,39 @@ | ||
FROM debian:jessie-slim | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends build-essential python2.7 python2.7-dev python-pip supervisor \ | ||
&& apt-get install -y --no-install-recommends \ | ||
cron \ | ||
python-pip \ | ||
python-pkg-resources \ | ||
rsyslog \ | ||
sendmail \ | ||
smbclient \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p \ | ||
/app/logs /app/run \ | ||
/etc/auto.master.d \ | ||
/files/incomplete /files/downloads /files/torrents \ | ||
&& touch /app/run/app.db \ | ||
&& chown -R www-data /app/run /files | ||
/var/www \ | ||
/var/log/putio-automator \ | ||
/var/log/supervisor \ | ||
&& chown -R www-data /files /var/www \ | ||
&& usermod -u 1000 www-data | ||
|
||
COPY app.py manage.py README.md requirements.txt /app/src/ | ||
COPY etc/config.py.dist /usr/local/share/putio-automator/config.py | ||
COPY etc/cron /etc/cron.d/putio-automator | ||
COPY etc/rsyslog.conf /etc/rsyslog.conf | ||
COPY etc/supervisor.conf /etc/supervisor/conf.d/putio-automator.conf | ||
COPY etc/supervisord.conf /etc/supervisor/supervisord.conf | ||
|
||
RUN cd /app/src \ | ||
&& pip install -U pip \ | ||
&& pip install -r requirements.txt | ||
RUN chmod go= /etc/cron.d/putio-automator | ||
|
||
COPY etc/supervisor /etc/supervisor/ | ||
COPY etc/config.py /app/src/ | ||
RUN pip install putio-automator==0.4.2.dev79 \ | ||
&& rm -rf $HOME/.cache /tmp/pip_build_root | ||
|
||
VOLUME ["/files/incomplete", "/files/downloads", "/files/torrents"] | ||
ENV INITSYSTEM on | ||
|
||
EXPOSE 9001 | ||
|
||
CMD [ "supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf", "--logfile", "/dev/stdout", "--logfile_maxbytes", "0" ] | ||
ENTRYPOINT [ "putio" ] | ||
|
||
CMD [ "docker", "bootstrap" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
FROM debian:jessie-slim | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
cron \ | ||
git-core \ | ||
kmod \ | ||
python-pip \ | ||
python-pkg-resources \ | ||
rsyslog \ | ||
sendmail \ | ||
smbclient \ | ||
udev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p \ | ||
/etc/auto.master.d \ | ||
/files/incomplete /files/downloads /files/torrents \ | ||
/var/www \ | ||
/var/log/putio-automator \ | ||
/var/log/supervisor \ | ||
&& chown -R www-data /files /var/www \ | ||
&& usermod -u 1000 www-data | ||
|
||
WORKDIR /app | ||
|
||
COPY . ./ | ||
|
||
COPY etc/config.py.dist /usr/local/share/putio-automator/config.py | ||
COPY etc/cron /etc/cron.d/putio-automator | ||
COPY etc/rsyslog.conf /etc/rsyslog.conf | ||
COPY etc/supervisor.conf /etc/supervisor/conf.d/putio-automator.conf | ||
COPY etc/supervisord.conf /etc/supervisor/supervisord.conf | ||
|
||
RUN chmod go= /etc/cron.d/putio-automator | ||
|
||
RUN pip install -U pip setuptools \ | ||
&& pip install . \ | ||
&& rm -rf $HOME/.cache /tmp/pip_build_root | ||
|
||
ENV INITSYSTEM on | ||
|
||
EXPOSE 9001 | ||
|
||
ENTRYPOINT [ "putio" ] | ||
|
||
CMD [ "docker", "bootstrap" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM resin/%%RESIN_MACHINE_NAME%%-python:slim | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
cifs-utils \ | ||
cron \ | ||
python-pip \ | ||
python-setuptools \ | ||
rsyslog \ | ||
sendmail \ | ||
smbclient \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p \ | ||
/etc/auto.master.d \ | ||
/files/incomplete /files/downloads /files/torrents \ | ||
/var/www \ | ||
/var/log/putio-automator \ | ||
/var/log/supervisor \ | ||
&& chown -R www-data /files /var/www \ | ||
&& usermod -u 1000 www-data | ||
|
||
COPY etc/rsyslog.conf /etc/rsyslog.conf | ||
COPY etc/supervisor.conf-rpi /etc/supervisor/conf.d/putio-automator.conf | ||
COPY etc/supervisord.conf /etc/supervisor/supervisord.conf | ||
COPY etc/config.py.dist-rpi /usr/local/share/putio-automator/config.py | ||
COPY etc/cron /etc/cron.d/putio-automator | ||
COPY etc/fstab /etc/fstab | ||
|
||
RUN chmod go= /etc/cron.d/putio-automator | ||
|
||
RUN pip install -U pip setuptools \ | ||
&& pip install putio-automator==0.4.2.dev79 \ | ||
&& rm -rf $HOME/.cache /tmp/pip_build_root | ||
|
||
ENV INITSYSTEM on | ||
|
||
ENTRYPOINT [ "putio" ] | ||
|
||
CMD [ "docker", "bootstrap" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.