Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Currently Panda-dev was deployed on ncrb
- - cd /home/dxxxwxx/
- - copy the 'panda' folder to your own directory
- - dive to your dir:path/panda/panda-dev, and test with the following commands
- ## Developement
- - you can change the environment variables in `.env.sh`,
- ```
- # Core external configuration for Rafiki
- export ADMIN_EXT_PORT=[portNumberXXX0]
- export WEB_ADMIN_EXT_PORT=[portNumberXXX1]
- # Docker images for Rafiki's custom components
- export RAFIKI_IMAGE_ADMIN=[yourinstancename]/rafiki_admin
- export RAFIKI_IMAGE_WEB_ADMIN=[yourinstancename]/rafiki_admin_web
- export RAFIKI_IMAGE_WORKER=[yourinstancename]/rafiki_worker
- export RAFIKI_IMAGE_PREDICTOR=[yourinstancename]/rafiki_predictorby
- ```
- - and before running any individual scripts, make sure to run the shell configuration script
- ```
- source .env.sh
- ```
- - build images on each participating node (build images each time after you edit the code )
- ```
- bash scripts/build_images.sh
- ```
- - stop your instance
- ```
- bash scripts/stop_images.sh
- ```
- - purge all data (since there might be database schema changes):
- ```
- bash scripts/clean.sh
- ```
- - before you can start a new rafiki instance (container) or stop one by
- ```
- bash scripts/start.sh
- bash scripts/stop.sh
- ```
- ## How to create a ssh-tunnel
- - return to ncrs, then do the port forwording
- ```
- ssh -N -f -L ncrs.d2.comp.nus.edu.sg:[portNumberXXX0]:localhost:[portNumberXXX0] yourname@ncrb
- ssh -N -f -L ncrs.d2.comp.nus.edu.sg:[portNumberXXX1]:localhost:[portNumberXXX1] yourname@ncrb
- ```
- - this part should be align with .env.sh file
- - in your web browser, go to ncrs.d2.comp.nus.sg:XXX0 and ncrs.d2.comp.nus/sg:XXX1 for testing.
- - use this info to login:
- ```
- superadmin@rafiki
- rafiki
- ```
- ## bash into a docker
- ```
- docker exec -it [container_name] /bin/sh
- ```
- or
- ```
- docker exec -it [container_name] /bin/bash
- ```
- There should be two containers once you bash scripts/start.sh: rafiki_admin_web & rafiki_admin
- if not, use the this line to view the bug details:
- ```
- vim logs/start_admin.log
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement