Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
softcoder authored Mar 25, 2024
1 parent 5a18bb0 commit 2efe967
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -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 <container name from previous step> /bin/bash
sudo docker ps (this will show you the name of the running container)
sudo docker exec -it <container name from previous step> /bin/bash

# To login to your hub.docker.com account
sudo docker login
Expand All @@ -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
Expand All @@ -42,7 +42,7 @@ Value: mysql:unix_socket=/cloudsql/<your instance connection name>;dbname=riprun
Name: APP_GOOGLE_MAP_API_KEY
Value: <your api key>

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)

Expand Down

0 comments on commit 2efe967

Please sign in to comment.