Entradas

Mostrando entradas de abril, 2024

How to Limit Memory and Resources in Docker Desktop on Windows

Imagen
I'm working with Docker Desktop on Windows as part of my daily routine, primarily for database engines such as PostgreSQL and Oracle. Since I use my computer intensively, with numerous browser tabs open and running multiple instances of Visual Studio 2022 and SQL Server, I needed to limit the resources of my computer. To limit the RAM, CPU, and other resources in Windows, it's necessary to create a file named .wslconfig in your home directory. [wsl2] memory = 4GB   # Limits VM memory in WSL 2 Documentation https://learn.microsoft.com/en-us/windows/wsl/wsl-config Before Setting After Setting -- Atte. Victor Hugo Saavedra http://vhspiceros.blogspot.com

Install Oracle 19C in local with Docker

Imagen
I need to work with Oracle in specify the version 19C, But I really don't would like install in my local environment, So I tried to install as docker container with success result. 1.- First step obviouslyis install docker desktop from https://www.docker.com/products/docker-desktop/ 2.- Download the cdocker image with the follow command docker pull doctorkirk/oracle-19c 3.- Create directory in your local machine (to not lose the information when stop docker ) and create a container. Here one example docker run --name oracle-container -m 5g -p 1521:1521 -e ORACLE_SID=oracle -e ORACLE_PWD=123456789 -e ORACLE_MEM=2000 -v C:/work/oracle-19c/oradata/:/opt/oracle/oradata doctorkirk/oracle-19c In this case the swap direcory is  C:/work/oracle-19c/oradata/ 3.- Get the id of container and and run it 4.- Finally you can connect by database client like dbeaver or  SQl developer with the similar configuration -- Atte. Victor Hugo Saavedra http://vhspiceros.blogspot.com