diff options
author | Thomas Boerger <thomas@webhippie.de> | 2016-12-15 10:16:55 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2016-12-15 17:16:55 +0800 |
commit | c6b6a61bf1feee6f735b74694a96e8a21c6b673d (patch) | |
tree | 69b9fab521a8b236afc6c0f8bafab8734c5c5e51 /Makefile | |
parent | 1831ee2d1d22596c3c697c11073e84be61ce5c5d (diff) | |
download | gitea-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-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |