Sign inSign up

gremlin/tag-populator

By gremlin

•Updated about 4 years ago

Image
0

971

gremlin/tag-populator repository overview

⁠Installation

This image is designed to be used as an initContainer in a kubernetes deployment

        initContainers:
        - command:
          - ./tag-fetcher.sh
          image: gremlin/tag-populator:latest
          imagePullPolicy: Always
          name: tag-populator
          resources: {}
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
          volumeMounts:
          - mountPath: /var/lib/gremlin
            name: gremlin-state

This assumes that there is already a volume definition somewhere consumed by the gremlin agent that looks something like:

  volumes:
  - hostPath:
      path: /var/lib/gremlin
      type: ""
    name: gremlin-state

Additionally, in order to consume these tags you'll also need to edit the existing gremlin agent container like:

        containers:
        - command:
          - /bin/sh
          - -c
          - source /var/lib/gremlin/tags.sh && /entrypoint.sh daemon
        image: gremlin/gremlin:latest
        imagePullPolicy: Always
        name: gremlin
... etc ...

Typically this replaces an args: field in the yaml

⁠Building

docker build . -t gremlin/tag-populator:latest

Tag summary

Content type

Image

Digest

sha256:c43c8fc96…

Size

239.4 MB

Last updated

about 4 years ago

docker pull gremlin/tag-populator