Microsheep

MicroSheep's page

Rummaging IT fields since the 8-bits personal computers era.

1-Minute Read

Despite remarkable efforts by the community, like the Homestead Vagrant prepackaged virtual machine setting a development environement to code with Laravel has never been the easiest thing in life.

It was before Kool. The tool is based on containers and deploys just what is needed to develop. The resulting environment is directly usable in the file system of your computer and actions are performed using a single kool command.

Kool is pre configured to deploy environments for popular CMS (Wordpress, Hugo) and development tools like NodeJs, Symfony … and Laravel

So, everything is fine? Almost. Deployment of Laravel environment partly fails with current version (1.13.0) of kool: MySQL or MariaDB is not started because password arguments are not passed at installation. There is however a workaround: after creating your environment with kool create laravel my_environment and before creation of container with kool run setup command, you have to manually edit the ‘docker_compose.yml’ file to add password et voilà ! Here is the configuration snippet:

database:
  image: mariadb:10.5
  ports:
  - ${KOOL_DATABASE_PORT:-3306}:3306
  environment:
    MARIADB_ROOT_PASSWORD: root # Added here instead of ${DB_PASSWORD-rootpass}
    MARIADB_DATABASE: ${DB_DATABASE-database}
    MARIADB_USER: laravel # Added here instead of ${DB_USERNAME-user}
    MARIADB_PASSWORD: ${DB_PASSWORD-pass}
    MARIADB_ALLOW_EMPTY_PASSWORD: "yes"

I’ve entered an issue on the problem. Therefore stay tuned … and keep kool!

Recent Posts

Categories

About

What can we find here?