Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Use deploy directory as working directory
- parent_path=$( cd "$(dirname "${BASH_SOURCE}")" ; pwd -P )
- cd "$parent_path"
- # halt on any error
- # set -e
- build() {
- docker build -t pomodoro-slack ..
- }
- run() {
- docker run --rm -ti \
- -e ENV=development \
- -v $(pwd):/app \
- -w /app \
- -p 80:80 \
- pomodoro-slack "$@"
- }
- bash() {
- run bash
- }
- continue() {
- read -p "Press [Enter] key to continue..." key
- }
- while :
- do
- clear
- echo "---------------------------------"
- echo " M A I N - M E N U"
- echo "---------------------------------"
- echo '1. build'
- echo '2. bash'
- echo '0. exit'
- echo "---------------------------------"
- read -r -p "Enter your choice: " option
- case ${option} in
- 1) build
- continue;;
- 2) bash
- continue;;
- 0) break;;
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement