Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .devcontainer/roverctl-web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ RUN apt-get update && \
make \
build-essential \
pkg-config \
unzip \
&& rm -rf /var/lib/apt/lists/*

# Install nodejs (20) and npm
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs

# Install bun, pinned to a specific version
RUN curl -fsSL https://bun.com/install | bash -s "bun-v1.3.5"

# Install Java based on architecture
RUN ARCH=$(dpkg --print-architecture) && \
if [ "$ARCH" = "amd64" ]; then \
Expand All @@ -45,3 +49,5 @@ RUN npm install -g @openapitools/openapi-generator-cli
RUN openapi-generator-cli version




39 changes: 37 additions & 2 deletions roverctl-web/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,41 @@ build-open-api:
@echo "generating openapi client"
@openapi-generator-cli generate -i ../spec/api/schema.yaml -g typescript-axios -o src/lib/openapi

start:
install:
@echo "Installing dependencies..."
@bun install

start: install
@echo "Starting the application..."
@npm run dev
@echo ""
@echo "\033[0;33m⚠️ WARNING: Starting in DEV mode\033[0m"
@echo "\033[0;33m⚠️ You need a running 'roverctl passthrough' for the passthrough server to work\033[0m"
@echo ""
@echo "Please enter configuration values (press Enter for defaults):"
@echo ""
@read -p "PUBLIC_ROVERD_HOST [rover01.local]: " roverd_host; \
roverd_host=$${roverd_host:-rover01.local}; \
read -p "PUBLIC_ROVERD_PORT [80]: " roverd_port; \
roverd_port=$${roverd_port:-80}; \
read -p "PUBLIC_ROVERD_USERNAME [debix]: " roverd_username; \
roverd_username=$${roverd_username:-debix}; \
read -p "PUBLIC_ROVERD_PASSWORD [debix]: " roverd_password; \
roverd_password=$${roverd_password:-debix}; \
read -p "PUBLIC_PASSTHROUGH_HOST [empty]: " passthrough_host; \
read -p "PUBLIC_PASSTHROUGH_PORT [7500]: " passthrough_port; \
passthrough_port=$${passthrough_port:-7500}; \
echo ""; \
echo "Starting with configuration:"; \
echo " ROVERD_HOST: $$roverd_host"; \
echo " ROVERD_PORT: $$roverd_port"; \
echo " ROVERD_USERNAME: $$roverd_username"; \
echo " PASSTHROUGH_HOST: $$passthrough_host"; \
echo " PASSTHROUGH_PORT: $$passthrough_port"; \
echo ""; \
PUBLIC_ROVERD_HOST=$$roverd_host \
PUBLIC_ROVERD_PORT=$$roverd_port \
PUBLIC_ROVERD_USERNAME=$$roverd_username \
PUBLIC_ROVERD_PASSWORD=$$roverd_password \
PUBLIC_PASSTHROUGH_HOST=$$passthrough_host \
PUBLIC_PASSTHROUGH_PORT=$$passthrough_port \
bun run dev --host 0.0.0.0
915 changes: 915 additions & 0 deletions roverctl-web/bun.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion roverctl-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.1",
"private": true,
"scripts": {
"postinstall": "cp -r node_modules/rovercom/packages/typescript/. node_modules/rovercom-temp && rm -rf node_modules/rovercom && mv node_modules/rovercom-temp node_modules/rovercom",
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
Expand Down Expand Up @@ -51,13 +52,13 @@
"@svelte-kit/svelte-toast": "^0.9.7",
"@sveltestack/svelte-query": "^1.6.0",
"@xyflow/svelte": "^0.1.30",
"ase-rovercom": "https://gitpkg.vercel.app/VU-ASE/rovercom/packages/typescript?v2.0.0",
"axios": "^1.7.9",
"chart.js": "^4.4.7",
"chartjs-adapter-luxon": "^1.3.1",
"dagre": "^0.8.5",
"js-yaml": "^4.1.0",
"jszip": "^3.10.1",
"rovercom": "github:VU-ASE/rovercom#v2.0.0",
"strip-ansi": "^7.1.0",
"svelte-french-toast": "^1.2.0",
"svelte-persisted-store": "^0.12.0",
Expand Down
Loading
Loading