Public Repository

Last pushed: a month ago
Short Description
Image for mirroring files in and out from minio server to a volume.
Full Description

Image for mirroring files between Minio server and a volume.

source

Supported architectures: arm, arm64 and amd64

Usage

Mirror in

Docker:

$ docker run --rm -it -v $PWD/config.json:/app/config/config.json -v $PWD/mydata:/app/target thenatureofsoftware/volumizr in minio/bucket1 /app/target

Init container in Kubernetes:

annotations:
  pod.beta.kubernetes.io/init-containers:
    '[{
    "name": "volumizr-in",
    "image": "thenatureofsoftware/volumizr:latest",
    "args": ["in", "minio/mysql", "/var/lib/mysql"],
    "volumeMounts": [{
      "mountPath": "/var/lib/mysql",
      "name": "persistentdata"
    }]
  }]

Mirror out

For continuously mirror changes back to minio server.

Docker:

$ docker run --rm -it -v $PWD/config.json:/app/config/config.json -v $PWD/mydata:/app/source thenatureofsoftware/volumizr out /app/source minio/bucket1

As a sidecar container in Kubernetes:

...
- image: thenatureofsoftware/volumizr:latest
  imagePullPolicy: Always
  name: volumizr-out
  args:
  - out
  - /var/lib/mysql
  - minio/mysql
  volumeMounts:
  - mountPath: "/var/lib/mysql"
    name: persistentdata
...
Docker Pull Command
Owner
thenatureofsoftware

Comments (0)