Fixing the issue with Kong deployment as a reverse proxy for Docker registry

What is Docker registry?

The Registry is a stateless, highly scalable server side application that stores and lets you distribute Docker images. The Registry is open-source, under the permissive Apache license.

What is Kong?

Kong is one of the core technologies used by Mashape to power API request from developers. It is often described as a “drop-in replacement for expensive proprietary API management systems.” The rough idea behind Kong is to give developers a centralized management layer for microservices and APIs.

Why using Kong as reverse proxy for Docker Registry?

Read More

Share Comments

Learning Rust

This post is not a tutorial, it is just my notes during the time i learn Rust. Glad if you found it useful.
If you are finding how to run Rust on your machine, take a look at my previous article to see how to install Rust programming language.

Why did i choose Rust?

I am an Enginner who love programming and building reliable systems. My favorite language is Python, i have written a lot of application based on Python. However, Python is an interpreted language, it is slow. In order to build applications for a high performance system, we have to use compiler language. There are several compiler language such as C, C++, Java, etc but i found Rust is morden and easy to use. Rust can run on both Windows and Unix also.

One of my favorite developement case is building web application. I am good with Python Flask. It is a great framework but i found Rust is able to do the same job. For example, we have Rocket for the web framework, Diesel for the DB ORM and Tera for the template.

For three years in a row. Rust has been voted the most loud language on Stack Overflow’s developer survey. It runs blazingly fast, prevents set falls and guarantees threat safety. It’s a completely open source language and used widely across the world for systems programming.

Read More

Share Comments

Change MySQL Server authentication plugin for root user

Start from MySQL Server 5.7, if we do not provide a password to root user during the installation, it will use auth_socket plugin for authentication. With this configuration, MySQL won’t care about your input password, it will check the user is connecting using a UNIX socket and then compares the username. If it is match, you are authenticated!

Error when login to mysql root user from normal linux user account.

Read More

Share Comments

Install Rust programming language

Rust is an open-source systems programming language that focuses on speed, memory safety, and parallelism. Developers use Rust to create a wide range of new software applications, such as game engines, operating systems, file systems, browser components and simulation engines for virtual reality.

It is simple to install Rust on Linux or macOS machine. To install Rust, run the following in your terminal, then follow the onscreen instructions.

Read More

Share Comments

Query Azure Marketplace image URN with PowerShell

A Marketplace image URN in Azure has the following attributes:

  • Publisher - The organization that created the image. Examples: Canonical, MicrosoftWindowsServer
  • Offer - Name of a group of related images created by a publisher. Examples: Ubuntu Server, WindowsServer
  • SKU - An instance of an offer, such as a major release of a distribution. Examples: 18.04-LTS, 2016-Datacenter
  • Version - The version number of an image SKU.

If you are developing or using an application that need to access the Azure Marketplace image, use image URN is needed. Following is the steps to indentify an image URN

Read More

Share Comments

Hello World!

This is my very first post to test new blog engine. Let’s check it out…

“Hello World” in different programming languages

Read More

Share Comments