File tree Expand file tree Collapse file tree 3 files changed +20
-16
lines changed Expand file tree Collapse file tree 3 files changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ XGO_VERSION := go-1.14.x
30
30
MIN_GO_VERSION := 001012000
31
31
MIN_NODE_VERSION := 010013000
32
32
33
+ DOCKER_IMAGE ?= gitea/gitea
34
+ DOCKER_TAG ?= latest
35
+ DOCKER_REF := $(DOCKER_IMAGE ) :$(DOCKER_TAG )
36
+
33
37
ifeq ($(HAS_GO ) , GO)
34
38
GOPATH ?= $(shell $(GO) env GOPATH)
35
39
export PATH := $(GOPATH)/bin:$(PATH)
@@ -144,8 +148,6 @@ TEST_MSSQL_PASSWORD ?= MwantsaSecurePassword1
144
148
.PHONY : all
145
149
all : build
146
150
147
- include docker/Makefile
148
-
149
151
.PHONY : help
150
152
help :
151
153
@echo " Make Routines:"
@@ -686,5 +688,14 @@ golangci-lint:
686
688
fi
687
689
golangci-lint run --timeout 5m
688
690
691
+ .PHONY : docker
692
+ docker :
693
+ docker build --disable-content-trust=false -t $(DOCKER_REF ) .
694
+ # support also build args docker build --build-arg GITEA_VERSION=v1.2.3 --build-arg TAGS="bindata sqlite sqlite_unlock_notify" .
695
+
696
+ .PHONY : docker-build
697
+ docker-build :
698
+ docker run -ti --rm -v $(CURDIR ) :/srv/app/src/code.gitea.io/gitea -w /srv/app/src/code.gitea.io/gitea -e TAGS=" bindata $( TAGS) " LDFLAGS=" $( LDFLAGS) " CGO_EXTRA_CFLAGS=" $( CGO_EXTRA_CFLAGS) " webhippie/golang:edge make clean build
699
+
689
700
# This endif closes the if at the top of the file
690
701
endif
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # Gitea - Docker
2
+
3
+ Dockefile is found in root of repository.
4
+
5
+ Docker image can be found on [ docker hub] ( https://hub.docker.com/r/gitea/gitea )
6
+
7
+ Documentation on using docker image can be found on [ Gitea Docs site] ( https://docs.gitea.io/en-us/install-with-docker/ )
You can’t perform that action at this time.
0 commit comments