dwellir-public / rpc-endpoint-db-operator

Manages API endpoint data collection
Apache License 2.0
1 stars 0 forks source link

Transform into charm #14

Closed jakobilobi closed 1 year ago

jakobilobi commented 1 year ago

Making the endpointdb app a charm would increase ease of usage and enable usage of relations to other applications (e.g. the blockchain-monitor) in our infrastructure.

When charmified, the repo should probably be renamed endpointdb-operator.

jakobilobi commented 1 year ago

Started working on this during my Internet outage this morning. Goal is to first make a working charm with an easy deploy process, then to incorporate the self.unit.open_port() functionality included in the newer ops versions. At least if that seems needed to make the API callable remotely, will have to test first!

erik78se commented 1 year ago

You can implement the http interface as a relation, which then would allow us to relate to haproxy automatically.

But it might be overkill

Den mån 10 juli 2023 11:34Jakob @.***> skrev:

Started working on this during my Internet outage this morning. Goal is to first make a working charm with an easy deploy process, then to incorporate the self.unit.open_port() functionality included in the newer ops versions. At least if that seems needed to make the API callable remotely, will have to test first!

— Reply to this email directly, view it on GitHub https://github.com/dwellir-public/endpointdb/issues/14#issuecomment-1628589833, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGPVK5N4WHK5LBTKXEKPU3XPPECDANCNFSM6AAAAAA2AOXO44 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jakobilobi commented 1 year ago

You can implement the http interface as a relation, which then would allow us to relate to haproxy automatically.

We want to relate this to haproxy?

The port-opening-code I was thinking would be to make AWS automatically open the Flask API port for the container if deployed to AWS.

erik78se commented 1 year ago

It might be easier to add tls to the service, but it can possibly be added some other way....

Den tis 11 juli 2023 16:53Jakob @.***> skrev:

You can implement the http interface as a relation, which then would allow us to relate to haproxy automatically.

We want to relate this to haproxy?

The port-opening-code I was thinking would be to make AWS automatically open the Flask API port for the container if deployed to AWS.

— Reply to this email directly, view it on GitHub https://github.com/dwellir-public/endpointdb/issues/14#issuecomment-1630980763, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGPVK477BOWW3P7DAM6N3LXPVSHXANCNFSM6AAAAAA2AOXO44 . You are receiving this because you commented.Message ID: @.***>

jakobilobi commented 1 year ago

Done with https://github.com/dwellir-public/endpointdb/pull/17