Improving Performance of PHP Drupal sites - Part I
I have the fortune and the misfortune of having to scale my Drupal site immediately. It's getting more traffic than I can currently accommodate - and so the next scaling steps have to be taken.
How I set up the docker image with systemd and sshd
For testing ansible roles, I need a docker container that runs systemd or init - a container in which services can be enabled. I also need this container to be accessible via ssh. This way, I don't have to spin up cloud resources (which are not free) in order to test doing something on a remote.
How to setup test-driven development with Molecule in Ansible
Molecule is a testing framework designed for Ansible roles, collections, and playbooks. In the Ansible ecosystem, it provides a structured workflow to develop and verify infrastructure as code.
An example of NAT routing in docker-compose
This is an example of setting up a NAT inside docker - in a fairly self-explanatory and minimal way. There are three examples that you can run in this setup: a positive example, a negative example, and a chatty positive example for debugging and demonstration purposes.
[FIXED]: Table is marked as crashed and should be repaired
Running this worked for me:
mysqlcheck --repair --all-databasesYou may need to add your credentials and hostname to the command.