Compare commits

...

7 Commits

Author SHA1 Message Date
Ronald A. Richardson
acf3c66c9f patch Dockerfile 2023-06-07 19:15:37 +08:00
Ronald A. Richardson
4e635716bb patched Dockerfile, console updated to v0.0.4 with all latest dependencies 2023-06-07 18:36:53 +08:00
Ronald A. Richardson
f3240c049f console now builds for production 2023-06-06 14:21:10 +07:00
Ronald A. Richardson
3d1140d45c oops, dont use local dir for api depn 2023-06-05 11:28:32 +07:00
Ronald A. Richardson
bbd02e4e8a update core-api to v1.0.3-alpha 2023-06-05 11:24:36 +07:00
Ronald A. Richardson
fb4e51d1ba now uses installer, dropped entrypoint scripts 2023-05-30 17:48:08 +08:00
Ronald A. Richardson
ae5fb66e5b latest 2023-05-30 16:36:33 +08:00
17 changed files with 111 additions and 232 deletions

View File

@@ -6,7 +6,7 @@
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"fleetbase/core-api": "^1.0.1-alpha",
"fleetbase/core-api": "^1.0.3-alpha",
"fleetbase/fleetops-api": "^1.0.1-alpha",
"fleetbase/storefront-api": "^1.0.1-alpha",
"fruitcake/laravel-cors": "^2.0",

185
api/composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "c2df0fb7e46996548ab3da4f346edf2b",
"content-hash": "e39edfd17e56ba33f60f895cbad0f59a",
"packages": [
{
"name": "aloha/twilio",
@@ -192,16 +192,16 @@
},
{
"name": "aws/aws-sdk-php",
"version": "3.271.2",
"version": "3.271.7",
"source": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-php.git",
"reference": "17d7df5b89bb06e915931a65f643cf3469f8994c"
"reference": "d0fe1af38ef521e419004e5f990ceb8e0b2b001d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/17d7df5b89bb06e915931a65f643cf3469f8994c",
"reference": "17d7df5b89bb06e915931a65f643cf3469f8994c",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/d0fe1af38ef521e419004e5f990ceb8e0b2b001d",
"reference": "d0fe1af38ef521e419004e5f990ceb8e0b2b001d",
"shasum": ""
},
"require": {
@@ -281,9 +281,9 @@
"support": {
"forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
"issues": "https://github.com/aws/aws-sdk-php/issues",
"source": "https://github.com/aws/aws-sdk-php/tree/3.271.2"
"source": "https://github.com/aws/aws-sdk-php/tree/3.271.7"
},
"time": "2023-05-25T18:19:34+00:00"
"time": "2023-06-02T18:21:03+00:00"
},
{
"name": "aws/aws-sdk-php-laravel",
@@ -2002,16 +2002,16 @@
},
{
"name": "fleetbase/core-api",
"version": "1.0.1-alpha",
"version": "1.0.3-alpha",
"source": {
"type": "git",
"url": "https://github.com/fleetbase/core-api.git",
"reference": "705f5e8251c536e8452a384baac9f9eacfddc90e"
"reference": "77bc9e7df79d9f4559d1633d1c86fe0af7f2a63e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/fleetbase/core-api/zipball/705f5e8251c536e8452a384baac9f9eacfddc90e",
"reference": "705f5e8251c536e8452a384baac9f9eacfddc90e",
"url": "https://api.github.com/repos/fleetbase/core-api/zipball/77bc9e7df79d9f4559d1633d1c86fe0af7f2a63e",
"reference": "77bc9e7df79d9f4559d1633d1c86fe0af7f2a63e",
"shasum": ""
},
"require": {
@@ -2085,7 +2085,7 @@
],
"support": {
"issues": "https://github.com/fleetbase/core-api/issues",
"source": "https://github.com/fleetbase/core-api/tree/v1.0.1-alpha"
"source": "https://github.com/fleetbase/core-api/tree/v1.0.3-alpha"
},
"funding": [
{
@@ -2093,7 +2093,7 @@
"type": "github"
}
],
"time": "2023-05-26T04:28:10+00:00"
"time": "2023-06-05T04:13:52+00:00"
},
{
"name": "fleetbase/fleetops-api",
@@ -6072,16 +6072,16 @@
},
{
"name": "nesbot/carbon",
"version": "2.66.0",
"version": "2.67.0",
"source": {
"type": "git",
"url": "https://github.com/briannesbitt/Carbon.git",
"reference": "496712849902241f04902033b0441b269effe001"
"reference": "c1001b3bc75039b07f38a79db5237c4c529e04c8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/496712849902241f04902033b0441b269effe001",
"reference": "496712849902241f04902033b0441b269effe001",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/c1001b3bc75039b07f38a79db5237c4c529e04c8",
"reference": "c1001b3bc75039b07f38a79db5237c4c529e04c8",
"shasum": ""
},
"require": {
@@ -6170,7 +6170,7 @@
"type": "tidelift"
}
],
"time": "2023-01-29T18:53:47+00:00"
"time": "2023-05-25T22:09:47+00:00"
},
{
"name": "nette/caching",
@@ -9697,16 +9697,16 @@
},
{
"name": "symfony/console",
"version": "v5.4.23",
"version": "v5.4.24",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
"reference": "90f21e27d0d88ce38720556dd164d4a1e4c3934c"
"reference": "560fc3ed7a43e6d30ea94a07d77f9a60b8ed0fb8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/90f21e27d0d88ce38720556dd164d4a1e4c3934c",
"reference": "90f21e27d0d88ce38720556dd164d4a1e4c3934c",
"url": "https://api.github.com/repos/symfony/console/zipball/560fc3ed7a43e6d30ea94a07d77f9a60b8ed0fb8",
"reference": "560fc3ed7a43e6d30ea94a07d77f9a60b8ed0fb8",
"shasum": ""
},
"require": {
@@ -9776,7 +9776,7 @@
"terminal"
],
"support": {
"source": "https://github.com/symfony/console/tree/v5.4.23"
"source": "https://github.com/symfony/console/tree/v5.4.24"
},
"funding": [
{
@@ -9792,7 +9792,7 @@
"type": "tidelift"
}
],
"time": "2023-04-24T18:47:29+00:00"
"time": "2023-05-26T05:13:16+00:00"
},
{
"name": "symfony/css-selector",
@@ -9929,16 +9929,16 @@
},
{
"name": "symfony/error-handler",
"version": "v5.4.23",
"version": "v5.4.24",
"source": {
"type": "git",
"url": "https://github.com/symfony/error-handler.git",
"reference": "218206b4772d9f412d7d277980c020d06e9d8a4e"
"reference": "c1b9be3b8a6f60f720bec28c4ffb6fb5b00a8946"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/error-handler/zipball/218206b4772d9f412d7d277980c020d06e9d8a4e",
"reference": "218206b4772d9f412d7d277980c020d06e9d8a4e",
"url": "https://api.github.com/repos/symfony/error-handler/zipball/c1b9be3b8a6f60f720bec28c4ffb6fb5b00a8946",
"reference": "c1b9be3b8a6f60f720bec28c4ffb6fb5b00a8946",
"shasum": ""
},
"require": {
@@ -9980,7 +9980,7 @@
"description": "Provides tools to manage errors and ease debugging PHP code",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/error-handler/tree/v5.4.23"
"source": "https://github.com/symfony/error-handler/tree/v5.4.24"
},
"funding": [
{
@@ -9996,7 +9996,7 @@
"type": "tidelift"
}
],
"time": "2023-04-17T10:03:27+00:00"
"time": "2023-05-02T16:13:31+00:00"
},
{
"name": "symfony/event-dispatcher",
@@ -10227,16 +10227,16 @@
},
{
"name": "symfony/http-foundation",
"version": "v5.4.23",
"version": "v5.4.24",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-foundation.git",
"reference": "af9fbb378f5f956c8f29d4886644c84c193780ac"
"reference": "3c59f97f6249ce552a44f01b93bfcbd786a954f5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/af9fbb378f5f956c8f29d4886644c84c193780ac",
"reference": "af9fbb378f5f956c8f29d4886644c84c193780ac",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/3c59f97f6249ce552a44f01b93bfcbd786a954f5",
"reference": "3c59f97f6249ce552a44f01b93bfcbd786a954f5",
"shasum": ""
},
"require": {
@@ -10283,7 +10283,7 @@
"description": "Defines an object-oriented layer for the HTTP specification",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/http-foundation/tree/v5.4.23"
"source": "https://github.com/symfony/http-foundation/tree/v5.4.24"
},
"funding": [
{
@@ -10299,20 +10299,20 @@
"type": "tidelift"
}
],
"time": "2023-04-18T06:30:11+00:00"
"time": "2023-05-19T07:21:23+00:00"
},
{
"name": "symfony/http-kernel",
"version": "v5.4.23",
"version": "v5.4.24",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-kernel.git",
"reference": "48ea17a7c65ef1ede0c3b2dbc35adace99071810"
"reference": "f38b722e1557eb3f487d351b48f5a1279b50e9d1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/48ea17a7c65ef1ede0c3b2dbc35adace99071810",
"reference": "48ea17a7c65ef1ede0c3b2dbc35adace99071810",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/f38b722e1557eb3f487d351b48f5a1279b50e9d1",
"reference": "f38b722e1557eb3f487d351b48f5a1279b50e9d1",
"shasum": ""
},
"require": {
@@ -10395,7 +10395,7 @@
"description": "Provides a structured process for converting a Request into a Response",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/http-kernel/tree/v5.4.23"
"source": "https://github.com/symfony/http-kernel/tree/v5.4.24"
},
"funding": [
{
@@ -10411,7 +10411,7 @@
"type": "tidelift"
}
],
"time": "2023-04-28T13:29:52+00:00"
"time": "2023-05-27T08:06:30+00:00"
},
{
"name": "symfony/mime",
@@ -11472,16 +11472,16 @@
},
{
"name": "symfony/process",
"version": "v5.4.23",
"version": "v5.4.24",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
"reference": "4b842fc4b61609e0a155a114082bd94e31e98287"
"reference": "e3c46cc5689c8782944274bb30702106ecbe3b64"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/4b842fc4b61609e0a155a114082bd94e31e98287",
"reference": "4b842fc4b61609e0a155a114082bd94e31e98287",
"url": "https://api.github.com/repos/symfony/process/zipball/e3c46cc5689c8782944274bb30702106ecbe3b64",
"reference": "e3c46cc5689c8782944274bb30702106ecbe3b64",
"shasum": ""
},
"require": {
@@ -11514,7 +11514,7 @@
"description": "Executes commands in sub-processes",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/process/tree/v5.4.23"
"source": "https://github.com/symfony/process/tree/v5.4.24"
},
"funding": [
{
@@ -11530,7 +11530,7 @@
"type": "tidelift"
}
],
"time": "2023-04-18T13:50:24+00:00"
"time": "2023-05-17T11:26:05+00:00"
},
{
"name": "symfony/property-access",
@@ -11615,16 +11615,16 @@
},
{
"name": "symfony/property-info",
"version": "v5.4.23",
"version": "v5.4.24",
"source": {
"type": "git",
"url": "https://github.com/symfony/property-info.git",
"reference": "ff45ebbfd781eab2571d9d4412d82a9a733fc2b3"
"reference": "d43b85b00699b4484964c297575b5c6f9dc5f6e1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/property-info/zipball/ff45ebbfd781eab2571d9d4412d82a9a733fc2b3",
"reference": "ff45ebbfd781eab2571d9d4412d82a9a733fc2b3",
"url": "https://api.github.com/repos/symfony/property-info/zipball/d43b85b00699b4484964c297575b5c6f9dc5f6e1",
"reference": "d43b85b00699b4484964c297575b5c6f9dc5f6e1",
"shasum": ""
},
"require": {
@@ -11686,7 +11686,7 @@
"validator"
],
"support": {
"source": "https://github.com/symfony/property-info/tree/v5.4.23"
"source": "https://github.com/symfony/property-info/tree/v5.4.24"
},
"funding": [
{
@@ -11702,7 +11702,7 @@
"type": "tidelift"
}
],
"time": "2023-04-17T14:20:34+00:00"
"time": "2023-05-15T20:11:03+00:00"
},
{
"name": "symfony/routing",
@@ -11796,16 +11796,16 @@
},
{
"name": "symfony/serializer",
"version": "v5.4.23",
"version": "v5.4.24",
"source": {
"type": "git",
"url": "https://github.com/symfony/serializer.git",
"reference": "545da11697153c24c274b9a68cab550b2c0a9860"
"reference": "12535bb7b1d3b53802bf18d61a98bb1145fabcdb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/serializer/zipball/545da11697153c24c274b9a68cab550b2c0a9860",
"reference": "545da11697153c24c274b9a68cab550b2c0a9860",
"url": "https://api.github.com/repos/symfony/serializer/zipball/12535bb7b1d3b53802bf18d61a98bb1145fabcdb",
"reference": "12535bb7b1d3b53802bf18d61a98bb1145fabcdb",
"shasum": ""
},
"require": {
@@ -11879,7 +11879,7 @@
"description": "Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/serializer/tree/v5.4.23"
"source": "https://github.com/symfony/serializer/tree/v5.4.24"
},
"funding": [
{
@@ -11895,7 +11895,7 @@
"type": "tidelift"
}
],
"time": "2023-04-17T13:59:16+00:00"
"time": "2023-05-12T08:37:35+00:00"
},
{
"name": "symfony/service-contracts",
@@ -12068,16 +12068,16 @@
},
{
"name": "symfony/translation",
"version": "v5.4.22",
"version": "v5.4.24",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation.git",
"reference": "9a401392f01bc385aa42760eff481d213a0cc2ba"
"reference": "de237e59c5833422342be67402d487fbf50334ff"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/9a401392f01bc385aa42760eff481d213a0cc2ba",
"reference": "9a401392f01bc385aa42760eff481d213a0cc2ba",
"url": "https://api.github.com/repos/symfony/translation/zipball/de237e59c5833422342be67402d487fbf50334ff",
"reference": "de237e59c5833422342be67402d487fbf50334ff",
"shasum": ""
},
"require": {
@@ -12145,7 +12145,7 @@
"description": "Provides tools to internationalize your application",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/translation/tree/v5.4.22"
"source": "https://github.com/symfony/translation/tree/v5.4.24"
},
"funding": [
{
@@ -12161,7 +12161,7 @@
"type": "tidelift"
}
],
"time": "2023-03-27T16:07:23+00:00"
"time": "2023-05-19T12:34:17+00:00"
},
{
"name": "symfony/translation-contracts",
@@ -12243,16 +12243,16 @@
},
{
"name": "symfony/var-dumper",
"version": "v5.4.23",
"version": "v5.4.24",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
"reference": "9a8a5b6d6508928174ded2109e29328a55342a42"
"reference": "8e12706bf9c68a2da633f23bfdc15b4dce5970b3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/9a8a5b6d6508928174ded2109e29328a55342a42",
"reference": "9a8a5b6d6508928174ded2109e29328a55342a42",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/8e12706bf9c68a2da633f23bfdc15b4dce5970b3",
"reference": "8e12706bf9c68a2da633f23bfdc15b4dce5970b3",
"shasum": ""
},
"require": {
@@ -12261,7 +12261,6 @@
"symfony/polyfill-php80": "^1.16"
},
"conflict": {
"phpunit/phpunit": "<5.4.3",
"symfony/console": "<4.4"
},
"require-dev": {
@@ -12312,7 +12311,7 @@
"dump"
],
"support": {
"source": "https://github.com/symfony/var-dumper/tree/v5.4.23"
"source": "https://github.com/symfony/var-dumper/tree/v5.4.24"
},
"funding": [
{
@@ -12328,7 +12327,7 @@
"type": "tidelift"
}
],
"time": "2023-04-18T09:26:27+00:00"
"time": "2023-05-25T13:05:00+00:00"
},
{
"name": "symfony/var-exporter",
@@ -13470,16 +13469,16 @@
},
{
"name": "doctrine/dbal",
"version": "3.6.2",
"version": "3.6.3",
"source": {
"type": "git",
"url": "https://github.com/doctrine/dbal.git",
"reference": "b4bd1cfbd2b916951696d82e57d054394d84864c"
"reference": "9a747d29e7e6b39509b8f1847e37a23a0163ea6a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/dbal/zipball/b4bd1cfbd2b916951696d82e57d054394d84864c",
"reference": "b4bd1cfbd2b916951696d82e57d054394d84864c",
"url": "https://api.github.com/repos/doctrine/dbal/zipball/9a747d29e7e6b39509b8f1847e37a23a0163ea6a",
"reference": "9a747d29e7e6b39509b8f1847e37a23a0163ea6a",
"shasum": ""
},
"require": {
@@ -13492,12 +13491,12 @@
"psr/log": "^1|^2|^3"
},
"require-dev": {
"doctrine/coding-standard": "11.1.0",
"doctrine/coding-standard": "12.0.0",
"fig/log-test": "^1",
"jetbrains/phpstorm-stubs": "2022.3",
"phpstan/phpstan": "1.10.9",
"phpstan/phpstan": "1.10.14",
"phpstan/phpstan-strict-rules": "^1.5",
"phpunit/phpunit": "9.6.6",
"phpunit/phpunit": "9.6.7",
"psalm/plugin-phpunit": "0.18.4",
"squizlabs/php_codesniffer": "3.7.2",
"symfony/cache": "^5.4|^6.0",
@@ -13562,7 +13561,7 @@
],
"support": {
"issues": "https://github.com/doctrine/dbal/issues",
"source": "https://github.com/doctrine/dbal/tree/3.6.2"
"source": "https://github.com/doctrine/dbal/tree/3.6.3"
},
"funding": [
{
@@ -13578,29 +13577,33 @@
"type": "tidelift"
}
],
"time": "2023-04-14T07:25:38+00:00"
"time": "2023-06-01T05:46:46+00:00"
},
{
"name": "doctrine/deprecations",
"version": "v1.0.0",
"version": "v1.1.1",
"source": {
"type": "git",
"url": "https://github.com/doctrine/deprecations.git",
"reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de"
"reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/deprecations/zipball/0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de",
"reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de",
"url": "https://api.github.com/repos/doctrine/deprecations/zipball/612a3ee5ab0d5dd97b7cf3874a6efe24325efac3",
"reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3",
"shasum": ""
},
"require": {
"php": "^7.1|^8.0"
"php": "^7.1 || ^8.0"
},
"require-dev": {
"doctrine/coding-standard": "^9",
"phpunit/phpunit": "^7.5|^8.5|^9.5",
"psr/log": "^1|^2|^3"
"phpstan/phpstan": "1.4.10 || 1.10.15",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
"psalm/plugin-phpunit": "0.18.4",
"psr/log": "^1 || ^2 || ^3",
"vimeo/psalm": "4.30.0 || 5.12.0"
},
"suggest": {
"psr/log": "Allows logging deprecations via PSR-3 logger implementation"
@@ -13619,9 +13622,9 @@
"homepage": "https://www.doctrine-project.org/",
"support": {
"issues": "https://github.com/doctrine/deprecations/issues",
"source": "https://github.com/doctrine/deprecations/tree/v1.0.0"
"source": "https://github.com/doctrine/deprecations/tree/v1.1.1"
},
"time": "2022-05-02T15:47:09+00:00"
"time": "2023-06-03T09:27:29+00:00"
},
{
"name": "doctrine/event-manager",

Submodule console updated: ed54e50dfa...e42893e2dd

View File

@@ -55,6 +55,7 @@ services:
SESSION_DOMAIN: localhost
BROADCAST_DRIVER: socketcluster
MAIL_FROM_NAME: Fleetbase
LOG_CHANNEL: daily
depends_on:
- database
- cache

View File

@@ -30,39 +30,22 @@ RUN curl -L https://github.com/springload/ssm-parent/releases/download/v1.4.3/ss
&& rm /tmp/ssm-parent.tar.gz
# Install Composer
WORKDIR /var/www
COPY docker/composer-install.sh ./
RUN chmod +x ./composer-install.sh \
&& ./composer-install.sh
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Copy packages
COPY packages /var/www/html/packages
# Setup application
WORKDIR /var/www/html/api
# Set ownership and permissions
RUN chown www-data:www-data /var/www/html \
&& chown www-data:www-data /var/www/html/api
# Copy application files
COPY --chown=www-data:www-data api ./
RUN chown -R www-data:www-data /var/www/html/api
USER www-data
RUN mkdir -p ./storage/logs/ \
&& ln -sf /dev/stdout ./storage/logs/laravel.log
# Install Composer dependencies
COPY api/composer.json api/composer.lock ./
RUN composer install --no-dev --no-scripts --no-autoloader
# Copy application files
COPY --chown=www-data:nogroup . ./
# Continue
USER root
# Copy entrypoint.sh
COPY docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Copy entrypoint-app.sh
COPY docker/entrypoint-app.sh /entrypoint-app.sh
RUN chmod +x /entrypoint-app.sh
# Set environment
ARG ENVIRONMENT=production
ENV APP_ENV=$ENVIRONMENT
@@ -87,7 +70,7 @@ CMD ["go-crond", "--verbose", "--no-auto", "root:./crontab"]
# Application dev stage
FROM base as app-dev
ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["docker-php-entrypoint"]
CMD ["php-fpm"]
# Events stage
@@ -102,5 +85,5 @@ CMD ["php", "artisan", "queue:work", "sqs"]
# Application stage
FROM base as app
ENTRYPOINT ["/entrypoint-app.sh"]
ENTRYPOINT ["/sbin/ssm-parent", "-c", ".ssm-parent.yaml", "run", "--", "docker-php-entrypoint"]
CMD ["php-fpm"]

View File

@@ -1,11 +0,0 @@
#!/bin/sh
set -e
# Run migrations
php artisan mysql:createdb
php artisan migrate
php artisan sandbox:migrate
php artisan fleetbase:seed
# Call the original entrypoint
exec /sbin/ssm-parent -c .ssm-parent.yaml run -- docker-php-entrypoint "$@"

View File

@@ -1,11 +0,0 @@
#!/bin/sh
set -e
# Run migrations
php artisan mysql:createdb
php artisan migrate
php artisan sandbox:migrate
php artisan fleetbase:seed
# Call the original entrypoint
exec docker-php-entrypoint "$@"

View File

@@ -1,25 +0,0 @@
#!/bin/bash
git submodule update --init --recursive
git submodule update --recursive --remote
cd console
git checkout dev-main
git pull
cd ../packages/ember-core
git checkout dev-main
pnpm install
cd ../ember-ui
git checkout dev-main
pnpm install
cd ../fleetops-engine
git checkout dev-main
pnpm install
cd ../dev-engine
git checkout dev-main
pnpm install
cd ../storefront-engine
git checkout dev-main
pnpm install
cd ../../console
git checkout dev-main
pnpm install

View File

@@ -1,10 +0,0 @@
#!/bin/bash
set -ev
php /var/www/html/api/artisan mysql:createdb
php /var/www/html/api/artisan migrate --force
php /var/www/html/api/artisan sandbox:migrate --force
php /var/www/html/api/artisan sandbox:init-key
php /var/www/html/api/artisan db:seed --force
php /var/www/html/api/artisan queue:restart

View File

@@ -1,5 +0,0 @@
#!/bin/bash
composer dump-autoload --working-dir /var/www/html/api
composer dump-autoload --working-dir /var/www/html/packages/core-api
composer dump-autoload --working-dir /var/www/html/packages/fleetops-api
composer dump-autoload --working-dir /var/www/html/packages/storefront-api

View File

@@ -1,46 +0,0 @@
#!/bin/bash
cd packages/core-api
git add .
git commit -m 'latest'
git push origin dev-main
cd ../dev-engine
git add .
git commit -m 'latest'
git push origin dev-main
cd ../ember-core
git add .
git commit -m 'latest'
git push origin dev-main
cd ../ember-ui
git add .
git commit -m 'latest'
git push origin dev-main
cd ../fleetops-api
git add .
git commit -m 'latest'
git push origin dev-main
cd ../fleetops-data
git add .
git commit -m 'latest'
git push origin dev-main
cd ../fleetops-engine
git add .
git commit -m 'latest'
git push origin dev-main
cd ../storefront-api
git add .
git commit -m 'latest'
git push origin dev-main
cd ../storefront-engine
git add .
git commit -m 'latest'
git push origin dev-main
cd ../iam-engine
git add .
git commit -m 'latest'
git push origin dev-main
cd ../fleetbase-extensions-indexer
git add .
git commit -m 'latest'
git push origin main