mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
startup dockerd based on local debugging
This commit is contained in:
parent
6987a173b6
commit
11bfe658a3
1 changed files with 20 additions and 0 deletions
|
|
@ -38,12 +38,32 @@ e2e-environment:
|
||||||
stage: e2e-setup
|
stage: e2e-setup
|
||||||
image: ubuntu:22.04
|
image: ubuntu:22.04
|
||||||
before_script:
|
before_script:
|
||||||
|
## Temporary - Utilize this approach while debugging docker-in-docker networking quirks.
|
||||||
# Install required packages
|
# Install required packages
|
||||||
- apt update
|
- apt update
|
||||||
- apt install -y ca-certificates curl
|
- apt install -y ca-certificates curl
|
||||||
|
|
||||||
# Install docker via helper script
|
# Install docker via helper script
|
||||||
- curl -fsSL https://get.docker.com | bash
|
- curl -fsSL https://get.docker.com | bash
|
||||||
|
|
||||||
|
# Start Docker daemon in background, redirect logs
|
||||||
|
- dockerd > /tmp/dockerd.log 2>&1 &
|
||||||
|
|
||||||
|
# Wait until Docker daemon is ready
|
||||||
|
- |
|
||||||
|
echo "Waiting for dockerd to be ready..."
|
||||||
|
timeout=30
|
||||||
|
waited=0
|
||||||
|
while ! grep -q 'API listen on /var/run/docker.sock' /tmp/dockerd.log; do
|
||||||
|
sleep 1
|
||||||
|
waited=$((waited + 1))
|
||||||
|
if [ $waited -ge $timeout ]; then
|
||||||
|
echo "❌ Timeout waiting for Docker daemon to start"
|
||||||
|
cat /tmp/dockerd.log
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo "✅ Docker daemon is ready"
|
||||||
script:
|
script:
|
||||||
- docker compose -f docker-compose.test.yml up -d --build
|
- docker compose -f docker-compose.test.yml up -d --build
|
||||||
- end=$((SECONDS + 30))
|
- end=$((SECONDS + 30))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue