Firebird/Developer Guidelines
From stonehomewiki
Test Environment
During development, it is very time consuming to rebuild docker image for streaming application and firebird web console. Here is what I did
Upload the firebird source code to object storage
#!/bin/sh
rm -f firebird.tar.gz
tar -czf firebird.tar.gz \
--verbose \
--exclude=.git \
--exclude=dist \
--exclude=build \
--exclude=src/pyfirebird.egg-info \
--exclude=src/firebirdconsole/node_modules \
--exclude=*/__pycache__ \
--exclude=.gitignore \
-C /home/stonezhong/DATA_DISK/projects/firebird .
oci os object put -bn debug --file firebird.tar.gz --force
Then on firebird console, you can do this to update the firebird package
./dev_install.sh
To reload firebird web console
k rollout restart deployment/firebird-console-deployment
ZooKeeper
There might be time data in zookeeper might be corrupted, and sometimes it need manual recover.
Find ZooKeeper pod
k get pods NAME READY STATUS RESTARTS AGE demo-pod 1/1 Running 0 10h firebird-console-deployment-54476fb5dc-k4l4t 1/1 Running 0 5h26m rabbitmq-7675755457-c6fpc 1/1 Running 0 10h zookeeper-7967d6f86-gjsrc 1/1 Running 0 6h16m k exec -it zookeeper-7967d6f86-gjsrc -- bash bin/zkCli.sh # list everything under root ls -R / # delete everything under pipeline deleteall /pipelines delete /firebird-global-lock