Giter Site home page Giter Site logo

Comments (7)

logopk avatar logopk commented on May 18, 2024 2

. I see. Thank you! I promise to RTFM.

from diun.

logopk avatar logopk commented on May 18, 2024 1

Hey that works! Thank you.
Nevertheless that should be documented here. Or is it already?

from diun.

crazy-max avatar crazy-max commented on May 18, 2024

@logopk What your diun.yml looks like?

from diun.

logopk avatar logopk commented on May 18, 2024
watch:
  workers: 20
  schedule: "*/30 * * * *"
  first_check_notif: false

providers:
  docker:
    mydocker:
      watch_stopped: true
      watch_by_default: true
    remote:
      endpoint: tcp://<#1 redacted>:2376
      tls_certs_path: /certs
      tls_verify: true
      watch_stopped: true
      watch_by_default: true
# this does not work
    remote-pi:
      endpoint: tcp://<#2 redacted>:2376
      tls_certs_path: /certs-pi
      tls_verify: true
      watch_stopped: true
      watch_by_default: true
  
  static:
    - name: debian:buster-slim
      watch_repo: false
      os: linux
      max_tags: 1
    - name: nextcloud:apache
      watch_repo: false
      os: linux
      max_tags: 1
    - name: php:7.2-apache
      watch_repo: false
      os: linux
      max_tags: 1
    - name: golang:alpine
      watch_repo: false
      os: linux
      max_tags: 1
...
# this works
    - name: registry.<xxx>:5000/logopk/cadvisor:v0.36.0-arm
      watch_repo: true
      os: linux
      max_tags: 1
      regopts_id: myregistry

notif:
  mail:
    enable: true
...

regopts:
  myregistry:
    username: xxx
    password: yyy

from diun.

crazy-max avatar crazy-max commented on May 18, 2024

@logopk

# this works
    - name: registry.<xxx>:5000/logopk/cadvisor:v0.36.0-arm

So it works?

from diun.

crazy-max avatar crazy-max commented on May 18, 2024

@logopk I think I get it. If you want to set regopts_id for a Docker container, you have to use labels:

# ./docker-compose.yml
version: "3.5"

services:
  diun:
    image: crazymax/diun:2.6.1
    volumes:
      - "./userfile:/userfile"
      - "./pwfile:/pwfile"
      - "./diun.yml:/diun.yml:ro"
      - "/var/run/docker.sock:/var/run/docker.sock"
    environment:
      - "TZ=Europe/Paris"
      - "LOG_LEVEL=debug"
      - "LOG_JSON=false"
    restart: always

  cadvisor:
    image: registry.<xxx>:5000/logopk/cadvisor:v0.36.0-arm
    labels:
      - "diun.regopts_id=myregistry"
      - "diun.watch_repo=true"
      - "diun.max_tags=1"
    restart: always
# ./diun.yml
watch:
  workers: 20
  schedule: 0 0 * * * *

regopts:
  myregistry:
    username_file: ./userfile
    password_file: ./pwfile

providers:
  docker:
    mydocker:
      watch_stopped: true
      watch_by_default: true

from diun.

crazy-max avatar crazy-max commented on May 18, 2024

@logopk This is already documented here: https://github.com/crazy-max/diun/blob/master/doc/providers/docker.md

from diun.

Related Issues (20)

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.