Skip to content

Commit e6efd83

Browse files
committed
fix: assumed that docker is installed and running on AMI (ECS images)
1 parent 0791f76 commit e6efd83

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

tf-module/stac_browser/ec2_start.txt

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,7 @@ exec > /var/log/user-data-debug.log 2>&1
44

55
echo "User data script started"
66

7-
# Wait for snapd service to be active
8-
while ! systemctl is-active --quiet snapd; do
9-
echo "Waiting for snapd to start..."
10-
sleep 5
11-
done
127

13-
echo "Snapd is now running"
14-
15-
whoami >> /var/log/user-data-whoami.log
16-
snap refresh snapd
17-
echo "snap refreshed"
18-
snap install docker;
19-
echo "docker installed";
20-
21-
# Wait for Snapd to initialize Docker (give it a few seconds)
22-
while ! systemctl is-active --quiet snap.docker.dockerd.service; do
23-
echo "Waiting for Docker service to start..."
24-
sleep 5
25-
done
26-
sleep 5
27-
echo "Docker is now running"
288

299
docker pull --platform=linux/amd64 ${github_image_url}:${image_tag} ;
3010
echo "docker pulled";

0 commit comments

Comments
 (0)