Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enhance kubelab-agent and shell #1

Merged
merged 6 commits into from
Jun 11, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Get dependencies
run: |
go get -v -t -d ./...
go get gopkg.in/check.v1
go mod vendor

- name: Test
run: |
Expand Down
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ FROM golang:1.20-alpine AS backend-builder
WORKDIR /build
COPY kubelab-backend/go.mod kubelab-backend/go.sum kubelab-backend/main.go ./
COPY kubelab-backend/hooks ./hooks
COPY kubelab-backend/pkg ./pkg
RUN apk --no-cache add upx make git gcc libtool musl-dev ca-certificates dumb-init \
&& go mod tidy \
&& CGO_ENABLED=0 go build \
&& upx pocketbase
&& upx kubelab

FROM node:lts-slim as ui-builder
WORKDIR /build
Expand All @@ -18,8 +19,8 @@ RUN npm run build

FROM alpine as runtime
WORKDIR /app/kubelab
COPY --from=backend-builder /build/pocketbase /app/kubelab/pocketbase
COPY --from=backend-builder /build/kubelab /app/kubelab/kubelab
COPY ./kubelab-backend/pb_migrations ./pb_migrations
COPY --from=ui-builder /build/build /app/kubelab/pb_public
EXPOSE 8090
CMD ["/app/kubelab/pocketbase","serve", "--http", "0.0.0.0:8090"]
CMD ["/app/kubelab/kubelab","serve", "--http", "0.0.0.0:8090"]
205 changes: 205 additions & 0 deletions assets/drawio/architecture.drawio

Large diffs are not rendered by default.

58 changes: 0 additions & 58 deletions kubelab-agent/Dockerfile

This file was deleted.

22 changes: 0 additions & 22 deletions kubelab-agent/README.md

This file was deleted.

21 changes: 0 additions & 21 deletions kubelab-agent/color/color.go

This file was deleted.

10 changes: 0 additions & 10 deletions kubelab-agent/go.mod

This file was deleted.

19 changes: 0 additions & 19 deletions kubelab-agent/go.sum

This file was deleted.

102 changes: 0 additions & 102 deletions kubelab-agent/main.go

This file was deleted.

87 changes: 0 additions & 87 deletions kubelab-agent/old.go

This file was deleted.

1 change: 1 addition & 0 deletions kubelab-backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/pocketbase*.zip
/pb_data
/tmp
/bin
Loading