In short, an orchestrator (like Kubernetes) brings together a set of microservices and organizes them into an application that brings value. It also provides and manages cloud-native features such as scaling, self-healing, and updating. OS of the cloud “Abstracting and commoditizing infrastructure” is a fancy way of saying that Kubernetes makes it so you don’t …
Enable an Image to Be Parameterized in Docker
Create a .js file var radius = process.env.diameter / 2; var area = Math.pow(radius, 2) * Math.PI; console.log( `Area of a ${radius} cm radius disk: ${area} cm²` ); Create a file named Dockerfile and add the following code to it: FROM node:11-alpine ENV diameter=4.0 COPY compute.js . CMD node compute.js Open a command-line. Change the …
Continue reading “Enable an Image to Be Parameterized in Docker”
Volume in Docker
When a container writes files, it writes them inside of the container. Which means that when the container dies (the host machine restarts, the container is moved from one node to another in a cluster, it simply fails, etc.) all of that data is lost. It also means that if you run the same container …
Why Docker and Basic Concepts
Why Docker Why Containers Containers make deployment easy. Deploying is as simple as running a new container, routing users to the new one, and trashing the old one. It can even be automated by orchestration tools. Since it’s so easy, we can afford to have many containers serving a single application for increased stability during …
How to run instance on multiple ports in IntelliJ?
Open the configuration From more options, enable parallel running. And then set the port for each instance. From left-top corner, duplicate the instance.
Use youtube-dl to download 1080P video with audio
Today I used youtube-tl to download videos from YouTube. Because of networking traffic it took me some time to finish, however, video downloaded successfully. But when I open the video then I notice the audio file not be downloaded simultaneously. Here is a way to fix this problem: youtube-dl -f 137+bestaudio –merge-output-format mkv youtube_url
Java Development Configuration in VS Code MacOS
Got jdk path /usr/libexec/java_home -V Set JAVA.HOME VSCode -> Code -> Preference -> setting -> enter java.home -> setting.json
How to build VPN with Vultr and OpenVpn
Sign up and log in Vultr. Build a personal server. Pick Openvpn as server type from application. Save the openvpn username and password. Download OpenVpn application from Internet. Fill in IP address, username & password.
Two useful tools for your terminal: Ranger and Neofetch
Ranger Ranger could make your directories in your terminal looks more organized and clear, you only need to type ranger Then your terminal would look like: Neofetch Another one is a simple tool to present your device information, you only need to type neofetch Then your terminal would present some information in a pretty way:
How to use Docker?
What is Docker? Docker is a platform that allows one to package an application with all of its dependencies and surrounding environment in an isolated container. This is useful because the next time you want to deploy your application somewhere else, for development or production, you can simply pull down that container rather than setting …