👨‍💻 Tunning your Devbox shell

Using Oh-My-Bash with Jetify Devbox: A Step-by-Step Guide If you’re a developer working with Jetify Devbox, you might have noticed that its shell environment doesn’t always play nicely with Oh-My-Bash. By following these steps, you can customize and personalize your themes and PS1 prompt to create a more enjoyable and productive shell experience. Step 1: Install Oh-My-Bash First, you need to install Oh-My-Bash. You can do this by running the following command in your terminal: ...

Automation a Nextcloud as a Podman Container

I’ve been thinking to upgrade my Nextcloud service also switching to another alternative rather than docker, hence I used podman and buildah in my solution. From the rockylinux.org I found a nice post where it describes how to build and provisioning by using buildah and podman, it works pretty good and I added a tool in order to run it faster, called taskfile. Requirements: Podman Buildah Taskfile Install taskfile Clone my project From the project you can see the task defined: version: "3" tasks: up-db: dir: "db/mariadb" preconditions: - test -f db-init.sh cmds: - bash db-init.sh create-app: dir: "app" preconditions: - test -f run.sh cmds: - mkdir nc nc/nextcloud nc/apps nc/config nc/data - task: up-db - bash run.sh build_base: dir: "db/base" preconditions: - test -f build.sh cmds: - bash build.sh build_tools: dir: "db/db-tools" preconditions: - test -f build.sh cmds: - bash build.sh build_maria: dir: "db/mariadb" preconditions: - test -f build.sh cmds: - bash build.sh build_db: cmds: - task: build_base - task: build_tools - task: build_maria up-app: cmds: - podman container start nextcloud Main task to build and run nextcloud: ...

2024-06-30 · map[name:Jose Castrillo]

Upgrading major version Nextcloud

For those who have been facing the “Maintenance mode active” after applied a nextcloud upgrade by switching container image version, due a major versioning issue. Even when you issue the occ upgrade into continer you gets hit by something like below: www-data@87401bdd2fa8:~/html$ php /var/www/html/occ upgrade Nextcloud or one of the apps require upgrade - only a limited number of commands are available You may use your browser or the occ upgrade command to do the upgrade Setting log level to debug Exception: Updates between multiple major versions and downgrades are unsupported. Update failed Maintenance mode is kept active Resetting log level Keep a eye on this part: Updates between multiple major versions and downgrades are unsupported. as I was running 25 version I can no jump for above 27, if that’s our case, we can edit the file app/config/config.php edit the version of your nextcloud like below: ...

2023-05-20 · map[name:Jose Castrillo]

How to deploy Wordpress + Mariadb using Docker

Below you will see the statement I used to deploy a Wordpress as db mariadb (mysql); I shared it to you, cos I’ve been looking out for a good .yml statement piece, but some of them are older or put other set frontend as nginx, etc. I did a simple and easier deployment statement, so here we have: version: '3.3' services: wordpress: depends_on: - db image: wordpress:latest volumes: - ./html:/var/www/html ports: - "8080:80" restart: always environment: WORDPRESS_DB_HOST: db:3306 WORDPRESS_DB_USER: wordpress WORDPRESS_DB_PASSWORD: password links: - db depends_on: - db db: image: mariadb:10.5.4-focal volumes: - ./db_data:/var/lib/mysql restart: always environment: MYSQL_ROOT_PASSWORD: SECRET MYSQL_DATABASE: wordpress MYSQL_USER: wordpress MYSQL_PASSWORD: password ports: - "3306:3306" You can switch the local mount to volume mount it will depend of you design. ...

2020-08-08 · map[name:Jose Castrillo]

Setup Podman service in Silverblue by Systemd

Into my Devops learning path 👨‍💻 I decided to deploy a monitoring centre into my workstation where I could be able to watch my containers, resources, logs, etc and continue improving my knowledge, in my case I’m using Silverblue developed by Fedora so in here it’s a little bit different the setup; as monitoring tool I choose Cockpit for its great integration and support. Workstation: Silverblue 🖥️ Container engine: Podman ⚙️ Monitoring tool(app/service):Cockpit 📦 I splinted out the instructions in 4 simple parts: ...

2020-07-07 · map[name:Jose Castrillo]

Docker Container "before start"

Part I Containers are environments that host individual applications using a framework like Docker. Docker Editions: Docker CE ( community edition ) free version Docker EE ( enterprise edition) Paid Versions: Stable, released every 4 months. Edge (beta) released every month. For testing EE, support for one year. Example how to create a container: $docker container run --publish 80:80 --detach --name webhost nginx detach: subcommand is to let run the container and keep use the command prompt name: create a container’s name. ...

2020-01-26 · map[name:Jose Castrillo]

How to create a docker-compose.service

Here are the steps I made to set a service into my Fedora server to start/stop my Docker-compose (Wikijs) Why I decided to use a docker-compose into a Linux VM machine? —> for make it more stable, faster,portable, isolated, etc. First I stared using Docker for Windows and it was a little bit unstable and not quite easy to handled, so when I switched to Docker compose into a Fedora VM and in that point it was a huge different(I do not recommend to use Docker in Windows); I use a Vmware hypervisor ( in the office we use it ). ...

2019-09-08 · map[name:Jose Castrillo]

Backup your Wikijs DB

This is a little resume of how I’m doing a backup procedure of my wikijs database based in Docker-compose. Below are the systems used in my enviroment: Project: Wikijs 2.0 Beta Platform: Docker-Compose DB: Postgres (9.6.14) Server: Fedora Server 30.x86_64 Workstation: Windows 10 (provided by work) 😬 PSQL basic commands: Here are 4 basic commands I use to connect into my Postgre DB and check out DB list and quite. $psql -h localhost -p 5416 -U <my-user> -d <my-database> ...

2019-07-15 · map[name:Jose Castrillo]

Disable live-restore to run Docker Swarm

The following instruction is a solution when you got an error response with live-restore using Docker Swarm in Fedora 28 or highter $ docker swarm init Error response from daemon: --live-restore daemon configuration is incompatible with swarm mode That’s not possible to enable Live-restore and Swarm-mode together. First make sure that the SElinux is Permissive or Disabled. $ sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: targeted Current mode: permissive Mode from config file: enforcing Policy MLS status: enabled Policy deny_unknown status: allowed Memory protection checking: actual (secure) Max kernel policy version: 31 Then remove the –live-restore line from the /etc/sysconfig/docker ...

2019-03-28 · map[name:Jose Castrillo]

Pulling Mysql using Docker Hub into Linux workstation

$ systemctl start docker $ systemctl status docker $ docker pull mysql $ docker image ls $ docker run --name db -e MYSQL_ROOT_PASSWORD=mysql123 -d mysql Use the docker exec -it command to start a mysql client inside the Docker container you have started, like the following: $ docker exec -it db mysql -uroot -p

2019-03-28 · map[name:Jose Castrillo]