The KBase service template repo provides a new service code template using AWE, Shock, Workspace and your personal scripts.
- cd ~; git clone https://github.com/sjyoo/service_template; cd service_template
- Set environment variables
- export SERVICE_NAME=MyNewService
- export SERVICE_PORT=9999 (Register at https://trac.kbase.us/projects/kbase/wiki/IntegrationTargets)
- make
- cd /kb/dev_container
- make; make deploy
- cd YOUR_SERVICE_TEMPLATE
- make deploy_config
- start services
- . /kb/deployment/user-env.sh; mkdir -p /mnt/mongo; mongod --dbpath=/mnt/mongo
- /kb/deployment/services/shock_service/start_service
- cat /kb/dev_container/modules/handle_service/hsi.sql | mysql
- /kb/deployment/services/handle_service/start_service
- /kb/deployment/services/handle_mngr/start_service
- /kb/deployment/services/workspace/start_service (Requires /kb/dev_container/modules/workspace_deluxe/administration/initialize.py)
- /kb/deployment/services/awe_service/start_service
- /kb/deployment/services/awe_service/start_aweclient
- /kb/deployment/services/userandjobstate/start_service
- Add your scripts in your /kb/dev_container/modules/$SERVICE_NAME/scripts and update your script configurations (refer Service Configuration)
- Add your code into repo
- cd /kb/dev_container/modules/$SERVICE_NAME/
- git init
- git add *
- git commit -m "first commit"
- git remote add origin https://github.com/kbase/your_repo_name.git
- git push -u origin master
Will add a google doc later