How to setup a custom Domain for a Node-RED instance on IBM Cloud

This blog post is a short cheat sheet, how easy it is to configure/setup a custom domain for a Node-RED example instance on IBM Cloud for a Cloud Foundry App. To do this you need a Pay-As-You-Go or Trial-Account for the IBM Cloud.

The image below shows my Node-RED Node.js instance in IBM Cloud and the invocation in a browser.

Cloud Foundry App InstanceNode-RED invocation in a browser
Continue reading

Cheat sheet to get started with the implementation of unit tests for REST endpoints in Node.js

This blog post is a cheat sheet to get started with the initial technical implementation of unit tests for REST endpoints implemented in Node.js and is structured in following sections:

  • Short overview
  • Installation of Mocha and Supertest
  • Unit test implementation perperation on the Node.js server
  • Unit test implementation itself
  • Execute the unit test
  • Summary
Continue reading

How to configure the IBM Cloud Operator for an existing Cloudant service?

Kubernetes Operators are an awesome way to simplify work for developers to setup and maintain complex applications in Kubernetes or Red Hat OpenShift.

The IBM Cloud Operator provides you the ability to bind IBM Cloud services to your applications running in Kubernetes or RedHat OpenShift and create, update, and delete IBM Cloud services from within the cluster by calling Kubernetes APIs, instead of needing to use several IBM Cloud APIs in addition to configuring your app for Kubernetes.

That example shows how to bind an existing Cloudant service instance in IBM Cloud to an application running in Red Hat OpenShift. The content of the example is related to the usage of the Red Hat OpenShift with IBM Cloud Open Labs. In these labs you can use a preconfigured OpenShift environment for four hours at no charge to run workshops by your own. By the way, here you can find the related source code for the examples.

Continue reading

Write your first simple Kubernetes Operator

Ask your human Operator to do all the complicated ugly work for you!

… or write your own Operator, if you are the expert and you know how the complicated ugly work, works in detail. This is how you can make sure it works in the future 😉

For those of you who don’t know Kubernetes Operators in combination with Ansible, let me just give you a very simplified description from my point of view:

Even a student with minimal knowledge of Kubernetes should be able to install a highly complex container-based application on top of Kubernetes or OpenShift. Eliminate the manual interaction effort as much as possible to deploy, run, and maintain your containerized application on Kubernetes or OpenShift with your Operator implementation.


During my search on the internet, how to build an own custom Kubernetes Operator, I came along to that awesome YouTube video with a talk from Keith Tenzer, he gave in 2020 on the Open Infrastructure Foundation Summit called “Building Kubernetes Operators with the Operator Framework and Ansible”.

Continue reading

Install VirtualBox and setup a virtual machine with Ubuntu on MacOS

This blog post does contain a very short cheat sheet for me and maybe it is also useful for you: How to install VirtualBox and setup a virtual machine with Ubuntu on a Mac OS host system, by using various documentation resources from the internet.

Step 1: Download and install the latest VirtualBox on your Mac (pay attention to the Oracle Licensing, when you start using VirtualBox).

Step 2: Be aware of the system security preferences settings. You can follow the instructions from this awesome very short blog post, written by Xilin Sun. That will help you to avoid following Error:

Solving VirtualBox “kernel driver not installed (rc=-1908)” Error on macOS

Step 3: Download an iso image file from the Ubuntu webpage for your installation.

Step 4: Follow these instructions which are written by the About the Biometric Research Program. The instructions are for a Windows operating system, but I would say, you can easily map the content to a Mac0S installation.

And by the way also useful to know is:


Maybe this was useful for you and let’s see what’s next?

Greetings,

Thomas

#VirtualBox, #Ubuntu

Absolute beginner Node-RED flow

The motivation for that blog post is: When I support Hackathons I notice there’s often a lack of programming knowledge and building UIs, but they have awesome ideas. If this is the case, then Node-RED is a perfect starting point to realize a prototype at a hackathon. The dashboard of Node-RED is a awesome way to build a UI, but there was a “out of the box” Node missing to simply add a table. Now I found a very useful Node that’s create a table inside a Node-RED dashboard.

That’s motivated me to create an example GitHub project, which provides an example to build a simple application from scratch.

The gif shows the simple functionality of the flow.

  • Enter a new user
  • Search for lastname
  • Inspect result
Continue reading

How to install MkDocs on Mac and setup the integration to GitHub pages?

This blog post contains the simplified steps, how to setup MkDocs for a GitHub project to use it with GitHub Pages. I won’t covering details about the background. The blog post is for me a little cheat sheet and maybe it is also useful for you. Steve Martinelli created an awesome blog post in that context called 5 Features I Like About Material for MkDoc.

Here an example GitHub project, which is based on the setup I documented in this blog post: https://thomassuedbroecker.github.io/How-to-install-MkDocs-on-Mac-and-setup-integration-with-GitHub/

The gif shows the example project documentation:

Continue reading

What do you think about the OWASP web application security top ten as a developer?

I like the OWASP Top Ten for “developers” charts. From my point of view, it gives an awesome advice, where to start and helps to take care and remember what you maybe already know about web security implementation. From my side it feels a bit like “rub salt into the wound” of a developer soul, isn’t it so? Especially when you starting developing cloud native and microservices based applications.

Continue reading