<commit_before>## Features:

 * Meteor 1.x package/bundle support
 * Git-based repository + branch/tag via environment variables (`REPO` and `BRANCH`)
 * Bundle URL via environment variable (`BUNDLE_URL`)
 * Bind-mount, volume, Dockerfile `ADD` via environment variable (`APP_DIR`)
 * Uses docker-linked MongoDB (i.e. `MONGO_PORT`...) or explicit setting via environment variable (`MONGO_URL`)
 * NOTE: This does NOT set `MONGO_OPLOG_URL`.  There were too many potention complications.  As a result, unless you explicitly set `MONGO_OPLOG_URL`, Meteor will fall back to a polling-based approach to database synchronization.  Note that oplog tailing requires a working replica set on your MongoDB server as well as access to the `local` database.
 * Optionally specify the port on which the web server should run (`PORT`); defaults to 80
 * Deploy-key support (set `DEPLOY_KEY` to the location of your SSH key file)
   * old `GITHUB_DEPLOY_KEY` is also supported but deprecated
 * Non-root location of Meteor tree; the script will search for the first .meteor directory
 * PhantomJS pre-installed to support `spiderable` package

## Versions:

Regardless of the version number of the tool included in this package, your application will run
on whatever version of Meteor it is configured to run under.

## Example run:

`docker run --rm -e REPO=https://github.com/yourName/testsite -e BRANCH=master -e MONGO_URL=mongodb://mymongoserver.com:27017 ulexus/meteor`

This is my first docker with meteor.<commit_msg>增加个教程<commit_after>## 前言：
做过就不难了，所以就不想写，但也是花了3天时间完成，那就服务下大众吧。然后吐槽下meteor的mup部署方式，尼玛，把老子服务器弄挂了。

## 目的:

 * 在docker上集成meteor的最简版本
 * 保持可迭代快速部署
 * 暂时只是个示例
 
## Versions:

Regardless of the version number of the tool included in this package, your application will run
on whatever version of Meteor it is configured to run under. --大体模仿镜像源第二名的版本目标

## Example run:

`docker run --rm -p 3001:3000 -e REPO=https://github.com/shanyu-e/dockmeteor.git mymeteor/meteor`

This is my first docker with meteor.

## 基本使用教程

 * 装好docker，装好逼
 * 拉取这个仓库
 * cd到本地路径，用我的这个Dockerfile新建镜像`docker build -t mymeteor/meteor  .`
 * 启动容器`docker run --rm -p 3001:3000 -e REPO=https://github.com/shanyu-e/dockmeteor.git mymeteor/meteor`,REPO填你自己的git仓库
 * 可以打开浏览器测试了，尼玛，docker万岁！
 
## 尾声

 进新公司后，突然接触到好多salt什么的高精度化的部署方式，和自己一个人瞎闹腾还是区别很大，然后又不想学salt，果断邂逅docker，从此过上幸福生活。附赠几个自己写的好用命令：
 
 * 删除空白的镜像：`docker rmi -f $(docker images | awk '/none/ { print $3 }')`
 * 停止正在运行的容器`docker stop $(docker ps | awk '{print $1}'|awk 'NR==2')`
{'fraction_non_alphanumeric': 0.09664536741214058, 'fraction_numerical': 0.011182108626198083, 'mean_word_length': 4.771889400921659, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '994697', 'n_tokens_mistral': 1069, 'n_tokens_neox': 1037, 'n_words': 281}