sudo npm install -g ksana-cli
- This repo should be cloned in /Users if you're OSX user.
git submodule init
git submodule update
cd nginx-php5/ketaka/
npm install
ks server # press ctrl + c to stop ks server, this creates bundle.js and bundle.js.map
- Replace kangyur_images/ folder in nginx-php5/ ( the real one should have more than 5G in size )
- Put jiangkangyur.kdb in nginx-php5/ketaka/
- Put database folder in pouchdb/database/ ( was in /usr/local/Cellar/nginx/x.x.x/html/ketaka/database according to this )
Note: if you are using boot2docker, the web server ip will be boot2docker's ip, not localhost.
cd nginx-php5/
docker run --name web -v "$PWD:/usr/share/nginx/html" \
-v "$PWD/nginx.conf:/etc/nginx/nginx.conf" -v "$PWD/www.conf:/etc/php5/fpm/pool.d/www.conf" \
-p 80:80 -d kmsheng/nginx-php5:0.0.1
cd pouchdb/
docker run --name pouchdb -v "$PWD/database:/database" -p 5984:5984 -d kmsheng/pouchdb:0.0.1
- What I do with the ip certification issue in osx ?
- Run Vertualbox
- Right click boot2docker-vm
- Click close - power off
- Run "boot2docker up" in terminal
- Official Docker Mac Installation Guide
- Official Nginx Image
- Official Ubuntu Image
- Best practices for writing Dockerfiles
- How to Use Docker on OS X: The Missing Guide
- Use docker without sudo in ubuntu
- Linking containers together
- AshWu's Docker Articles
- 盛貫銘 kmsh3ng@gmail.com