Posts
Odoo In MicroK8s
Odoo In MicroK8s This post provides a simple guide for anyone wanting to get Odoo running on Kubernetes quickly for development or review purposes. Since most Odoo developers I know, including myself, use some sort of Debian flavor of Linux, I’ve selected MicroK8s for the Kubernetes environment.
It’s obviously possible to get it going with a set of self written Kubernetes manifests, however, I’ve found best and fastest way to get the job done is with Helm and the Bitnami Odoo Chart.
Posts
Odoo Dev Tips
Odoo Development Tips Development Setup Assumptions:
You are a Python developer You have at least basic Odoo development knowledge You are using Ubuntu 18.04 for development (or similar) Pre-requisites:
Python setuptools: sudo apt-get install python3-setuptools Python wheel: pip3 install wheel Get Odoo one of 2 ways (choose just one, unless you know what you are doing):
Option 1: Clone the Odoo source code to a directory of your choice.
Posts
StatusFlags Change Log
2020-06-12 All logins must now be done at https://login.statusflags.com. The server and the SPA are now separate projects. The SPA is now an open source project hosted on Gitlab The SPA is setup for use with your own server. Just … deploy your own server with correct DNS, valid cert etc deploy the SPA with your new SERVER_URL config 2021-07-7 For the legacy UI, fixed a JSON parsing issue that occurs when all channels are deleted
Posts
PyLa-Mail
Send email with Python, AWS Lambda Use case: We’ve setup a static website with a simple contact form. We could use something like Formspree.io to handle the posted email form to forward the message to us, however, we would rather handle our own email relay than send it through a 3rd party.
We want CORS and a custom domain used to prevent cross site script posting messages and use throttling to prevent getting flooded with messages.
Posts
Prometheus with Java
Using Prometheus with Java in a Jersey project Step 1, add the dependency to your project. If you’re using maven, add the dependency:
<dependency> <groupId>io.prometheus</groupId> <artifactId>simpleclient_servlet</artifactId> <version>0.0.6</version> </dependency> Step 2, create a class and register some metrics. Here I have a summary and some counters:
public class Metrics { public static final Summary requestLatency = Summary.build() .name("requests_latency_seconds") .help("Request latency in seconds.").register(); public static final Counter requestFailures = Counter.