I'm performing security testing on PHP source-code. The functionality of the script highly depends on the underlying infrastructure since it has optimizations for Linux, OSx and Windows as well as PHP 5.x, PHP 7.x, MySQL 4.x and 5.x. Also there is a possibility to use a different database back-end like SQLite.
I wrote some good tests in order to test specific functionality. And I want to reuse that test and automatically run my tests in the different environments. I would like to use Docker for that. But I'm quite new to Docker. Although I'm pretty handy in Bash scripting. I did some research into existing containers and possibilities. But it seems there is no easy way to get the desired containers.
Let's for now forget about OSx and Windows, and focus on Linux only. To make things easier. In my ideal scenario I start up a few docker containers each on it's own port, running the same software on a different infrastructure, like:
- Linux, Apache 2.x, PHP 5.x, MySQL 4.x
- Linux, Apache 2.x, PHP 5.x, MySQL 5.x
- Linux, Apache 2.x, PHP 7.x, MySQL 4.x (if even possible)
- Linux, Apache 2.x, PHP 7.x, MySQL 5.x
- Linux, Apache 2.x, PHP 5.x, SQLite
- Linux, Apache 2.x, PHP 7.x, SQLite
Preferably with a lightweight Linux distro such as Arch or Alpine.
I just finished some successful testing with Ubuntu as a distro but before I go into scripting all these Docker images myself I wondered if there is no easier solution to get this up and running.
Is there an easier way to test PHP source-code on multi-platforms using Docker images?
Aucun commentaire:
Enregistrer un commentaire