Firebird/Developer Guidelines: Difference between revisions

From stonehomewiki
Jump to navigationJump to search
 
(One intermediate revision by the same user not shown)
Line 18: Line 18:
During development, it is very time consuming to rebuild docker image for streaming application and firebird web console. Here is what I did
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
Here is what you can do
<pre><nowiki>
(1) Update firebird console code
#!/bin/sh
(2) run bin/dev-upload.sh
rm -f firebird.tar.gz
(3) On firebird console, run ./dev_install.sh to pick up the change
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
</nowiki></pre>
 
Then on firebird console, you can do this to update the firebird package
<pre><nowiki>
./dev_install.sh
</nowiki></pre>


To reload firebird web console
To reload firebird web console
Line 74: Line 56:
delete /firebird-global-lock
delete /firebird-global-lock


</nowiki></pre>
</div>
</div>
<p></p>
= Scale =
<div class="toccolours mw-collapsible mw-collapsed expandable">
<div class="mw-collapsible-preview"></div>
<div class="mw-collapsible-content">
<pre><nowiki>
kubectl scale --replicas=2 deployment/firebird-pipeline--test
</nowiki></pre>
</nowiki></pre>
</div>
</div>
</div>
</div>
<p></p>
<p></p>

Latest revision as of 23:04, 13 September 2023

Kubernete Dashboard

Test Environment

ZooKeeper

Scale