Skip to content

kmsheng/ketaka-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ketaka Docker

Prerequisite

  • docker - Read docker installation guide in doc/ and install it. ( osx / ubuntu )
  • ksana-cli
sudo npm install -g ksana-cli

Installation

  • 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 )

Start Ketaka Web Server

Create nginx/php5-fpm container

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

Create pouchdb container

cd pouchdb/
docker run --name pouchdb -v "$PWD/database:/database" -p 5984:5984 -d kmsheng/pouchdb:0.0.1

Q & A

  • 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

Useful Links

Contact

About

🖥 ketaka docker integration

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published