Giter Club home page Giter Club logo

vzlogger-docker's Introduction

multi arch docker image for vzlogger

This image wraps a vzlogger into a container for platforms

  • linux/amd64
  • linux/arm64
  • linux/arm/v7

usage

The image has its entrypoint set to vzlogger. Just pass any vzlogger command line arguments to the "docker run" command. Bind mount your vzlogger.conf from from the host file system into the container.

Example:

docker run --rm --read-only -v $PWD/vzlogger.conf:/etc/vzlogger.conf:ro -p8080:8080 -t torstend/vzlogger --httpd --httpd-port 8080

As an alternative, use this snipped in your docker-compose.yaml and run "docker-compose run vzlogger"

version: '3.2'
services:
  vzlogger:
    image: torstend/vzlogger:latest
    read_only: true
    command: [ "--httpd", "--httpd-port", "8080" ]
    tty: true
    volumes:
      - ./vzlogger.conf:/etc/vzlogger.conf:ro
    healthcheck:
      test: "curl -f http://localhost:8080/ ||exit 1"
      interval: 10s
      timeout: 10s
      retries: 2
    ports:
      - "8080:8080"

Dockerfile and docker-compose.yaml could be found here: https://github.com/t3r/vzlogger-docker

The images at the docker hub were build with this command

docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t torstend/vzlogger -t torstend/vzlogger:stretch-0.8.0-git-8d06176 . --push

caveats

Don't daemonize the vzlogger. Make sure you have

"daemon": false

in your vzlogger.conf. Daemonizing the process will stop your container immediately.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.