Skip to content

Instantly share code, notes, and snippets.

@synchrone
Last active May 25, 2017 10:42
Show Gist options
  • Save synchrone/f64f17e3ab5cb0a75f64 to your computer and use it in GitHub Desktop.
Save synchrone/f64f17e3ab5cb0a75f64 to your computer and use it in GitHub Desktop.
A transmission-daemon utility to wrap all http trackers in using https wraper service
FROM hypriot/rpi-alpine-scratch:v3.3
RUN apk add --no-cache php-cli php-curl php-phar php-json php-openssl
COPY . /torrentfoil/
WORKDIR /torrentfoil
RUN php composer.phar install
ENV CRON_SCHEDULE "* * * * *"
ENTRYPOINT ./entrypoint.sh php /torrentfoil/torrentfoil.php
{
"require": {
"danielstjules/stringy": ">=1.5.2",
"vohof/transmission": "1.0.*"
}
}
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "c17596afe51abe99b8854b6fac7433e8",
"packages": [
{
"name": "danielstjules/stringy",
"version": "1.5.2",
"source": {
"type": "git",
"url": "https://github.com/danielstjules/Stringy.git",
"reference": "63ad4d238fab6f2069fb30d6734c7e44bd77a6d2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/danielstjules/Stringy/zipball/63ad4d238fab6f2069fb30d6734c7e44bd77a6d2",
"reference": "63ad4d238fab6f2069fb30d6734c7e44bd77a6d2",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "4.0.*"
},
"type": "library",
"autoload": {
"psr-4": {
"Stringy\\": "src/"
},
"classmap": [
"tests"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Daniel St. Jules",
"email": "danielst.jules@gmail.com",
"homepage": "http://www.danielstjules.com"
}
],
"description": "A string manipulation library with multibyte support",
"homepage": "https://github.com/danielstjules/Stringy",
"keywords": [
"UTF",
"helpers",
"manipulation",
"methods",
"multibyte",
"string",
"utf-8",
"utility",
"utils"
],
"time": "2014-07-09 17:13:57"
},
{
"name": "guzzle/guzzle",
"version": "v3.7.1",
"source": {
"type": "git",
"url": "https://github.com/guzzle/guzzle.git",
"reference": "aa68be2fa33896c0a0a7638d5b8e3f9e1a41bfab"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/aa68be2fa33896c0a0a7638d5b8e3f9e1a41bfab",
"reference": "aa68be2fa33896c0a0a7638d5b8e3f9e1a41bfab",
"shasum": ""
},
"require": {
"ext-curl": "*",
"php": ">=5.3.2",
"symfony/event-dispatcher": ">=2.1"
},
"replace": {
"guzzle/batch": "self.version",
"guzzle/cache": "self.version",
"guzzle/common": "self.version",
"guzzle/http": "self.version",
"guzzle/inflection": "self.version",
"guzzle/iterator": "self.version",
"guzzle/log": "self.version",
"guzzle/parser": "self.version",
"guzzle/plugin": "self.version",
"guzzle/plugin-async": "self.version",
"guzzle/plugin-backoff": "self.version",
"guzzle/plugin-cache": "self.version",
"guzzle/plugin-cookie": "self.version",
"guzzle/plugin-curlauth": "self.version",
"guzzle/plugin-error-response": "self.version",
"guzzle/plugin-history": "self.version",
"guzzle/plugin-log": "self.version",
"guzzle/plugin-md5": "self.version",
"guzzle/plugin-mock": "self.version",
"guzzle/plugin-oauth": "self.version",
"guzzle/service": "self.version",
"guzzle/stream": "self.version"
},
"require-dev": {
"doctrine/cache": "*",
"monolog/monolog": "1.*",
"phpunit/phpunit": "3.7.*",
"psr/log": "1.0.*",
"symfony/class-loader": "*",
"zendframework/zend-cache": "2.0.*",
"zendframework/zend-log": "2.0.*"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.7-dev"
}
},
"autoload": {
"psr-0": {
"Guzzle\\Tests": "tests/",
"Guzzle": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
},
{
"name": "Guzzle Community",
"homepage": "https://github.com/guzzle/guzzle/contributors"
}
],
"description": "Guzzle is a PHP HTTP client library and framework for building RESTful web service clients",
"homepage": "http://guzzlephp.org/",
"keywords": [
"client",
"curl",
"framework",
"http",
"http client",
"rest",
"web service"
],
"time": "2013-07-05 20:17:54"
},
{
"name": "symfony/event-dispatcher",
"version": "v2.5.3",
"target-dir": "Symfony/Component/EventDispatcher",
"source": {
"type": "git",
"url": "https://github.com/symfony/EventDispatcher.git",
"reference": "8faf5cc7e80fde74a650a36e60d32ce3c3e0457b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/EventDispatcher/zipball/8faf5cc7e80fde74a650a36e60d32ce3c3e0457b",
"reference": "8faf5cc7e80fde74a650a36e60d32ce3c3e0457b",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"require-dev": {
"psr/log": "~1.0",
"symfony/config": "~2.0",
"symfony/dependency-injection": "~2.0",
"symfony/stopwatch": "~2.2"
},
"suggest": {
"symfony/dependency-injection": "",
"symfony/http-kernel": ""
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.5-dev"
}
},
"autoload": {
"psr-0": {
"Symfony\\Component\\EventDispatcher\\": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
},
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
}
],
"description": "Symfony EventDispatcher Component",
"homepage": "http://symfony.com",
"time": "2014-07-28 13:20:46"
},
{
"name": "vohof/transmission",
"version": "v1.0.3",
"source": {
"type": "git",
"url": "https://github.com/vohof/transmission.git",
"reference": "eb2bad847dd855a9e2c1edb55c480ed0d1281ab7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/vohof/transmission/zipball/eb2bad847dd855a9e2c1edb55c480ed0d1281ab7",
"reference": "eb2bad847dd855a9e2c1edb55c480ed0d1281ab7",
"shasum": ""
},
"require": {
"guzzle/guzzle": "3.7.1",
"php": ">=5.3.0"
},
"require-dev": {
"mockery/mockery": "0.8.*",
"phpunit/phpunit": "3.7.*"
},
"type": "library",
"autoload": {
"psr-0": {
"Vohof": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"authors": [
{
"name": "Cyrus David",
"email": "david@jcyr.us",
"homepage": "https://github.com/vohof"
}
],
"description": "Awesome PHP JSON-RPC client library for Transmission",
"keywords": [
"json-rpc",
"laravel",
"rpc",
"transmission"
],
"time": "2013-08-01 21:59:13"
}
],
"packages-dev": [
],
"aliases": [
],
"minimum-stability": "stable",
"stability-flags": [
],
"prefer-stable": false,
"platform": [
],
"platform-dev": [
]
}
FROM php:5-zts-alpine
COPY . /torrentfoil/
WORKDIR /torrentfoil
RUN php composer.phar install
ENV CRON_SCHEDULE "* * * * *"
ENTRYPOINT entrypoint.sh php /torrentfoil/torrentfoil.php
This file has been truncated, but you can view the full file.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment