temp: read impulsa production compose
All checks were successful
Deploy / deploy (push) Successful in 3m53s
All checks were successful
Deploy / deploy (push) Successful in 3m53s
This commit is contained in:
29
.github/workflows/find-impulsa-web.yml
vendored
29
.github/workflows/find-impulsa-web.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: find-impulsa-source
|
name: read-impulsa-compose
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
@@ -6,24 +6,11 @@ jobs:
|
|||||||
find:
|
find:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Find impulsa_landing image and source
|
- name: Read impulsa production compose and find landing Dockerfile
|
||||||
run: |
|
run: |
|
||||||
echo "=== Container image ==="
|
echo "=== /opt/impulsa/environments/production/docker-compose.yml ==="
|
||||||
docker inspect impulsa_landing --format '{{.Config.Image}}'
|
docker run --rm -v /opt/impulsa:/impulsa alpine cat /impulsa/environments/production/docker-compose.yml
|
||||||
echo "=== Image history ==="
|
echo "=== /opt/impulsa directory tree (depth 3) ==="
|
||||||
docker inspect impulsa_landing --format '{{.Image}}'
|
docker run --rm -v /opt/impulsa:/impulsa alpine find /impulsa -maxdepth 4 -name "*.yml" -o -name "*.yaml" -o -name "Dockerfile*" 2>/dev/null
|
||||||
IMAGE_ID=$(docker inspect impulsa_landing --format '{{.Image}}')
|
echo "=== Container start command ==="
|
||||||
docker inspect $IMAGE_ID --format '{{range .Config.Env}}{{.}}{{"\n"}}{{end}}'
|
docker inspect impulsa_landing --format '{{.Name}} {{.Config.Cmd}} {{.HostConfig.Binds}}'
|
||||||
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