add devspace (#1173)

This commit is contained in:
acelinkio
2025-11-28 11:52:10 -08:00
committed by GitHub
parent e7d9002156
commit 2ef26e5d02
8 changed files with 159 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
version: v2beta1
name: front
dev:
front:
imageSelector: ghcr.io/zoriya/kyoo_front
devImage: docker.io/oven/bun:latest
workingDir: /app
sync:
- path: .:/app
excludePaths:
- node_modules
startContainer: true
onUpload:
exec:
- command: bun install --frozen-lockfile
onChange:
- "./bun.lock"
# increased sysctl limits for file watching
# front uses Metro javascript bundler which watches a lot of files
# these are node level settings that should be raised
# example values:
# fs.inotify.max_user_instances = 8192
# fs.inotify.max_user_watches = 1048576
command:
- bash
- -c
- "bun install --frozen-lockfile; bun dev --port 8901"
ports:
- port: "8901"