Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
11 changes: 11 additions & 0 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,17 @@ ko_build("github.com/openela/mothership/cmd/mship_server", "./cmd/mship_server")
ko_build("github.com/openela/mothership/cmd/mship_admin_server", "./cmd/mship_admin_server")
ko_build("github.com/openela/mothership/cmd/mship_worker_server", "./cmd/mship_worker_server")

# Build UI image (live rebuild enabled)
docker_build('ghcr.io/openela/mothership-ui', './ui',
build_args={'node_env': 'development'},
# entrypoint='',
live_update=[
sync('./ui', '/app'),
run('cd /app && pnpm install --frozen-lockfile && pnpm run build', trigger=['./ui/package.json', './ui/pnpm-lock.lock']),

run('touch /app/server.ts', trigger='./server.ts'),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ui/server.ts in trigger.

])

# Assign local port-forwards for easier access
k8s_resource("mothership-api-deployment", port_forwards=6677, resource_deps=[
"postgresql", "valkey-primary", "dev-dex"
Expand Down
4 changes: 2 additions & 2 deletions k8s/ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
serviceAccountName: mothership
containers:
- name: mothership-ui
image: ghcr.io/mstg/mship_ui@sha256:934ed2028d74a33c5f1fb6c63d276c96f0a269d3b16220fff5342c43c8c57801
image: ghcr.io/openela/mothership-ui
env:
- name: NODE_ENV
value: "production"
Expand Down Expand Up @@ -97,4 +97,4 @@ spec:
service:
name: mothership-ui-service
port:
number: 9111
number: 9111
4 changes: 2 additions & 2 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ COPY --from=install /temp/dev/node_modules node_modules
ENV NODE_ENV=development
RUN pnpm run build

FROM cgr.dev/chainguard/bun
FROM oven/bun:1
WORKDIR /app
COPY --from=install /temp/prod/node_modules node_modules
COPY --from=build /app/dist dist
COPY server.ts server.ts
COPY favicon.png favicon.png
ENV NODE_ENV=production
CMD ["run", "server.ts"]
CMD ["run", "server.ts"]