As you know, PM2 is a daemon process manager that allows you to keep applications online. Many times, you may be running your service inside a Docker image. The service can be written in any language, such as Node.js, Java, etc. Below is the shell script that can be used to deploy your service. It can be added and used in your CI/CD pipeline.
Tuesday, March 19, 2024
Sunday, December 31, 2023
AWS - Get quicksight embed url using JavaScript SDK V3
In the realm of data-driven solutions, AWS QuickSight offers a robust platform for crafting dynamic and insightful dashboards. Embedding these dashboards directly into your applications adds a layer of accessibility and convenience. This guide walks you through the process of obtaining a secure QuickSight embed URL using JavaScript SDK V3, suitable for both Node.js backend and Lambda functions. Before proceeding, ensure your QuickSight dashboard is created and shared with the intended audience.
Prerequisites:
Make sure you've completed the following preliminary steps:
Dashboard Setup:Friday, June 2, 2023
Docker - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``
Introduction:
Docker has revolutionized the way we package, distribute, and deploy applications. However, like any other technology, it is not immune to errors and issues. One such error that I encountered recently while working with Docker on my Mac was the "error getting credentials - executable file not found" error. In this blog post, I will share my experience with this error and provide a solution that worked for me.
The Error:
When attempting to build a Docker image or perform a Docker login, I encountered the following error message:
openjdk:17: error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``
Error saving credentials: error storing credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``
Diagnosis:
The error message suggests that the Docker daemon was unable to locate the "docker-credential-desktop" executable file in the $PATH environment variable. This executable is responsible for retrieving Docker credentials and authentication.
Wednesday, April 19, 2023
React simple rich text editor using draft-js
This React Simple Rich Text Editor is created using the Draft.js library and includes button controls made with react-icons. It allows users to toggle between different inline styles like block, italic, and underline, as well as block types such as header-one, unordered-list-item, and ordered-list-item. The controls buttons are selected on text click, making it easy for users to format their text.
The component requires two packages to be installed
yarn add draft-js react-icons
Thursday, February 23, 2023
Caused by: java.lang.UnsupportedOperationException: PermittedSubclasses requires ASM9
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-bin.zip