You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/buildkite-gcp/buildkite-agent-setup.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
-
title: Set up Buildkite
2
+
title: Set up and connect Buildkite agent on a Google Axion C4A Arm VM
3
3
weight: 5
4
4
5
5
### FIXED, DO NOT MODIFY
6
6
layout: learningpathall
7
7
---
8
8
9
-
#Set up a Buildkite agent
9
+
## What you'll do in this section
10
10
11
-
After installing the Buildkite agent binary on a Google Axion C4A Arm VM, you can set up and configure a Buildkite agent and queue.
11
+
In this section, you'll configure and connect a Buildkite agent on a Google Axion C4A Arm virtual machine (VM). You'll generate an agent token, set up the agent configuration, create a Buildkite queue, and verify that your agent is online and ready to run CI/CD jobs on Arm infrastructure.
12
12
13
13
## Create an agent token
14
14
@@ -27,7 +27,7 @@ To create an agent token, follow these steps:
Then, confirm the agent is visible in the Buildkite UI, by doing the following:
94
94
95
-
Go Buildkite and select Agents
95
+
- In the Buildkite dashboard, select **Agents** from the left menu. This page lists all registered agents for your organization.
96
+
- Look for your new agent in the list and verify that its status is **online** and that it is assigned to the correct queue.
96
97
97
98
Confirm that the agent is online and connected to the queue `buildkite-queue1`.
98
99
99
100

100
101
101
-
The Buildkite agent is ready, you can proceed to use Buildkite for building multi-arch images.
102
+
Congratulations! Your Buildkite agent is now set up and connected to your queue. You can now start using Buildkite to build multi-architecture images on your Arm-based VM. This setup enables you to run CI/CD pipelines optimized for Arm platforms, and take advantage of the performance and scalability of Arm servers.
Once your files and pipeline are ready, you can validate that your Buildkite agent is running and ready to execute jobs.
108
+
## What you've accomplished
109
+
110
+
You've now created a simple Flask application, added a Dockerfile, set up your GitHub repository, and configured a Buildkite pipeline for multi-architecture builds on Arm. You also added Docker credentials as secrets and defined your pipeline steps in YAML. These steps prepare you to build, push, and test containerized applications using Arm-based infrastructure. You're now ready to validate your setup and run your first build!
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/buildkite-gcp/validation.md
+12-16Lines changed: 12 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Follow the steps below to run your pipeline on an Arm-based Buildkite agent. You
12
12
13
13
## Ensure the agent is running
14
14
15
-
Before your pipeline can execute, the Buildkite agent must be running and connected to your Buildkite account. To verify the agent status, run the following command on your VM:
15
+
Before running your pipeline, make sure the Buildkite agent is active and connected. On your VM, check the agent status with this command:
16
16
17
17
```console
18
18
sudo /root/.buildkite-agent/bin/buildkite-agent status
@@ -24,26 +24,26 @@ This command checks the current state of your Buildkite agent and displays its c
24
24
25
25
To start your pipeline, navigate to your pipeline in the Buildkite web interface. From your Buildkite dashboard, select the pipeline you created and click the "New Build" button. Choose the branch you want to build from the dropdown menu, then click "Start Build" to begin execution.
26
26
27
-

27
+

28
28
29
29
When you trigger the pipeline, Buildkite sends the job to your Arm-based agent and begins executing the steps defined in your YAML configuration file. The agent will process each step in sequence, starting with Docker login, followed by creating the Buildx builder, and finally building and pushing your multi-architecture Docker image.
30
30
31
31
## Monitor the Build
32
+
You can watch your build logs in real time in the Buildkite dashboard. Each step appears as it runs, so you can track progress and spot any issues quickly.
32
33
33
-
You can see the logs of your build live in the Buildkite UI.
34
+
The main steps you'll see are:
34
35
35
-
The steps include:
36
-
- Docker login
37
-
- Buildx builder creation
38
-
- Multi-arch Docker image build and push
36
+
- Logging in to Docker
37
+
- Creating the Buildx builder
38
+
- Building and pushing the multi-architecture Docker image
39
39
40
-

40
+

41
41
42
42
## Verify multi-arch image
43
43
44
44
After the pipeline completes successfully, you can go to Docker Hub and verify the pushed multi-arch images:

47
47
48
48
## Run the Flask application
49
49
@@ -54,18 +54,14 @@ docker run --rm -p 80:5000 <DOCKER_USERNAME>/multi-arch-app:latest
54
54
55
55
This command runs the Flask application inside a container, exposing it on port 5000 inside the container and mapping it to port 80 on the host machine.
56
56
57
-
You can now visit the VM’s Public IP to access the Flask application.
57
+
You can now visit the VM’s Public IP to access the Flask application:
58
58
59
59
```console
60
60
http://<VM_IP>
61
61
```
62
62
You should see output similar to:
63
+

63
64
64
-

66
-
67
-
Your pipeline is working, and you have successfully built and ran the Flask application using your Arm-based Buildkite agent.
68
-
69
-
## Recap your progress
65
+
## What you've accomplished
70
66
71
67
You've now completed the key steps to run a Buildkite pipeline on an Arm-based Google Axion C4A VM. You verified your agent connection, triggered and monitored a multi-architecture build, and successfully deployed and tested a Flask application in a Docker container. This workflow demonstrates how to use Arm infrastructure for modern CI/CD pipelines and multi-architecture container builds. Great work, you're now ready to apply these skills to your own Arm-based projects!
0 commit comments