Skip to content

Local dev

Artem Golub edited this page Mar 8, 2023 · 4 revisions

First Clone the repo.

Second, make sure your connected to a cluster, got kubectl command working, and your local .kube/config is good.

Then, from the project root:

kubectl apply -f ./manifests/namespace.yaml
kubectl apply -n kubefill -f ./manifests/secret-admin.yaml
kubectl apply -n kubefill -f ./manifests/secret-jwt.yaml

Finally, run the following in separate terminals in order:

# start the postgres db
docker compose up kubefill-postgres

# start the repo server
cd cmd
BINARY_NAME=kubefill-reposerver REPO_ROOT=/path/to/repo/repos SSH_ROOT=/path/to/repo/ssh go run .

# start the web server
cd cmd
BINARY_NAME=kubefill-server KUBEFILL_POSTGRES=localhost KUBEFILL_SERVER_REPO_SERVER=localhost:8081 KUBECONFIG=~/.kube/config LOGS_PATH=/path/to/repo/logs SECRETS_KEY=04076d64bdb6fcf31706eea85ec98431 go run .

# start ui
cd ui && npm run start
Clone this wiki locally