Skip to content

Commit

Permalink
Move Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alexazhou committed May 26, 2016
1 parent ca88495 commit 9deb326
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 22 deletions.
File renamed without changes.
25 changes: 14 additions & 11 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,6 @@ This configuration file add three `include` command to embeded verynginx into or
```

### Using docker to have a quick glance

After cloning code to your local filesystem, you can run the following commands:

```bash
docker build -t verynginx .
docker run verynginx
```
Then you can navigate to your browser `http://localhost/VeryNginx/index.html`

Optionally you can run `docker run -p xxxx:80 verynginx` to map your container port 80 to your host's xxxx port

### Configure VeryNginx on dashboard

Expand Down Expand Up @@ -192,6 +181,20 @@ python install.py update openresty

install.py will keep the old config.json and nginx.conf during update. So that you **will not lost configuration** after update.

### Build VeryNginx docker Image

After cloning code to your local filesystem, you can run the following commands:

```
cd Docker
docker build -t verynginx .
docker run verynginx
```

Then you can navigate to your browser `http://{{your_machine_address}}/VeryNginx/index.html`

Optionally you can run `docker run -p xxxx:80 verynginx` to map your container port 80 to your host's xxxx port



## Thanks
Expand Down
25 changes: 14 additions & 11 deletions readme_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,6 @@ VeryNginx 的配置文件位置为 **/opt/verynginx/openresty/nginx/conf/nginx.c
/opt/verynginx/openresty/nginx/sbin/nginx -s reload
```

### 使用docker来快速搭建一个verynginx预览环境

在将代码clone到本地之后,你可以运行下面的命令:

```bash
docker build -t verynginx .
docker run verynginx
```
然后用浏览器打开 `http://localhost/VeryNginx/index.html`

当然你也可以运行 `docker run -p xxxx:80 verynginx` 来映射一下你的container的端口到你的宿主机,默认是80,你可以把xxxx改成你希望的在宿主机上的端口号

###通过web面板对 VeryNginx 进行配置

Expand Down Expand Up @@ -193,6 +182,20 @@ python install.py update openresty

install.py脚本在升级过程中,将保留原有的 config.json 和 nginx.conf, 所以**更新的过程并不会丢失配置**

## 构建VeryNginx docker 镜像

在将代码clone到本地之后,你可以运行下面的命令:

```
cd Docker
docker build -t verynginx .
docker run verynginx
```
然后用浏览器打开 `http://{{your_machine_address}}/verynginx/index.html`

当然你也可以运行 `docker run -p xxxx:80 verynginx` 来映射一下你的container的端口到你的宿主机,默认是80,你可以把xxxx改成你希望的在宿主机上的端口号



## 致谢

Expand Down

0 comments on commit 9deb326

Please sign in to comment.