mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 19:21:33 +00:00
Build modified streamline images
The official image from streamline does not currently work for the arm64 platform. As a temporary measure, the source code and docker build scripts have been lifted from the official images and are used to build locally. Some additional modifications are made to reduce overall image size, these are documented in docker/README.md
This commit is contained in:
+57
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
namespace OwenIt\Auditing\Console;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class InstallCommand extends Command
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected $signature = 'auditing:install';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected $description = 'Install all of the Auditing resources';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$this->comment('Publishing Auditing Configuration...');
|
||||
$this->callSilent('vendor:publish', ['--tag' => 'config']);
|
||||
|
||||
$this->comment('Publishing Auditing Migrations...');
|
||||
$this->callSilent('vendor:publish', ['--tag' => 'migrations']);
|
||||
|
||||
$this->registerAuditingServiceProvider();
|
||||
|
||||
$this->info('Auditing installed successfully.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the Auditing service provider in the application configuration file.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function registerAuditingServiceProvider()
|
||||
{
|
||||
$namespace = Str::replaceLast('\\', '', app()->getNamespace());
|
||||
|
||||
$appConfig = file_get_contents(config_path('app.php'));
|
||||
|
||||
if (Str::contains($appConfig, 'OwenIt\\Auditing\\AuditingServiceProvider::class')) {
|
||||
return;
|
||||
}
|
||||
|
||||
file_put_contents(config_path('app.php'), str_replace(
|
||||
"{$namespace}\\Providers\EventServiceProvider::class," . PHP_EOL,
|
||||
"{$namespace}\\Providers\EventServiceProvider::class," . PHP_EOL . " OwenIt\Auditing\AuditingServiceProvider::class," . PHP_EOL,
|
||||
$appConfig
|
||||
));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user