Sign inSign up

gerain/nod32update-mirror

By gerain

•Updated almost 2 years ago

ESET Nod32 Updates Mirror based on nginx:stable-alpine and php script

Image
6

1.3K

gerain/nod32update-mirror repository overview

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:

  1. create volume container:
docker volume create nod32update-mirror
  1. run container:
docker run -d -p 8084:80 -v nod32update-mirror:/nod32update/www --restart always --name nod32update-mirror gerain/nod32update-mirror
  1. to configure the nod32ms.conf script with its own values, after the change, run the container:
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
  1. start Nod32 antivirus database update:
docker exec nod32update-mirror php update.php

open browser to check:
http://ip:8084⁠

  1. add cronjob on docker-host for update antivirus bases:
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
      }
    }
  }
}

Tag summary

Content type

Image

Digest

sha256:603039520…

Size

29.8 MB

Last updated

almost 2 years ago

docker pull gerain/nod32update-mirror