Skip to content

Instantly share code, notes, and snippets.

@LvargaDS
LvargaDS / get-docker-image-tag-by-sha.sh
Last active October 24, 2024 08:06 — forked from achetronic/get-docker-image-tag-by-sha.sh
Find the tag of a Docker image having only the SHA256
#!/bin/bash
SHA256_HASH="1bcc4a809b5dae81ccdd292bc7724ef2a1357f58a545fbdfd3076008af14d0d7"
for i in {1..1000}
do
URL="https://registry.hub.docker.com/v2/repositories/apache/superset/tags/?page=$i&page_size=100"
echo "Looking into page: $i $URL"
curl --silent --show-error "$URL" \
@LvargaDS
LvargaDS / CopyDirectoryToTestContainer.java
Last active February 10, 2024 12:55
Small util class for testcontainer to copy whole directory recursively instead of signle file only.
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.utility.MountableFile;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.stream.Stream;