From 99f02db4a41243e31b6e822a50bc9681f67db52c Mon Sep 17 00:00:00 2001 From: Supan Adit Pratama Date: Tue, 24 Jun 2025 10:27:59 +0700 Subject: [PATCH] feat: add script to pull latest Docker images for monitoring stack --- scripts/pulling.ps1 | 52 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 scripts/pulling.ps1 diff --git a/scripts/pulling.ps1 b/scripts/pulling.ps1 new file mode 100644 index 0000000..7d61398 --- /dev/null +++ b/scripts/pulling.ps1 @@ -0,0 +1,52 @@ +# Get Current Directory +$curDir = Get-Location + +# Go to $curDir/docker/alloy +Set-Location "$curDir/docker/alloy" +# Pull the latest image from Docker Hub +docker compose pull + +# Go To $curDir/docker/cadvisor +Set-Location "$curDir/docker/cadvisor" +# Pull the latest image from Docker Hub +docker compose pull + +# Go To $curDir/docker/grafana +Set-Location "$curDir/docker/grafana" +# Pull the latest image from Docker Hub +docker compose pull + + +# Go To $curDir/docker/loki +Set-Location "$curDir/docker/loki" +# Pull the latest image from Docker Hub +docker compose pull + +# Go To $curDir/docker/minio +Set-Location "$curDir/docker/minio" +# Pull the latest image from Docker Hub +docker compose pull + +# Go To $curDir/docker/pyroscope +Set-Location "$curDir/docker/pyroscope" +# Pull the latest image from Docker Hub +docker compose pull + +# Go To $curDir/docker/tempo +Set-Location "$curDir/docker/tempo" +# Pull the latest image from Docker Hub +docker compose pull + +# Go To $curDir/docker/thanos +Set-Location "$curDir/docker/thanos" +# Pull the latest image from Docker Hub +docker compose pull + +# Go To $curDir/docker/traefik +Set-Location "$curDir/docker/traefik" +# Pull the latest image from Docker Hub +docker compose pull + +# Back to the original directory +Set-Location $curDir +Write-Host "All Docker images have been pulled successfully." \ No newline at end of file