mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-05-31 23:26:16 +02:00
commit
adce1285f8
@ -1,3 +1,4 @@
|
|||||||
|
repos:
|
||||||
- repo: https://github.com/gitleaks/gitleaks
|
- repo: https://github.com/gitleaks/gitleaks
|
||||||
rev: v8.16.3
|
rev: v8.16.3
|
||||||
hooks:
|
hooks:
|
||||||
@ -10,11 +11,31 @@
|
|||||||
rev: v4.5.0
|
rev: v4.5.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: trailing-whitespace
|
exclude: |
|
||||||
- id: check-yaml
|
(?x)(
|
||||||
- id: check-symlinks
|
^env_vars/\.MYSQL |
|
||||||
- id: pretty-format-json
|
^env_vars/\.POSTGRES
|
||||||
- repo: https://github.com/asottile/setup-cfg-fmt
|
)
|
||||||
rev: v2.5.0
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.5.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: setup-cfg-fmt
|
- id: trailing-whitespace
|
||||||
|
exclude: |
|
||||||
|
(?x)(
|
||||||
|
.*\.patch$
|
||||||
|
)
|
||||||
|
- id: check-yaml
|
||||||
|
args: [--allow-multiple-documents]
|
||||||
|
- id: check-symlinks
|
||||||
|
# - id: pretty-format-json
|
||||||
|
- id: check-added-large-files
|
||||||
|
#- repo: https://github.com/adrienverge/yamllint.git
|
||||||
|
# rev: v1.21.0 # or higher tag
|
||||||
|
# hooks:
|
||||||
|
# - id: yamllint
|
||||||
|
# args: [--format, parsable, --strict]
|
||||||
|
#- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
|
||||||
|
# rev: 0.2.3
|
||||||
|
# hooks:
|
||||||
|
# - id: yamlfmt
|
||||||
|
# args: [--mapping, '2', --sequence, '1', --offset, '0', --colons, --width, '400']
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/src/go/Makefile.am b/src/go/Makefile.am
|
|
||||||
index 2dd9e84e4ea..74bc3fbb91e 100644
|
|
||||||
--- a/src/go/Makefile.am
|
|
||||||
+++ b/src/go/Makefile.am
|
|
||||||
@@ -49,7 +49,7 @@ endif
|
|
||||||
all: build
|
|
||||||
|
|
||||||
zabbix.com/cmd/zabbix_agent2:
|
|
||||||
- CGO_CFLAGS="${CGO_CFLAGS}" CGO_LDFLAGS="${CGO_LDFLAGS}" go build -tags="${AGENT_GOTAGS}" -ldflags="${AGENT_GOLDFLAGS}" -o bin zabbix.com/cmd/zabbix_agent2
|
|
||||||
+ CGO_CFLAGS="${CGO_CFLAGS} -D_LARGEFILE64_SOURCE" CGO_LDFLAGS="${CGO_LDFLAGS}" go build -tags="${AGENT_GOTAGS}" -ldflags="${AGENT_GOLDFLAGS}" -o bin zabbix.com/cmd/zabbix_agent2
|
|
||||||
|
|
||||||
zabbix.com/cmd/zabbix_web_service:
|
|
||||||
go build -ldflags="${WEBSERVICE_GOLDFLAGS}" -o bin zabbix.com/cmd/zabbix_web_service
|
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/src/go/Makefile.am b/src/go/Makefile.am
|
|
||||||
index 2dd9e84e4ea..74bc3fbb91e 100644
|
|
||||||
--- a/src/go/Makefile.am
|
|
||||||
+++ b/src/go/Makefile.am
|
|
||||||
@@ -49,7 +49,7 @@ endif
|
|
||||||
all: build
|
|
||||||
|
|
||||||
zabbix.com/cmd/zabbix_agent2:
|
|
||||||
- CGO_CFLAGS="${CGO_CFLAGS}" CGO_LDFLAGS="${CGO_LDFLAGS}" go build -tags="${AGENT_GOTAGS}" -ldflags="${AGENT_GOLDFLAGS}" -o bin zabbix.com/cmd/zabbix_agent2
|
|
||||||
+ CGO_CFLAGS="${CGO_CFLAGS} -D_LARGEFILE64_SOURCE" CGO_LDFLAGS="${CGO_LDFLAGS}" go build -tags="${AGENT_GOTAGS}" -ldflags="${AGENT_GOLDFLAGS}" -o bin zabbix.com/cmd/zabbix_agent2
|
|
||||||
|
|
||||||
zabbix.com/cmd/zabbix_web_service:
|
|
||||||
go build -ldflags="${WEBSERVICE_GOLDFLAGS}" -o bin zabbix.com/cmd/zabbix_web_service
|
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/src/go/Makefile.am b/src/go/Makefile.am
|
|
||||||
index 2dd9e84e4ea..74bc3fbb91e 100644
|
|
||||||
--- a/src/go/Makefile.am
|
|
||||||
+++ b/src/go/Makefile.am
|
|
||||||
@@ -49,7 +49,7 @@ endif
|
|
||||||
all: build
|
|
||||||
|
|
||||||
zabbix.com/cmd/zabbix_agent2:
|
|
||||||
- CGO_CFLAGS="${CGO_CFLAGS}" CGO_LDFLAGS="${CGO_LDFLAGS}" go build -tags="${AGENT_GOTAGS}" -ldflags="${AGENT_GOLDFLAGS}" -o bin zabbix.com/cmd/zabbix_agent2
|
|
||||||
+ CGO_CFLAGS="${CGO_CFLAGS} -D_LARGEFILE64_SOURCE" CGO_LDFLAGS="${CGO_LDFLAGS}" go build -tags="${AGENT_GOTAGS}" -ldflags="${AGENT_GOLDFLAGS}" -o bin zabbix.com/cmd/zabbix_agent2
|
|
||||||
|
|
||||||
zabbix.com/cmd/zabbix_web_service:
|
|
||||||
go build -ldflags="${WEBSERVICE_GOLDFLAGS}" -o bin zabbix.com/cmd/zabbix_web_service
|
|
@ -5,4 +5,3 @@ gpgcheck=1
|
|||||||
enabled=0
|
enabled=0
|
||||||
gpgkey=https://nginx.org/keys/nginx_signing.key
|
gpgkey=https://nginx.org/keys/nginx_signing.key
|
||||||
module_hotfixes=true
|
module_hotfixes=true
|
||||||
|
|
||||||
|
22
build.json
22
build.json
@ -6,29 +6,29 @@
|
|||||||
"linux/s390x",
|
"linux/s390x",
|
||||||
"linux/ppc64le"
|
"linux/ppc64le"
|
||||||
],
|
],
|
||||||
|
"centos": [
|
||||||
|
"linux/amd64",
|
||||||
|
"linux/arm64",
|
||||||
|
"linux/ppc64le"
|
||||||
|
],
|
||||||
"ol": [
|
"ol": [
|
||||||
"linux/amd64",
|
"linux/amd64",
|
||||||
"linux/arm64"
|
"linux/arm64"
|
||||||
],
|
],
|
||||||
|
"rhel": [
|
||||||
|
"X64",
|
||||||
|
"ARM64"
|
||||||
|
],
|
||||||
"ubuntu": [
|
"ubuntu": [
|
||||||
"linux/amd64",
|
"linux/amd64",
|
||||||
"linux/arm/v7",
|
"linux/arm/v7",
|
||||||
"linux/arm64",
|
"linux/arm64",
|
||||||
"linux/s390x"
|
"linux/s390x"
|
||||||
],
|
|
||||||
"centos": [
|
|
||||||
"linux/amd64",
|
|
||||||
"linux/arm64",
|
|
||||||
"linux/ppc64le"
|
|
||||||
],
|
|
||||||
"rhel": [
|
|
||||||
"X64",
|
|
||||||
"ARM64"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"os-windows": {
|
"os-windows": {
|
||||||
"windows-2022": "ltsc2022",
|
"windows-2019": "ltsc2019",
|
||||||
"windows-2019": "ltsc2019"
|
"windows-2022": "ltsc2022"
|
||||||
},
|
},
|
||||||
"components": {
|
"components": {
|
||||||
"agent": { "base": "build-mysql", "rhel": true },
|
"agent": { "base": "build-mysql", "rhel": true },
|
||||||
|
@ -603,12 +603,6 @@ spec:
|
|||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
failureThreshold: 40
|
failureThreshold: 40
|
||||||
livenessProbe:
|
|
||||||
tcpSocket:
|
|
||||||
port: 10051
|
|
||||||
timeoutSeconds: 3
|
|
||||||
failureThreshold: 3
|
|
||||||
periodSeconds: 10
|
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities: {}
|
capabilities: {}
|
||||||
privileged: false
|
privileged: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user