Adding some basic start up for the ingest runner

This commit is contained in:
Gregory Ballantine 2024-05-17 09:14:02 -04:00
parent cc7eeaffde
commit 46cf28de82
5 changed files with 58 additions and 2 deletions

View File

@ -1,4 +1,4 @@
Copyright (c) 2024 BitGoblin Copyright (c) 2024 Bit Goblin
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

View File

@ -1,3 +1,7 @@
# Siren # Siren
Automated video ingester and transcoder service Automated video ingester and transcoder service
## Dependencies
Requires PHP version `7.4` or newer.

27
composer.json Normal file
View File

@ -0,0 +1,27 @@
{
"name": "bitgoblin/siren",
"description": "Self-hosted video ingest and transcoder service.",
"type": "project",
"license": "BSD-2-Clause",
"autoload": {
"psr-4": {
"BitGoblin\\Siren\\": "src/"
}
},
"authors": [
{
"name": "Gregory Ballantine",
"email": "gballantine@bitgoblin.tech"
}
],
"minimum-stability": "stable",
"require": {
"slim/slim": "^4.13",
"slim/psr7": "^1.6",
"php-di/php-di": "^6.4",
"hassankhan/config": "^3.0"
},
"scripts": {
"phinx": "./vendor/bin/phinx"
}
}

View File

@ -0,0 +1,16 @@
<?php
namespace BitGoblin\Siren\Runner;
class IngestRunner implements Runner {
public function start() {
print "Starting the ingest service...";
for ($i = 0; i < 10; i++) {
print "Loop number $i";
sleep(2);
}
}
}

9
src/Runner/Runner.php Normal file
View File

@ -0,0 +1,9 @@
<?php
namespace BitGoblin\Siren\Runner;
interface Runner {
public function start();
}