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,86 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Streamline\Models\StaffPositions;
class StaffPositionsSeeder extends Seeder {
/**
* Run the database seeders.
*
* @return void
*/
public function run() {
$positions = [
['id' => '1', 'name' => 'Data Clerk'],
['id' => '2', 'name' => 'Lab Technician'],
['id' => '3', 'name' => 'Clinical Officer'],
['id' => '4', 'name' => 'Pharmacy Technician'],
['id' => '5', 'name' => 'Finance Manager'],
['id' => '6', 'name' => 'Medical Officer'],
['id' => '7', 'name' => 'Visiting Specialist'],
['id' => '8', 'name' => 'Assistant Information Officer'],
['id' => '9', 'name' => 'Visiting Registrar'],
['id' => '10', 'name' => 'Intern'],
['id' => '11', 'name' => 'Records Assistant'],
['id' => '12', 'name' => 'Volunteer Nurse'],
['id' => '13', 'name' => 'Enrolled Comprehensive Nurse'],
['id' => '14', 'name' => 'Consultant Paediatrician'],
['id' => '15', 'name' => 'Intern Doctor'],
['id' => '16', 'name' => 'Consultant Surgeon'],
['id' => '17', 'name' => 'Consultant Physician'],
['id' => '18', 'name' => 'Information Officer'],
['id' => '19', 'name' => 'Insurance Data Clerk'],
['id' => '20', 'name' => 'Registered Nurse (Diploma]'],
['id' => '21', 'name' => 'Field Officer, KHIS'],
['id' => '22', 'name' => 'Accountant'],
['id' => '23', 'name' => 'Accounts Assistant'],
['id' => '24', 'name' => 'Bursar School of Nursing'],
['id' => '25', 'name' => 'Accounts Officer'],
['id' => '26', 'name' => 'Storeman'],
['id' => '27', 'name' => 'Psychiatric Clinical Officer'],
['id' => '28', 'name' => 'Enrolled Nurse (Certificate]'],
['id' => '29', 'name' => 'Pharmacy Assistant'],
['id' => '30', 'name' => 'Lab Assistant'],
['id' => '31', 'name' => 'Senior Hospital Administrator'],
['id' => '32', 'name' => 'Senior Hospital Secretary'],
['id' => '33', 'name' => 'Health Tutor'],
['id' => '34', 'name' => 'Ultrasonographer'],
['id' => '35', 'name' => 'Radiographer'],
['id' => '36', 'name' => 'Dental Officer'],
['id' => '37', 'name' => 'Enrolled Midwife'],
['id' => '38', 'name' => 'Registered Midwife'],
['id' => '39', 'name' => 'Human Resources Co-ordinator'],
['id' => '40', 'name' => 'Registered Psychiatric Nurse'],
['id' => '41', 'name' => 'Hospital Chaplain'],
['id' => '42', 'name' => 'Registered comprehensive nurse'],
['id' => '43', 'name' => 'Laboratory Scientist'],
['id' => '44', 'name' => 'Nursing Assistant'],
['id' => '45', 'name' => 'Engineer '],
['id' => '46', 'name' => 'IT Co-ordinator'],
['id' => '47', 'name' => 'Headmaster'],
['id' => '48', 'name' => 'Anaesthetic Officer'],
['id' => '49', 'name' => 'Medical Student'],
['id' => '50', 'name' => 'Anaesthetic Clinical Officer'],
['id' => '51', 'name' => 'Pharmacist'],
['id' => '52', 'name' => 'Pre-intern'],
['id' => '53', 'name' => 'Consultant Obstetrician'],
['id' => '54', 'name' => 'Visiting Manager'],
['id' => '55', 'name' => 'Nurse Intern'],
['id' => '56', 'name' => 'Orthopaedic Officer'],
['id' => '57', 'name' => 'Principal Nursing Officer'],
['id' => '58', 'name' => 'NA']];
foreach ($positions as $position) {
StaffPositions::firstOrCreate([
'id' => $position['id'],
'name' => $position['name'],
'created_by' => 1,
'updated_by' => 1
]);
}
}
}