Skip to content

Commit 2f30843

Browse files
committed
build(docker): remove obsolete development build tooling
- Remove hot reload and development targets based on air - Remove Docker build and run targets and related phony declarations Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent 1b551cb commit 2f30843

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

Makefile

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,6 @@ build: $(EXECUTABLE)
2323
$(EXECUTABLE): $(GOFILES)
2424
$(GO) build -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)' -o bin/$@ .
2525

26-
## air: Install air for hot reload.
27-
air:
28-
@hash air > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
29-
$(GO) install github.com/air-verse/air@latest; \
30-
fi
31-
32-
## dev: Run the application with hot reload.
33-
dev: air
34-
air
35-
3626
## install: install the authgate binary
3727
install: $(GOFILES)
3828
$(GO) install -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)'
@@ -74,9 +64,7 @@ rebuild: clean build
7464

7565
.PHONY: help build install test coverage fmt lint clean rebuild
7666
.PHONY: build_linux_amd64 build_linux_arm64
77-
.PHONY: air dev
7867
.PHONY: install-golangci-lint mod-download mod-tidy mod-verify check-tools version
79-
.PHONY: docker-build docker-run
8068

8169
## help: print this help message
8270
help:
@@ -106,11 +94,4 @@ version:
10694
@echo "Commit: $(COMMIT)"
10795
@echo "Go Version: $(shell $(GO) version)"
10896

109-
## docker-build: build docker image
110-
docker-build:
111-
docker build -t authgate:$(VERSION) -f Dockerfile .
112-
113-
## docker-run: run docker container
114-
docker-run:
115-
docker run -p 8080:8080 --env-file .env authgate:$(VERSION)
11697

0 commit comments

Comments
 (0)