envd-server

module
v0.0.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2023 License: MPL-2.0

README

envd-server

envd-server is the backend server for envd, which talks to Kubernetes and manage environments for users.

Install

helm install --debug envd-server ./manifests
# skip 8080 if you're going to run the envd-server locally
kubectl --namespace default port-forward service/envd-server 8080:8080 &
kubectl --namespace default port-forward service/envd-server 2222:2222 &

To run the envd-server locally:

make build-local
./bin/envd-server --kubeconfig $HOME/.kube/config --hostkey manifests/secretkeys/hostkey

Usage

envd context create --name server --runner envd-server --runner-address http://localhost:8080 --use
envd login
envd create --image gaocegege/test-envd

Development Guide of Dashboard

Build

Enter into dashboard directory to develop just like normal vue application.

If you want to build envd-server with dashboard

pushd dashboard
npm install
npm run build
popd
 DASHBOARD_BUILD=release make build-local

When envd-server is running, you can visit https:/localhost:8080/dashboard to see it

Develop locally

  • Port forward the postgresql service to local
kubectl port-forward svc/postgres-service 5432:5432
  • Setup environment variable
export KUBECONFIG=~/.kube/config
export ENVD_DB_URL=postgres://postgresadmin:admin12345@localhost:5432/postgresdb?sslmode=disable
  • Run envd-server locally
./bin/envd-server --debug --no-auth # Remove no-auth if auth is needed

Directories

Path Synopsis
api
cmd
Package errdefs defines a set of error interfaces that packages should use for communicating classes of errors.
Package errdefs defines a set of error interfaces that packages should use for communicating classes of errors.
pkg
app
docs
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
query/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
web
test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL