Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .buildkite/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion .buildkite/template.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Used by the 'Add to Buildkite' button in the readme
name: "Python Docker Example"
description: "An example pipeline that runs Python tests inside a Docker container using uv for dependency management."
emoji: ":python:"
color: "#EFF9FF"
languages:
- "Python"
- "Docker"
steps:
- label: ":pipeline:"
command: "buildkite-agent pipeline upload"
2 changes: 1 addition & 1 deletion License.md → LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017 Buildkite Pty Ltd
Copyright (c) 2025 Buildkite Pty Ltd

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Buildkite Python Docker Example (using uv)

[![Build status](https://badge.buildkite.com/a947f64837044296a1ea4394819872e0544a4647a3400e6634.svg?branch=main)](https://buildkite.com/buildkite/python-docker-example/builds/latest?branch=main)
[![Add to Buildkite](https://img.shields.io/badge/Add%20to%20Buildkite-14CC80)](https://buildkite.com/new)

This repository is an example [Buildkite](https://buildkite.com/) pipeline that tests a [Python](https://python.org) project using [Docker](https://www.docker.com/) and [uv](https://docs.astral.sh/uv/), a fast Python package manager.

👉 **See this example in action:** [buildkite/python-docker-example](https://buildkite.com/buildkite/python-docker-example/builds/latest?branch=main)

[![Add to Buildkite](https://buildkite.com/button.svg)](https://buildkite.com/new)

<a href="https://buildkite.com/buildkite/python-docker-example/builds/latest?branch=main">
<img width="2400" alt="Screenshot of Buildkite Python Docker example pipeline" src=".buildkite/screenshot.png" />
</a>

<!-- docs:start -->

## How it works

This example:
- Uses a [`Dockerfile`](Dockerfile) to set up Python and install dependencies using `uv`
- Defines an `app` service in [`docker-compose.yml`](docker-compose.yml)
- Runs the build using Docker Compose via a standard Buildkite pipeline step

<!-- docs:end -->

## License

See [LICENSE.md](LICENSE.md) (MIT)
15 changes: 0 additions & 15 deletions Readme.md

This file was deleted.