run_interactive.sh 635 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. export SSH_DEFAULT_PORT="6055"
  3. export AVLS_DAEMON_PORT="2857"
  4. export PASSDB_DAEMON_PORT="7277"
  5. export BILLDB_DAEMON_PORT="2455"
  6. export HELLO_DAEMON_PORT="3556"
  7. export UPDATE_DAEMON_PORT="8377"
  8. #docker build --no-cache -t popufare .
  9. ## for interactive debugging...
  10. ##
  11. docker run \
  12. -p 8080:80 \
  13. -p 4430:443 \
  14. -p $SSH_DEFAULT_PORT:22 \
  15. -p $AVLS_DAEMON_PORT:$AVLS_DAEMON_PORT \
  16. -p $PASSDB_DAEMON_PORT:$PASSDB_DAEMON_PORT \
  17. -p $BILLDB_DAEMON_PORT:$BILLDB_DAEMON_PORT \
  18. -p $HELLO_DAEMON_PORT:$HELLO_DAEMON_PORT \
  19. -p $UPDATE_DAEMON_PORT:$UPDATE_DAEMON_PORT \
  20. --net=host -it popufare \
  21. bash -c " su - bus "