Skip to content

Instantly share code, notes, and snippets.

@rgarcia
Last active August 29, 2015 14:27
Show Gist options
  • Save rgarcia/d01e7c63a951975db5b9 to your computer and use it in GitHub Desktop.
Save rgarcia/d01e7c63a951975db5b9 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
proc=-1
while true; do
if [ "$proc" -ne "-1"]; then
kill -9 $proc
fi
make build
make run &
proc=$!
inotifywait -qre close_write .
done
.PHONY: build run local-dev
build: $(wildcard ./**/*)
docker build -t myimage .
run:
docker run myimage
local-dev:
./local-dev.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment