Firebird/GettingStarted: Difference between revisions

From stonehomewiki
Jump to navigationJump to search
 
(6 intermediate revisions by the same user not shown)
Line 48: Line 48:
<div class="mw-collapsible-preview">Setup firebird web console: create database</div>
<div class="mw-collapsible-preview">Setup firebird web console: create database</div>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
Although you can create a MySQL instance in your kubernetes cluster, it is easier to create a MySQL instance if you are using a cloud provider, such as AWS, GCP, etc.
<pre><nowiki>
<pre><nowiki>
# assuming you have a MySQL 8.x installed
# assuming you have a MySQL 8.x installed
Line 67: Line 68:
<div class="mw-collapsible-preview">Setup firebird web console: build docker image</div>
<div class="mw-collapsible-preview">Setup firebird web console: build docker image</div>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
* [https://github.com/stonezhong/firebird/tree/master/examples/getting-started/console github]
<pre><nowiki>
<pre><nowiki>
cd console
cd console
Line 74: Line 76:
docker push iad.ocir.io/idrnu3akjpv5/firebird-console
docker push iad.ocir.io/idrnu3akjpv5/firebird-console
</nowiki></pre>
</nowiki></pre>
Notes:
* You have config file at <code>firebird_config/config.jso</code>, this file contains configurations about mysql, rabbitmq and zookeeper, you may need to modify it in case you have different configuration
</div>
</div>
</div>
</div>
Line 92: Line 91:
     --from-file=oci_api_key.pem=secrets/oci_api_key.pem
     --from-file=oci_api_key.pem=secrets/oci_api_key.pem
</nowiki></pre>
</nowiki></pre>
* <code>secrets/app_config.json</code>, it contains information about zookeeper, rabbitmq and mysql
<pre><nowiki>
{
    "zookeeper": {
        "hosts": "zookeeper:2181"
    },
    "rabbitmq": {
        "username": "stonezhong",
        "password": "changeme",
        "host": "rabbitmq",
        "port": 5672,
        "heartbeat": 300
    },
    "mysql": {
        "db_name": "firebird",
        "username": "stonezhong",
        "password": "foobar",
        "server": "10.2.0.29"
    }
}
</nowiki></pre>
* <code>secrets/kube_config</code>: this is your kubernete config file, usually you can copy it from ~/.kube/config from machine which you run kubectl
* <code>secrets/oci_config</code> and <code>secrets/oci_api_key.pem</code> are your OCI configs. (this demo is about using firebird on Oracle Cloud Infracture)
</div>
</div>
</div>
</div>
Line 151: Line 175:


# now you can list pipeline to make sure it is registered
# now you can list pipeline to make sure it is registered
pipeline list
/usr/src/app # pipeline list
test:
test:
     module: pipe
    namespace: firebird
    image    : iad.ocir.io/idrnu3akjpv5/firebird-app1
     module   : pipe
    running  : No
    Kubernetes
        618a0014-f9fb-475c-9d3f-840dc80d7821: src
        c3cbcea2-0936-4f80-9635-41fc7d49650e: puller
     executors: None
     executors: None
</nowiki></pre>
</nowiki></pre>

Latest revision as of 10:31, 15 September 2023

Firebird

Setup Firebird Kubernete Cluster

Deployment Sample Streaming Application