diff --git a/docker/README.md b/docker/README.md index 813f0f59..d0dac92d 100644 --- a/docker/README.md +++ b/docker/README.md @@ -1,16 +1,16 @@ -riprunner is a docker image that include the Docker-Lamp baseimage (Ubuntu 18.04), along with a LAMP stack ([Apache][apache], [MySQL][mysql] and [PHP][php]) all in one handy package. +riprunner is a docker image that include the Docker-Lamp baseimage (Ubuntu 22.04), along with a LAMP stack ([Apache][apache], [MySQL][mysql] and [PHP][php]) all in one handy package. -1. With Ubuntu **18.04** image on the `latest-1804`, riprunner is ready to test the Rip Runner communication suite. +1. With Ubuntu **22.04** image on the `latest-2204`, riprunner is ready to test the Rip Runner communication suite. # To build a new docker image -sudo docker build -t=softcoder/riprunner:latest -f ./1804/Dockerfile . +sudo docker build -t=softcoder/riprunner:latest -f ./2204/Dockerfile . # To run the docker image sudo docker run -p "80:80" -v ${PWD}/app:/app -v ${PWD}/mysql:/var/lib/mysql softcoder/riprunner:latest # To connect to the running the docker image -sudo docker ps (this will show yo uthe name of the running container) -sudo docker exec -it /bin/bash +sudo docker ps (this will show you the name of the running container) +sudo docker exec -it /bin/bash # To login to your hub.docker.com account sudo docker login @@ -30,10 +30,10 @@ db password: riprunner 2. Google Cloud Run: -There is a seperate Dockerfile for deploying to Google's Serverless Cloud Run platform. +There is a separate Dockerfile for deploying to Google's Serverless Cloud Run platform. The Dockerfile is located in the app folder. The docker image produced does not include a db engine it is assumed you have setup Google Cloud SQL (MySQL). In your cloud run service, ensure the live -revision has the following environment varialbes set to connect to your environment: +revision has the following environment variables set to connect to your environment: Environment variables Name: APP_DSN @@ -42,7 +42,7 @@ Value: mysql:unix_socket=/cloudsql/;dbname=riprun Name: APP_GOOGLE_MAP_API_KEY Value: -To see more variables look in the config.php file in the dcoker/app folder +To see more variables look in the config.php file in the docker/app folder Open a terminal and navigate into the 'docker/app' folder (make sure NOT to run from the docker folder)