From 2346c1b569cc8b1d63234c634f398e89a1163834 Mon Sep 17 00:00:00 2001 From: continuist Date: Fri, 27 Jun 2025 23:52:50 -0400 Subject: [PATCH] Add steps to change timezone and set hosts file --- CI_CD_PIPELINE_SETUP_GUIDE.md | 74 ++++++++++++++++++++++++++++++++++- 1 file changed, 72 insertions(+), 2 deletions(-) diff --git a/CI_CD_PIPELINE_SETUP_GUIDE.md b/CI_CD_PIPELINE_SETUP_GUIDE.md index c9e6299..e4e903b 100644 --- a/CI_CD_PIPELINE_SETUP_GUIDE.md +++ b/CI_CD_PIPELINE_SETUP_GUIDE.md @@ -333,7 +333,42 @@ sudo apt update && sudo apt upgrade -y **Expected output**: A list of packages being updated, followed by completion messages. -#### 1.2 Install Essential Packages +#### 1.2 Configure Timezone + +```bash +# Configure timezone interactively +sudo dpkg-reconfigure tzdata + +# Verify timezone setting +date +``` + +**What this does**: Opens an interactive dialog to select your timezone. Navigate through the menus to choose your preferred timezone (e.g., UTC, America/New_York, Europe/London, Asia/Tokyo). + +**Expected output**: After selecting your timezone, the `date` command should show the current date and time in your selected timezone. + +#### 1.3 Configure /etc/hosts + +```bash +# Add localhost entries for both IPv4 and IPv6 +echo "127.0.0.1 localhost" | sudo tee -a /etc/hosts +echo "::1 localhost ip6-localhost ip6-loopback" | sudo tee -a /etc/hosts +echo "YOUR_CI_CD_IPV4_ADDRESS localhost" | sudo tee -a /etc/hosts +echo "YOUR_CI_CD_IPV6_ADDRESS localhost" | sudo tee -a /etc/hosts + +# Verify the configuration +cat /etc/hosts +``` + +**What this does**: +- Adds localhost entries for both IPv4 and IPv6 addresses to `/etc/hosts` +- Ensures proper localhost resolution for both IPv4 and IPv6 + +**Important**: Replace `YOUR_CI_CD_IPV4_ADDRESS` and `YOUR_CI_CD_IPV6_ADDRESS` with the actual IPv4 and IPv6 addresses of your CI/CD Linode obtained from your Linode dashboard. + +**Expected output**: The `/etc/hosts` file should show entries for `127.0.0.1`, `::1`, and your Linode's actual IP addresses all mapping to `localhost`. + +#### 1.4 Install Essential Packages ```bash sudo apt install -y \ @@ -939,7 +974,42 @@ forgejo-runner list sudo apt update && sudo apt upgrade -y ``` -#### 12.2 Install Essential Packages +#### 12.2 Configure Timezone + +```bash +# Configure timezone interactively +sudo dpkg-reconfigure tzdata + +# Verify timezone setting +date +``` + +**What this does**: Opens an interactive dialog to select your timezone. Navigate through the menus to choose your preferred timezone (e.g., UTC, America/New_York, Europe/London, Asia/Tokyo). + +**Expected output**: After selecting your timezone, the `date` command should show the current date and time in your selected timezone. + +#### 12.3 Configure /etc/hosts + +```bash +# Add localhost entries for both IPv4 and IPv6 +echo "127.0.0.1 localhost" | sudo tee -a /etc/hosts +echo "::1 localhost ip6-localhost ip6-loopback" | sudo tee -a /etc/hosts +echo "YOUR_PRODUCTION_IPV4_ADDRESS localhost" | sudo tee -a /etc/hosts +echo "YOUR_PRODUCTION_IPV6_ADDRESS localhost" | sudo tee -a /etc/hosts + +# Verify the configuration +cat /etc/hosts +``` + +**What this does**: +- Adds localhost entries for both IPv4 and IPv6 addresses to `/etc/hosts` +- Ensures proper localhost resolution for both IPv4 and IPv6 + +**Important**: Replace `YOUR_PRODUCTION_IPV4_ADDRESS` and `YOUR_PRODUCTION_IPV6_ADDRESS` with the actual IPv4 and IPv6 addresses of your Production Linode obtained from your Linode dashboard. + +**Expected output**: The `/etc/hosts` file should show entries for `127.0.0.1`, `::1`, and your Linode's actual IP addresses all mapping to `localhost`. + +#### 12.4 Install Essential Packages ```bash sudo apt install -y \