summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2016-12-15 10:16:55 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2016-12-15 17:16:55 +0800
commitc6b6a61bf1feee6f735b74694a96e8a21c6b673d (patch)
tree69b9fab521a8b236afc6c0f8bafab8734c5c5e51 /Makefile
parent1831ee2d1d22596c3c697c11073e84be61ce5c5d (diff)
downloadgitea-c6b6a61bf1feee6f735b74694a96e8a21c6b673d.tar.gz
gitea-c6b6a61bf1feee6f735b74694a96e8a21c6b673d.zip
Fixing multiple docker issues (#386)
* Added stupid docker task to makefile * Dropped unknown option PrintLastLog from docker ssh config * OpenSSH should log to docker stdout * Set random pw for docker git user, otherwise it is locked * Stop using templates and public within docker
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ae049d0086..bc6c05c323 100644
--- a/Makefile
+++ b/Makefile
@@ -91,6 +91,11 @@ build: $(EXECUTABLE)
$(EXECUTABLE): $(SOURCES)
go build -v -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@
+.PHONY: docker
+docker:
+ docker run -ti --rm -v $(CURDIR):/srv/app/src/code.gitea.io/gitea -w /srv/app/src/code.gitea.io/gitea -e TAGS="$(TAGS)" webhippie/golang:edge make clean generate build
+ docker build -t gitea/gitea:latest .
+
.PHONY: release
release: release-dirs release-build release-copy release-check