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:
2024-03-10 16:17:50 -07:00
parent 2ffc3c408a
commit a424394109
13506 changed files with 1860172 additions and 6 deletions
@@ -0,0 +1,42 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Streamline\Models\LocationOfDelivery;
class LocationOfDeliveryTableSeeder extends Seeder
{
/**
* Run the database seeders.
*
* @return void
*/
public function run()
{
/* `streamline_db`.`location_of_delivery` */
$location_of_delivery = array(
array('id' => '1','name' => 'Kisiizi Hospital Maternity','Active' => '1'),
array('id' => '2','name' => 'Kisiizi Hospital A&E','Active' => '1'),
array('id' => '3','name' => 'Other','Active' => '1'),
array('id' => '4','name' => 'Another location','Active' => '0'),
array('id' => '5','name' => 'Yet another location','Active' => '0'),
array('id' => '6','name' => 'And another one','Active' => '0'),
array('id' => '7','name' => 'Another locations','Active' => '1'),
array('id' => '8','name' => 'Yet another location','Active' => '0'),
array('id' => '9','name' => 'Another location','Active' => '0'),
array('id' => '10','name' => 'kk','Active' => '0'),
array('id' => '11','name' => 'Test d.l','Active' => '1'),
array('id' => '12','name' => 'kk','Active' => '1'),
array('id' => '13','name' => 'new nice location','Active' => '1'),
array('id' => '14','name' => 'delivery comfrimation','Active' => '1'),
array('id' => '15','name' => 'thursday delivery location','Active' => '1')
);
foreach ($location_of_delivery as $location):
LocationOfDelivery::firstOrCreate([
"id" => $location['id'],
"name" => $location['name']
]);
endforeach;
}
}