First Attempt
This commit is contained in:
parent
242f4e578c
commit
8cdb184636
|
@ -27,6 +27,17 @@ $environments = Config::getParam('environments');
|
|||
*/
|
||||
$warmupStart = \microtime(true);
|
||||
|
||||
$dockerUser = App::getEnv('DOCKERHUB_PULL_USERNAME', null);
|
||||
$dockerPass = App::getEnv('DOCKERHUB_PULL_PASSWORD', null);
|
||||
|
||||
if($dockerUser) {
|
||||
$stdout = '';
|
||||
$stderr = '';
|
||||
|
||||
Console::execute('echo '.$dockerPass.' | docker login --username '.$dockerUser.' --password-stdin', '', $stdout, $stderr);
|
||||
Console::log('Docker Login'. $stdout.$stderr);
|
||||
}
|
||||
|
||||
Co\run(function() use ($environments) { // Warmup: make sure images are ready to run fast 🚀
|
||||
Runtime::enableCoroutine(SWOOLE_HOOK_ALL);
|
||||
|
||||
|
|
|
@ -286,6 +286,8 @@ services:
|
|||
- _APP_FUNCTIONS_MEMORY
|
||||
- _APP_FUNCTIONS_MEMORY_SWAP
|
||||
- _APP_USAGE_STATS
|
||||
- DOCKERHUB_PULL_USERNAME
|
||||
- DOCKERHUB_PULL_PASSWORD
|
||||
|
||||
appwrite-worker-mails:
|
||||
entrypoint: worker-mails
|
||||
|
|
Loading…
Reference in a new issue