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/multiarch_buildkite_pipeline.md
+13-16Lines changed: 13 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,11 @@ layout: learningpathall
8
8
9
9
## Create an application
10
10
11
-
You can now create an application to containerize with Docker. The example below is a simple Flask-based Python application.
11
+
Now you'll create a simple application to containerize with Docker. This example uses Flask, a popular Python web framework.
12
12
13
-
Create a new public GitHub repository where you can create the Dockerfile and the Python file for the application.
13
+
The first step is to create a new public GitHub repository. You'll add both the `Dockerfile` and the Python application file to this repository.
14
14
15
-
###Create a Dockerfile
15
+
## Create a Dockerfile
16
16
17
17
In a GitHub repo, add a new file named `Dockerfile` with this content:
18
18
@@ -30,7 +30,7 @@ EXPOSE 5000
30
30
CMD ["python", "app.py"]
31
31
```
32
32
33
-
###Create a Python application
33
+
## Create a Python application
34
34
35
35
In the same repo, add a Python source file named `app.py`:
36
36
@@ -48,37 +48,34 @@ if __name__ == "__main__":
48
48
49
49
This Python code defines a simple Flask web server that listens on all interfaces (0.0.0.0) at port 5000 and responds with "Hello from Arm-based Buildkite runner!" when the root URL (/) is accessed.
50
50
51
-
###Add the code to your GitHub repository
51
+
## Add your code to the GitHub repository
52
52
53
-
Before triggering the pipeline, your GitHub repository should have:
53
+
Before you trigger the Buildkite pipeline, make sure your GitHub repository contains both the `Dockerfile` and the `app.py` file. The `Dockerfile` defines your multi-architecture container image, and `app.py` is your Python microservice.
54
54
55
-
-`Dockerfile` (defines your multi-arch image)
56
-
-`app.py` (your Python microservice)
55
+
You'll need the URL of this repository when you create your Buildkite pipeline in the next steps.
57
56
58
-
You will need the path to the GitHub repository when you create a Buildkite pipeline below.
59
-
60
-
### Add Docker credentials as Buildkite secrets
57
+
## Add Docker credentials as Buildkite secrets
61
58
62
59
Make sure to add your Docker credentials as secrets in the Buildkite UI.
63
60
64
61
Navigate to Buildkite and select Agents and then Secrets and add `DOCKER_USERNAME` and `DOCKER_PASSWORD`.
Select **Create pipeline** to save your new pipeline.
103
100
104
-
Trigger a new build by clicking New Build on your pipeline’s dashboard.
101
+
To start your first build, select **New build** on your pipeline dashboard. This action triggers the pipeline and begins the multi-architecture build process.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/buildkite-gcp/validation.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,11 +24,11 @@ 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
-
## Monitor the Build
31
+
## Monitor the build
32
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.
33
33
34
34
The main steps you'll see are:
@@ -37,13 +37,13 @@ The main steps you'll see are:
37
37
- Creating the Buildx builder
38
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:
45
45
46
-

46
+

47
47
48
48
## Run the Flask application
49
49
@@ -60,7 +60,7 @@ You can now visit the VM’s Public IP to access the Flask application:
60
60
http://<VM_IP>
61
61
```
62
62
You should see output similar to:
63
-

63
+

0 commit comments