Docker container to generate a React build

Docker container to generate a React build

Tiempo de lectura: < 1 minuto Hello, today I’m going to share a very useful container for generating a React build. It already contains everything needed to generate it. Additionally, it is compatible with Vite.js. The first thing we are going to do is create the file docker-compose.yml version: ‘3.1’ services: react-app: container_name: react-app build: context: . dockerfile: Dockerfile volumes: – … Read more

Install Docker and Docker Compose on Ubuntu, very fast

Tiempo de lectura: < 1 minuto Let’s install Docker Compose on Ubuntu by following the official Docker website instructions. Update dependencies and install necessary packages: sudo apt-get update sudo apt-get install ca-certificates curl gnupg sudo install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/ubuntu/gpg sudo gpg –dearmor -o /etc/apt/keyrings/docker.gpg sudo chmod a+r /etc/apt/keyrings/docker.gpg # Add the repository to Apt sources: echo \ … Read more

Migrate a Docker Compose to Kubernetes

Migrate a Docker Compose to Kubernetes

Tiempo de lectura: 5 minutos Today, we’re going to learn, with an example, how to migrate a Docker Compose (https://www.docker.com/) setup to Kubernetes (https://kubernetes.io/). First, let me explain what the two mentioned technologies are: Docker Compose: Docker Compose is a tool that allows you to define and run multi-container Docker applications. With Docker Compose, you can describe the entire configuration … Read more

Add ClamAV Antivirus for Analyzing Files and Docker Environments, Using Docker Compose

Add ClamAV Antivirus for Analyzing Files and Docker Environments, Using Docker Compose

Tiempo de lectura: 3 minutos ClamAV is an open-source program designed to detect viruses, malware, and other threats on Unix and Linux operating systems. Its name is an abbreviation of “Clam Antivirus.” Although it originated in the Linux environment, it is also compatible with other operating systems, including Windows and macOS. Here are some key aspects of ClamAV: Scanning Engine: … Read more

Create a Docker container that allows us to run Docker commands inside it.

Create a Docker container that allows us to run Docker commands inside it.

Tiempo de lectura: < 1 minuto Today, I bring you this tutorial born out of the need to execute Docker commands using the task scheduler Ofelia (https://devcodelight.com/automatizar-tareas-con-cron-desde-docker-con-ofelia) To execute Docker commands within a container that is running with Docker on a local machine, the first thing we need to do is add a Docker client to our container. To create the … Read more

Clean up unused Docker image space

Clean up unused Docker image space

Tiempo de lectura: < 1 minuto Today we will learn how to free up disk space from unused images with Docker. Before cleaning the images, you can use the following command to see how much space can be freed: docker system df This command will display a summary of the space used by different Docker resource categories, such as images, containers, … Read more

Using Llama-2 with Python and ARM64 or AMD64 Environment in a Docker Compose Container.

Using Llama-2 with Python and ARM64 or AMD64 Environment in a Docker Compose Container.

Tiempo de lectura: 2 minutos Hello, today we are going to learn how to deploy llama-2 on a server with an ARM64 environment, such as an Ampere 1 offered by Oracle Cloud. It’s worth noting that it’s also compatible with AMD64. The program in question is called LlaMA C++ and is available for multiple environments: In our case, we are … Read more

Fixing POST Content-Length Exceeds Bytes Issue in PHP when Uploading a MySQL Backup with Docker PHPMyAdmin

Fixing POST Content-Length Exceeds Bytes Issue in PHP when Uploading a MySQL Backup with Docker PHPMyAdmin

Tiempo de lectura: < 1 minuto Here’s the content translated into English and formatted in HTML: html Copy code Reading Time: < 1 minute Hello, today we are going to solve the problem “Warning: POST Content–Length of X bytes exceeds the limit of X bytes in Unknown on line 0″ that prevents us from uploading .sql copies to our PHPMyAdmin. In … Read more

Backup MySQL or MariaDB with Ofelia (cron) and Docker.

Backup MySQL or MariaDB with Ofelia (cron) and Docker.

Tiempo de lectura: 2 minutos Sure! Here’s the translated content in HTML format without any additional text: html Copy code Reading time: 2 minutes Hello, today we are going to learn how we can create a backup of MySQL or MariaDB using Ofelia to schedule cron tasks with Docker or Docker Compose. The first thing we are going to do … Read more

Automate a Task with Ofelia Cron in Docker and FastAPI

Automate a Task with Ofelia Cron in Docker and FastAPI

Tiempo de lectura: < 1 minuto Reading Time: 1 minute Hello, today we are going to learn how to automate a task using Ofelia, FastAPI, and SQLAlchemy. The first thing we are going to do is create the file that we want to execute with Ofelia’s Cron: cron_execute.py # Create or get db_session from crud.operations_crud import operacion_crud_generar_estadisticas from config.connection import get_db … Read more