Sign inSign up

benrowe/unraid-scripts

By benrowe

•Updated over 8 years ago

unraid scripts

Image
0

681

benrowe/unraid-scripts repository overview

⁠Unraid Scripts

This is a command line interface (cli) utility for running symfony/console commands within a docker container.

You can easily write your own command's using the symfony/console package constructs. These commands will be available via the ./cli script which will run the command inside a docker container.

If your commands require additional dependancies, you can specify them in the composer.json file provided.

In addition to this, the command will boot a docker container that provides a webhook interface to remotely execute the commands you build. This can be configured by the provided config.yml

⁠Requirements

This script has been designed to run from unraid, however you can use this utility on any nix* based system with docker installed (untested currently)

⁠Installation

Firstly create a new directory where you would like to install the cli tool

Via WGET:

wget https://raw.githubusercontent.com/benrowe/unraid-scripts/master/cli
chmod +x cli
./cli init

Via CURL:

curl -O https://raw.githubusercontent.com/benrowe/unraid-scripts/master/cli
chmod +x cli
./cli init

⁠How to use

./cli

from the installed directory

⁠How to add your own scripts/contribute

Once the init script, you will be provided with a few base files/directories

.env: any environment variables you want injected into the container. Also available within php via the getenv() function.

composer.json: any custom dependancies required by your commands

config.yml: webhook configuration file (maps http requests to a command)

./commands/: where you should store your commands. They must be defined under the App\Commands namespace

⁠Notes

  • commands beginning with cli: are reserved for the cli system, do not build commands that start with this prefix.

Tag summary

Content type

Image

Digest

Size

161.1 MB

Last updated

over 8 years ago

docker pull benrowe/unraid-scripts