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.
 
 

22 lines
447 B

  1. #!/bin/bash
  2. docker_image="adhoczone/replicant-buildstage"
  3. source_directory="$PWD/source"
  4. output_directory="$PWD/out"
  5. if [[ "$1" == "attach" ]]; then
  6. exec docker run --rm -it \
  7. -v "$source_directory:/build" \
  8. -v "$output_directory:/build/out" \
  9. --entrypoint "/bin/bash" \
  10. "$docker_image"
  11. exit 0
  12. fi
  13. exec docker run --rm -it \
  14. -v "$source_directory:/build" \
  15. -v "$output_directory:/build/out" \
  16. "$docker_image" \
  17. "$@"