-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the deploy script once again to make it more robust
- Loading branch information
Showing
3 changed files
with
101 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"indexer_block_window": 10000 | ||
"indexer_block_window": 1024 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,37 @@ | ||
#!/bin/bash | ||
# Copyright (C) 2024, Nuklai. All rights reserved. | ||
# See the file LICENSE for licensing terms. | ||
# install_docker.sh | ||
|
||
set -e | ||
LOGFILE="/var/log/install_docker.log" | ||
exec > >(tee -a "$LOGFILE") 2>&1 | ||
date | ||
echo "Starting Docker installation..." | ||
|
||
echo "Updating packages..." | ||
yum update -y | ||
|
||
echo "Installing Docker and Git..." | ||
yum install -y docker git | ||
service docker start | ||
|
||
echo "Enabling Docker service..." | ||
systemctl enable docker | ||
|
||
echo "Starting Docker service..." | ||
systemctl start docker | ||
|
||
echo "Adding ec2-user to Docker group..." | ||
usermod -aG docker ec2-user | ||
|
||
echo "Setting Docker socket permissions..." | ||
chmod 666 /var/run/docker.sock | ||
|
||
echo "Waiting for Docker socket..." | ||
until [ -S /var/run/docker.sock ]; do | ||
echo "Docker socket not yet available, retrying..." | ||
sleep 5 | ||
done | ||
|
||
# Create a completion flag | ||
touch /home/ec2-user/docker_installed | ||
|
||
echo "Docker installation completed at $(date)" |