mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
Refactor/project structure (#3085)
* refactor project structure * environment-based default registry * fix tests * update build container * use docker platform for iso build emulation * simplify compat * Fix docker platform spec in run-compat.sh * handle riscv compat * fix bug with dep error exists attr * undo removal of sorting * use qemu for iso stage --------- Co-authored-by: Mariusz Kogen <k0gen@pm.me> Co-authored-by: Matt Hill <mattnine@protonmail.com>
This commit is contained in:
@@ -6,6 +6,7 @@ const {
|
||||
gitHash,
|
||||
useMocks,
|
||||
ui: { api, mocks },
|
||||
defaultRegistry,
|
||||
} = require('../../../../../config.json') as WorkspaceConfig
|
||||
|
||||
@Injectable({
|
||||
@@ -26,6 +27,7 @@ export class ConfigService {
|
||||
api = api
|
||||
skipStartupAlerts = useMocks && mocks.skipStartupAlerts
|
||||
supportsWebSockets = !!window.WebSocket
|
||||
defaultRegistry = defaultRegistry
|
||||
|
||||
isTor(): boolean {
|
||||
return useMocks ? mocks.maskAs === 'tor' : this.hostname.endsWith('.onion')
|
||||
|
||||
@@ -156,15 +156,14 @@ export class DepErrorService {
|
||||
|
||||
const depStatus = getInstalledBaseStatus(dep.statusInfo)
|
||||
|
||||
// not running
|
||||
if (depStatus !== 'running' && depStatus !== 'starting') {
|
||||
return {
|
||||
type: 'notRunning',
|
||||
}
|
||||
}
|
||||
|
||||
// health check failure
|
||||
if (currentDep?.kind === 'running') {
|
||||
// not running
|
||||
if (depStatus !== 'running' && depStatus !== 'starting') {
|
||||
return {
|
||||
type: 'notRunning',
|
||||
}
|
||||
}
|
||||
// health check failure
|
||||
for (let id of currentDep.healthChecks) {
|
||||
const check = dep.statusInfo.health[id]
|
||||
if (check?.result !== 'success') {
|
||||
|
||||
Reference in New Issue
Block a user