You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
279 B

3 years ago
  1. #!/bin/bash
  2. trap "cd '..'" TERM INT
  3. # run docker-container
  4. run() {
  5. cd "compose" && \
  6. docker-compose build --no-cache deb-rust && \
  7. docker-compose up && \
  8. }
  9. run
  10. #to do:
  11. # ctrl-c(sigint):
  12. # stop and remove container(with custom message)
  13. # cd ..