diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2016-03-24 17:20:24 +0100 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2016-03-24 17:20:24 +0100 |
commit | c710d8f7a96dbbb6d42a4afc96719216f766c833 (patch) | |
tree | b454accfabf4e55a2b86883e2887387bced851da /Makefile | |
parent | d1eb1bc18ae3840cffe6023ed1939fe2ba7fd410 (diff) |
Add Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1d50e56 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +IP=192.168.243.5 +APP=goxy +TAG=registry.moccu/${APP} + +build: + docker build --tag ${TAG} --rm --no-cache . + +push: + docker push ${TAG} + +volume: + docker volume create --name ${APP} + +network: + docker network create ${APP} + +stop: + docker stop ${APP} + docker rm ${APP} + +start: + docker run -d -v ${APP}:/go/src/dim13.org/goxy/data \ + -p ${IP}:80:80 -p ${IP}:443:443 -p ${IP}:8080:8080 \ + --name ${APP} --net ${APP} ${TAG} + +restart: stop start |