I need a docker script made for a project I am working on.
The script will setup a lamp environment with the following:
- Ubuntu 20.04
- Apache2 version 2.4.52 (or newer)
- MariaDb version 10.6.5 (or newer)
- PHP 8.1 (latest patch)
The required ubuntu packages are: sudo apt install -y php8.1 php8.1-common php8.1-mysql php8.1-xml php8.1-xmlrpc php8.1-curl php8.1-cli php8.1-mbstring php8.1-bcmath unzip php8.1-zip mariadb-server mariadb-client apache2
The project folder should be as follows:
/project/
/project/src/public/[login to view URL] (hello world)
/project/docker/docker_script
- Apache needs to be configured to mount a share located on the same drive as the docker script itself, path will be: "../src/public" it should mount to /var/www/src/public/
Upon bringing the docker script up it should:
apt update && apt upgrade
When bringing up the docker image for the first time, it should also run a script in the src directory called "/src/[login to view URL]". For now, you can just have it echo to the console from the script stating that it has run.
Hi!
I've read your requirements and I can help you create a bash script or docker-compose manifest for your requirement in 2 days. Just hit me up and let's start!
Thanks