From 6f6043b4795f9ddecaba3f6d1c90df2fb4028b17 Mon Sep 17 00:00:00 2001 From: Thien Tran Date: Fri, 8 Dec 2017 09:39:33 +0700 Subject: [PATCH 1/2] Update small docker --- docker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker.md b/docker.md index 54cc2f3..7b34786 100644 --- a/docker.md +++ b/docker.md @@ -18,7 +18,7 @@ To build an image from a source repository, create a description file called Doc Then call docker build with the path of your source repository as the argument (for example .). But with something config the above we make it to scripts file run.sh(Linux/Unix) and run.bat(Window), so you just to running following the command below: ``` -cd phanbook && chmod +x run.sh && ./run.sh +cd phanbook && chmod +x run.sh && ./run.sh build ``` After that waiting a few minute to pull some image docker and it will create some conatiner. Finaly you need install vendor and database just with command below: From 113d2854e5cbc348152f1a755995260f9b44bd85 Mon Sep 17 00:00:00 2001 From: Thien Date: Sat, 9 Dec 2017 12:49:02 +0700 Subject: [PATCH 2/2] Fix small misspellings --- docker.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/docker.md b/docker.md index 7b34786..e08cb40 100644 --- a/docker.md +++ b/docker.md @@ -13,14 +13,14 @@ This will create a directory called phanbook. If you wish, you can rename it to ## Build the project -To build an image from a source repository, create a description file called Dockerfile at the root of your repository. This file will describe the steps to assemble the image. +To build an image from a source repository. Because phanbook use a lot of images from Phalcon Compose so that you can take a look [phalcon-compose](https://github.com/phalcon/phalcon-compose) -Then call docker build with the path of your source repository as the argument (for example .). But with something config the above we make it to scripts file run.sh(Linux/Unix) and run.bat(Window), so you just to running following the command below: +Then call docker build with the path of your source repository as the argument. But with something config the above we make it to scripts file run.sh(Linux/Unix) and run.bat(Window), so you just to running following the command below: ``` cd phanbook && chmod +x run.sh && ./run.sh build ``` -After that waiting a few minute to pull some image docker and it will create some conatiner. Finaly you need install vendor and database just with command below: +After that waiting a few minute to pull some image docker and it will create some container. Finaly you need install vendor and database just with command below: ``` ./run.sh composer @@ -30,7 +30,7 @@ After that waiting a few minute to pull some image docker and it will create som Which defauts password mysql is ```secret``` if you want to change password fo mysql just to open ```opsfile/docker/.env``` file then edit the password you want to used it -## Get your Droplet’s IP address +## Get your IP address You can run the following command to reveal your server’s IP address. @@ -40,7 +40,4 @@ ifconfig eth0 | grep inet | awk '{ print $2 }' //45.55.32.209 Finish up by visiting your app page (make sure you replace the example ip address with your correct one): http://45.55.32.209. It should look similar to this: -![](/img/docker-demo.png) - - -If you get something wrong username and password. Just to open ```phanbook/.env``` file and edit it +If you are get something wrong username or password. Just to open ```phanbook/.env``` file and editing it.