build_and_run.sh 575 B

1234567891011121314151617181920212223
  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. docker run \
  10. -p 8080:80 \
  11. -p 4430:443 \
  12. -p $SSH_DEFAULT_PORT:22 \
  13. -p $AVLS_DAEMON_PORT:$AVLS_DAEMON_PORT \
  14. -p $PASSDB_DAEMON_PORT:$PASSDB_DAEMON_PORT \
  15. -p $BILLDB_DAEMON_PORT:$BILLDB_DAEMON_PORT \
  16. -p $HELLO_DAEMON_PORT:$HELLO_DAEMON_PORT \
  17. -p $UPDATE_DAEMON_PORT:$UPDATE_DAEMON_PORT \
  18. -t -d popufare
  19. docker ps