miércoles, 27 de agosto de 2025

Podman for Windows + WSL Support | 2025

If you need Podman instead of Docker and run your virtual machine on WSL, this is the "Short" for you!





Docker + WSL | 2025

 Are you looking for a fast way to get Docker in WSL ? This "Short" will help you!!!



jueves, 17 de junio de 2021

Laravel 7 con Docker | Ambiente de Desarrollo

 


Comandos:

Instalando dependencias con imagen de composer

docker run --rm -v $(pwd):/app composer:latest install


Dockerfile

FROM php:7.3-apache
EXPOSE 80
RUN apt-get update -y \
  && apt-get install -y libxml2-dev
RUN docker-php-ext-install mysqli pdo pdo_mysql mbstring dom
RUN a2enmod rewrite


Construyendo imagen:

docker build -f Dockerfile -t laraveldev:latest .


Creando contenedor a partir de la imagen construida:

docker run  --name laradev -p 80:80 -v $(pwd):/var/www/html laraveldev:latest



lunes, 19 de abril de 2021

MYSQL + Docker | Ubuntu 20.04

 Pasos sencillos para ejecutar una nueva instancia de MySQL con Docker.


Comando:

docker run --restart always --name mysql5732 -p 3306:3306 \

-e MYSQL_ROOT_PASSWORD=testprueba \

-e MYSQL_DATABASE=prueba \

-e MYSQL_USER=usuarioprueba \

-e MYSQL_PASSWORD=pass1234 \

-v $(pwd)/mysql:/var/lib/mysql \

mysql:5.7.32

jueves, 18 de febrero de 2021

Update + Inner Join SQL Server

This is the correct way to update records by performing an inner join in SQLSRV:


UPDATE tbl1

SET tbl1.field1 = tbl2.field2

FROM table_name1 tbl1

INNER JOIN table_name2 tbl2 

ON tbl1.id = tbl2.id

WHERE ...