omni/hack/dev-server.sh
Artem Chernyshev ed946b30a6
feat: display OMNI_ENDPOINT in the service account creation UI
Fixes: https://github.com/siderolabs/omni/issues/858

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
2025-01-29 15:27:36 +03:00

19 lines
566 B
Bash
Executable File

#!/bin/sh
# Copyright (c) 2025 Sidero Labs, Inc.
#
# Use of this software is governed by the Business Source License
# included in the LICENSE file.
PLATFORM=$(uname -s | tr "[:upper:]" "[:lower:]")
ARCHITECTURE=""
case $(uname -m) in
i386) echo "32 bit architecture is not supported" exit 1 ;;
i686) echo "32 bit architecture is not supported" exit 1 ;;
x86_64) ARCHITECTURE="amd64" ;;
arm) ARCHITECTURE="arm64" ;;
esac
sudo -E _out/omni-${PLATFORM}-${ARCHITECTURE} --port 8091 >_out/backend.log 2>&1 &
cd frontend && npm install && npm run serve