Skip to content

Commit 51b4722

Browse files
Enhance documentation for Golang baseline testing and deployment on Azure Cobalt 100. Update titles, add descriptions, and improve clarity in installation and configuration instructions.
1 parent c9f2a5e commit 51b4722

2 files changed

Lines changed: 29 additions & 18 deletions

File tree

content/learning-paths/servers-and-cloud-computing/golang-on-azure/baseline-testing.md

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Golang baseline testing
2+
title: Golang baseline testing and web server deployment on Azure Cobalt 100
33
weight: 5
44

55
### FIXED, DO NOT MODIFY
@@ -8,11 +8,12 @@ layout: learningpathall
88

99
## Baseline testing: run a Go web server on Azure Arm64
1010

11-
To validate your Go toolchain and runtime environment, build and run a lightweight web server. This confirms that compilation, networking, and runtime execution work correctly on your Ubuntu Pro 24.04 LTS Arm64 virtual machine on Azure Cobalt 100.
11+
Validate your Go development environment by building and deploying a complete web application. This baseline test confirms that compilation, networking, and runtime execution work correctly on your Ubuntu Pro 24.04 LTS Arm64 virtual machine powered by Azure Cobalt 100 processors.
1212

13-
## Create the project directory
13+
## Initialize Go Web Project
14+
15+
Create a dedicated project directory for your Go web application:
1416

15-
Create a folder for your Go web project and navigate to it:
1617
```console
1718
mkdir goweb && cd goweb
1819
```
@@ -24,7 +25,7 @@ Next, create a simple web page that your Go server will serve. Open an editor an
2425
nano index.html
2526
```
2627

27-
Paste the following HTML code into the `index.html` file. This page uses Bootstrap for styling and includes a header, a welcome message, and a button that links to a Go-powered API endpoint.
28+
Add the following HTML code with Bootstrap styling and Azure Cobalt 100 branding:
2829

2930
```html
3031
<!DOCTYPE html>
@@ -104,21 +105,22 @@ func main() {
104105
```
105106
{{% notice Note %}}Running on port 80 requires root privileges. Use sudo with the full Go path if needed.{{% /notice %}}
106107

107-
## Run the web server
108+
## Deploy and Start the Web Server
109+
110+
Compile and launch your Go web server on Azure Cobalt 100:
108111

109-
Compile and start the server:
110112
```console
111113
sudo /usr/local/go/bin/go run main.go
112114
```
113115

114-
Expected output:
116+
Expected output confirming successful startup:
115117
```output
116118
2025/08/19 04:35:06 Server running on http://0.0.0.0:80
117119
```
118120

119-
On Ubuntu Pro 24.04 LTS virtual machines, UFW (Uncomplicated Firewall) is used to manage firewall rules. By default, it allows only SSH (port 22), while other inbound connections are blocked.
121+
### Configure Ubuntu Firewall for HTTP Access
120122

121-
Even if you have already configured Azure Network Security Group (NSG) rules to allow inbound traffic on port 80, the VM level firewall might still block HTTP requests until explicitly opened.
123+
Ubuntu Pro 24.04 LTS uses UFW (Uncomplicated Firewall) to manage network access. Even with Azure Network Security Group (NSG) rules configured, the VM-level firewall requires explicit HTTP access configuration.
122124

123125
Run the following commands to allow HTTP traffic on port 80:
124126

@@ -154,6 +156,14 @@ echo "http://$(curl -s ifconfig.me)/"
154156

155157
Open this URL in your browser. You should see the styled HTML landing page served by your Go application.
156158

157-
![Go web server running on Azure Arm64 alt-text#center](images/go-web.png "Go web server running on Azure Arm64")
159+
![Go web server running on Azure Cobalt 100 Arm64 alt-text#center](images/go-web.png "Go web server running on Azure Cobalt 100 Arm64")
160+
161+
## Baseline Testing Complete
162+
163+
Successfully reaching this page confirms:
164+
- **Go toolchain** is properly installed and configured
165+
- **Development environment** is ready for Arm64 compilation
166+
- **Network connectivity** and firewall configuration are correct
167+
- **Runtime performance** is functioning on Azure Cobalt 100 processors
158168

159-
Reaching this page confirms that Go is installed, the environment is configured, and your Go web server works end-to-end on Azure Cobalt 100 (Arm64). You can now proceed to benchmarking tests.
169+
Your Azure Cobalt 100 virtual machine is now ready for advanced Go application development and performance benchmarking.

content/learning-paths/servers-and-cloud-computing/golang-on-azure/deploy.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ weight: 4
66
layout: learningpathall
77
---
88

9-
## Install Golang on Ubuntu Pro 24.04 LTS (Arm64)
9+
## Install Golang on Azure Cobalt 100 (Ubuntu Pro 24.04 LTS Arm64)
1010

11-
This section shows how to install the Go toolchain on Ubuntu Pro 24.04 LTS (Arm64), configure your environment, and verify the setup for benchmarking on Azure Cobalt 100 VMs.
11+
This section demonstrates how to install the Go programming language toolchain on Ubuntu Pro 24.04 LTS (Arm64), configure your development environment, and verify the setup for optimal performance on Azure Cobalt 100 virtual machines.
1212

13-
## Download the Go archive
13+
## Download the Official Go Distribution
14+
15+
Download the latest Arm64-optimized Go distribution directly from the official Go website. This ensures you get the best performance on Azure Cobalt 100 processors:
1416

15-
Use the following command to download the Arm64 build from the official Go distribution (update the version as needed):
1617
```console
1718
wget https://go.dev/dl/go1.25.0.linux-arm64.tar.gz
1819
```
@@ -39,9 +40,9 @@ To make the Go toolchain accessible from any directory, add its binary location
3940
echo 'export PATH="$PATH:/usr/local/go/bin"' >> ~/.bashrc
4041
```
4142

42-
## Apply the changes
43+
## Reload Shell Configuration
4344

44-
After updating .bashrc, reload it so your current shell session picks up the new environment variables without requiring you to log out and back in:
45+
Apply the environment changes to your current shell session without requiring a logout/login cycle:
4546

4647
```console
4748
source ~/.bashrc

0 commit comments

Comments
 (0)