RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ docker exec -i mysql_container mysqldump -uroot -proot --databases database_name --skip-comments > /path/to/my/dump.sql- This will generate a
dump.sqlfile in your host machine. Awesome, eh? - Avoid using
--compacton your dump. This will make MySQL check your constraints which will cause troubles when reading your file (damm you MySQL). And don't use--forceto fix this scenario: recreate your dump without--compact¯_(ツ)_/¯
The following are instructions for running scheduled tasks defined in a Laravel project on Windows. The Laravel documentation provides instructions for running scheduled tasks using cron jobs on Linux systems. However, cron jobs are not available on Windows. The built-in Windows Task Scheduler can be used to run scheduled tasks instead.
- Open Task Scheduler
- Select Create Task...
- Give the task a name and description
- To run the task in the background, select Run whether the user is logged on or not and check the Hidden checkbox.