- Download and install Docker (container based app deployment) from here.
- Obtain the Git repo,
git clone https://github.com/thee-engineer/dinen.git dinen
- Go to the Dinen Git repository on your machine
cd path/to/dinen
andgit pull
the latest version- Then switch to the new Docker branch
git checkout docker
- Run
git branch
and make sure the output saysdocker
- Run
- Then switch to the new Docker branch
- Make sure Docker Daemon is running!
- Inside the
path/to/dinen
repo, there should be a executable calledmake
- Execute it
./make
, this should create the Dinen Docker Image- If any errors occur during compilation, open an Issue
- If you can't run the script, look inside it and manually tell docker to make it
- Execute it
- Make sure Docker Daemon is running!
- Inside the
path/to/dinen
repo, there should be a executable calledrun
- Execute it
./run
, this should mount the Docker Image inside a container- By default it will open port
80
to port8080
and443
to8081
- Change this by editing the
run
file and restart the container
- Change this by editing the
- Also port
3306
to8082
for the MySQL database
- By default it will open port
- Execute it
- In order to exit, type the following command
docker container list
- This will list all running container (if any).
- Each container has a hash assigned to it, like this
dab418b1d322
- In order to close a running container write
docker stop dab418b1d322
- Use the hash of your machine!
- Run
docker container list
again to make sure the container is closed
- Stopping the container did not remove the container
- In order to see dormant containers, type
docker container list -a
- Now you will see all containeres that ever existed
- Find the container you want to remove (notice it also has a name)
- In order to delete (yes it is permanent), type
docker rm dab418b1d322
- Use the hash of the container you wish to remove
- TIP: You can sometimes type only the first two chars of the hash
docker rm da
- If for any reason you want to remove the Dinen Docker Image
- Maybe it takes too much of your disk space
- Type
docker images
to list all the docker images you have downloaded/compiled - Find the image you wish to remove (should be called dinen) and copy the hash
- Then type
docker rmi a2494f524dd3
- Make sure you use the hash of the image YOU wish to remove
- Then type
- There might/should also be a
ubuntu:latest
image, remove that if you don't need it