temp: find impulsa_landing image source and docker-compose
All checks were successful
Deploy / deploy (push) Successful in 4m9s
All checks were successful
Deploy / deploy (push) Successful in 4m9s
This commit is contained in:
30
.github/workflows/find-impulsa-web.yml
vendored
30
.github/workflows/find-impulsa-web.yml
vendored
@@ -1,5 +1,4 @@
|
||||
name: Find Impulsa Web
|
||||
|
||||
name: find-impulsa-source
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -7,11 +6,24 @@ jobs:
|
||||
find:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Inspect impulsa_landing container
|
||||
- name: Find impulsa_landing image and source
|
||||
run: |
|
||||
echo "=== Mounts ==="
|
||||
docker inspect impulsa_landing --format '{{range .Mounts}}Source={{.Source}} Dest={{.Destination}}{{"\n"}}{{end}}'
|
||||
echo "=== Traefik labels ==="
|
||||
docker inspect impulsa_landing --format '{{range $k,$v := .Config.Labels}}{{$k}}={{$v}}{{"\n"}}{{end}}' | grep -i traefik
|
||||
echo "=== index.html ==="
|
||||
docker exec impulsa_landing cat /usr/share/nginx/html/index.html
|
||||
echo "=== Container image ==="
|
||||
docker inspect impulsa_landing --format '{{.Config.Image}}'
|
||||
echo "=== Image history ==="
|
||||
docker inspect impulsa_landing --format '{{.Image}}'
|
||||
IMAGE_ID=$(docker inspect impulsa_landing --format '{{.Image}}')
|
||||
docker inspect $IMAGE_ID --format '{{range .Config.Env}}{{.}}{{"\n"}}{{end}}'
|
||||
echo "=== Find docker-compose files with impulsa_landing ==="
|
||||
docker run --rm -v /home:/host-home -v /opt:/host-opt alpine sh -c "
|
||||
find /host-home /host-opt -name 'docker-compose*' 2>/dev/null | while read f; do
|
||||
if grep -q 'impulsa_landing\|impulsa-landing' \"\$f\" 2>/dev/null; then
|
||||
echo \"FOUND: \$f\"
|
||||
cat \"\$f\"
|
||||
fi
|
||||
done
|
||||
"
|
||||
echo "=== All docker-compose files ==="
|
||||
docker run --rm -v /home:/host-home -v /opt:/host-opt alpine sh -c "
|
||||
find /host-home /host-opt -name 'docker-compose*' 2>/dev/null
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user