Cloud-oriented Life

Cloud Native Technology Improves Lives

Resolving APT Installation Issues with --allow-unauthenticated

When managing packages on Debian-based systems, APT (apt-get) is a powerful tool that ensures installations are secure and reliable. However, there are instances where you might encounter issues during package installation, especially when using the -y flag for automatic confirmation without manual intervention.

Read more »

Creating a Rails App with React by jsbundling-rails Gem

Ruby on Rails is a robust web application framework that simplifies the creation of complex web applications. One of the recent additions to the Rails ecosystem is the jsbundling-rails gem, which provides a streamlined way to manage JavaScript bundling with tools like Esbuild. In this blog, we’ll walk through setting up a new Rails application with the jsbundling-rails gem, configuring Esbuild, and integrating popular JavaScript libraries React.

Read more »

Managing Bootsnap Cache in Rails: Troubleshooting Common Issues

When working with Ruby on Rails applications, optimizing performance and ensuring smooth deployments are paramount. One powerful tool in the Rails ecosystem for speeding up boot times is Bootsnap, which caches expensive computations and can significantly reduce application startup times. However, like any caching mechanism, it can sometimes cause issues that developers need to address. In this blog post, we’ll explore a common issue related to Bootsnap caching and how to resolve it effectively.

Read more »

How to Install and Register GitLab Runner and Shell Executor on CentOS

In today’s DevOps landscape, continuous integration and continuous delivery (CI/CD) pipelines are essential for delivering high-quality software. GitLab Runner, a tool used to run jobs in a GitLab CI/CD pipeline, is an integral part of this process. This guide will walk you through installing and registering GitLab Runner on CentOS, ensuring you have a reliable setup for your development workflow.

Read more »

Troubleshooting Common Issues with GitLab Runner Shell Executor on CentOS

As a senior software engineer, I often encounter various challenges while working with GitLab Runner on CentOS. This blog post aims to address some common issues and provide solutions that can help streamline your CI/CD pipeline. Whether you’re upgrading Git, managing permissions for Docker, or dealing with runtime errors, this guide will offer practical steps to resolve these issues efficiently.

Read more »

The following modules failed to execute: ansible.legacy.setup

Ansible is a powerful tool for automation, but sometimes running it on older systems can present challenges. Recently, while working with servers running Ubuntu 18.04, I encountered issues with the ansible.legacy.setup module failing to execute. This was primarily due to the outdated Python versions on these servers, which are not supported by the latest versions of Ansible.

Ubuntu 18.04, being an older distribution, does not appear in the Ubuntu Python 3 packages page. The core of the problem lies in the compatibility between the Python versions on these older servers and the Ansible versions being deployed.

Read more »

Using OSV-Scanner to find existing vulnerabilities affecting your Rails application dependencies

Recently, Google released the open source vulnerability scanner OSV-Scanner. OSV-Scanner is an officially supported front-end tool for the open source OSV database, written in Go, designed to scan open source applications to assess the security of any merged dependencies.

You can use OSV-Scanner to find vulnerabilities in Rails application dependencies, including Gemfile.lock, package-lock.json, yarn.lock, etc., the latest commit records in .git directories, and Debian-based mirrors.

Read more »
0%