Skip to content

Instantly share code, notes, and snippets.

@nagarjunareddyg
nagarjunareddyg / changeImage.py
Created January 5, 2023 10:56 — forked from Kimjunkuk/changeImage.py
Working with supplier images
#!/usr/bin/env python3
import os, sys
from PIL import Image
user = os.getenv('USER')
image_directory = '/home/{}/supplier-data/images/'.format(user)
for image_name in os.listdir(image_directory):
if not image_name.startswith('.') and 'tiff' in image_name:
image_path = image_directory + image_name
node {
// https://registry.hub.docker.com/_/maven/
def maven32 = docker.image('maven:3.2-jdk-7-onbuild');
stage 'Mirror'
// First make sure the slave has this image.
// (If you could set your registry below to mirror Docker Hub,
// this would be unnecessary as maven32.inside would pull the image.)
maven32.pull()
// We are pushing to a private secure docker registry in this demo.