Skip to content

Instantly share code, notes, and snippets.

@bilby91
Last active March 12, 2018 22:44
Show Gist options
  • Save bilby91/b807eb3e6c800b2dfd1d871a6c392b73 to your computer and use it in GitHub Desktop.
Save bilby91/b807eb3e6c800b2dfd1d871a6c392b73 to your computer and use it in GitHub Desktop.
#!/bin/bash
case "$1" in
server)
docker-compose -f docker/docker-compose.yml run --rm -p 8080:8080 yarn start
;;
build)
docker-compose -f docker/docker-compose.yml run --rm app yarn build
;;
test)
docker-compose -f docker/docker-compose.yml run --rm app yarn test
;;
bash)
docker-compose -f docker/docker-compose.yml run --rm -p 8080:8080 server /bin/bash
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment