Skip to content

Commit

Permalink
- updated docker iamge to properly work with customized views
Browse files Browse the repository at this point in the history
  • Loading branch information
softcoder committed Apr 5, 2024
1 parent d6ba4e1 commit f07a5bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion docker/2204/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ ADD /*.php /app/
ADD /*.json /app/
ADD /*.lock /app/
ADD /*.xml /app/
ADD /*.lock /app/
ADD /*.sql /app/
ADD /.check_version /app/
ADD /.htaccess /app/
Expand Down
8 changes: 6 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ riprunner is a docker image that include the Docker-Lamp baseimage (Ubuntu 22.04
sudo docker build -t=softcoder/riprunner:latest -f ./docker/2204/Dockerfile .

# To run the docker image
sudo docker run -p "80:80" -v ${PWD}/mysql:/var/lib/mysql softcoder/riprunner:latest
sudo docker run -p "80:80" -v ${PWD}/mysql:/var/lib/mysql softcoder/riprunner:latest

# To run the docker image with some customized views that you have located on the
# local host folder named views-custom
sudo docker run -p "80:80" -v ${PWD}/mysql:/var/lib/mysql -v ${PWD}/views-custom:/app/views-custom softcoder/riprunner:latest

# To connect to the running the docker image
sudo docker ps (this will show you the name of the running container)
sudo docker exec -it <container name from previous step> /bin/bash
sudo docker exec -it {container name from previous step} /bin/bash

# To login to your hub.docker.com account
sudo docker login
Expand Down
4 changes: 0 additions & 4 deletions docker/app/views-custom/.gitignore

This file was deleted.

0 comments on commit f07a5bd

Please sign in to comment.