ESET Nod32 Updates Mirror based on nginx:stable-alpine and php script
1.3K
ESET Nod32 Updates Mirror based on nginx:stable-alpine and php script https://github.com/Kingston-kms/eset_mirror_script
Docker repository (pool requests are welcome): https://github.com/gera-corp/nod32update-mirror
Simple run container:
docker volume create nod32update-mirror
docker run -d -p 8084:80 -v nod32update-mirror:/nod32update/www --restart always --name nod32update-mirror gerain/nod32update-mirror
docker run -d -p 8084:80 -v ./nod32ms.conf:/nod32update/nod32ms.conf -v nod32update-mirror:/nod32update/www --restart always --name nod32update-mirror gerain/nod32update-mirror
docker exec nod32update-mirror php update.php
open browser to check:
http://ip:8084
crontab -e
0 */1 * * * docker exec nod32update-mirror php update.php
specify the update mirror in your nod32 antivirus:
http://ip:8084
Nomad job example:
job "nod32mirror" {
datacenters = ["dc1"]
type = "service"
group "nod32mirror-group" {
network {
port "http" {
to = 80
static = 8084
}
}
volume "nod32update" {
type = "csi"
source = "nod32update"
access_mode = "single-node-writer"
attachment_mode = "file-system"
}
task "nod32mirror-task" {
driver = "docker"
service {
port = "http"
name = "nod32mirror"
tags = [
"nod32mirror",
"traefik.enable=true",
"traefik.http.routers.nod32mirror.rule=Host(`nod32mirror.mirror.com`)",
"traefik.http.routers.nod32mirror.entrypoints=web-secure",
"traefik.http.routers.nod32mirror.tls.certresolver=main"
]
}
resources {
cpu = 100
memory = 100
}
config {
image = "gerain/nod32update-mirror:latest"
ports = ["http"]
command = "sh"
args = ["-c", <<EOH
"nginx" "-g" "daemon off;" &
while true; do php update.php; sleep 3h; done
EOH
]
}
volume_mount {
volume = "nod32update"
destination = "/nod32update/www"
read_only = false
}
}
}
}
Content type
Image
Digest
sha256:603039520…
Size
29.8 MB
Last updated
almost 2 years ago
docker pull gerain/nod32update-mirror