Skip to content

Commit 50f50e6

Browse files
committed
v2
1 parent a029209 commit 50f50e6

27 files changed

+837
-1847
lines changed

.air.toml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
root = "."
2+
testdata_dir = "testdata"
3+
tmp_dir = "tmp"
4+
5+
[build]
6+
args_bin = []
7+
bin = "./tmp/main"
8+
cmd = "go build -o ./tmp/main ."
9+
delay = 1000
10+
exclude_dir = ["assets", "tmp", "vendor", "testdata", "db", "output"]
11+
exclude_file = []
12+
exclude_regex = ["_test.go"]
13+
exclude_unchanged = false
14+
follow_symlink = false
15+
full_bin = ""
16+
include_dir = []
17+
include_ext = ["go", "tpl", "tmpl", "html"]
18+
include_file = []
19+
kill_delay = "0s"
20+
log = "build-errors.log"
21+
poll = false
22+
poll_interval = 0
23+
post_cmd = []
24+
pre_cmd = []
25+
rerun = false
26+
rerun_delay = 500
27+
send_interrupt = false
28+
stop_on_error = false
29+
30+
[color]
31+
app = ""
32+
build = "yellow"
33+
main = "magenta"
34+
runner = "green"
35+
watcher = "cyan"
36+
37+
[log]
38+
main_only = false
39+
time = false
40+
41+
[misc]
42+
clean_on_exit = false
43+
44+
[proxy]
45+
app_port = 0
46+
enabled = false
47+
proxy_port = 0
48+
49+
[screen]
50+
clear_on_rebuild = false
51+
keep_scroll = true

.dockerignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
logs
2-
metrics
1+
tmp
2+
output
3+
db/*

.github/FUNDING.yml

-2
This file was deleted.

.github/workflows/release.yml

-96
This file was deleted.

.gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
logs
2-
metrics
1+
tmp
2+
output
3+
db/*

Dockerfile

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1-
FROM golang:1.22-alpine3.19 AS build
1+
FROM golang:1.23 AS deps
22

33
WORKDIR /app
44
COPY go.mod go.sum ./
55
RUN go mod download
6+
7+
FROM golang:1.23 AS build
8+
9+
WORKDIR /app
10+
COPY --from=deps /go/pkg/mod /go/pkg/mod
611
COPY . .
7-
ENV CGO_ENABLED=0
8-
ENV GOOS=linux
9-
ENV GOARCH=amd64
10-
RUN go build -o /app/bin/sentinel ./cmd/sentinel
12+
RUN apt-get update && apt-get install -y gcc g++
13+
ENV CGO_ENABLED=1 \
14+
GOOS=linux \
15+
GOARCH=amd64
16+
17+
RUN go build -ldflags="-s -w" -o /app/bin/sentinel ./
1118

12-
FROM alpine:3.19
13-
RUN apk add --no-cache ca-certificates curl
19+
FROM gcr.io/distroless/cc-debian11
1420
ENV GIN_MODE=release
1521
COPY --from=build /app/bin/sentinel /app/sentinel
16-
CMD ["/app/sentinel"]
22+
CMD ["/app/sentinel"]

Dockerfile.arm64

-16
This file was deleted.

0 commit comments

Comments
 (0)