Skip to content
This repository was archived by the owner on Oct 30, 2026. It is now read-only.
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
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ CHANGELOG.md
ci
CODE_OF_CONDUCT.rst
CONTRIBUTING.rst
docker-bake.hcl
server/docker-bake.hcl
docs
LICENSE
lint.mk
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ jobs:
uses: docker/bake-action@v7.5.0
with:
call: check
files: server/docker-bake.hcl

- name: Build Docker images
uses: docker/bake-action@v7.5.0
with:
push: false
files: server/docker-bake.hcl
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,6 @@ jobs:
uses: docker/bake-action@v7.5.0
with:
push: true
files: server/docker-bake.hcl
env:
VERSION: ${{ needs.release.outputs.version }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ ignore = [
"CODE_OF_CONDUCT.rst",
"conftest.py",
"CONTRIBUTING.rst",
"docker-bake.hcl",
"docs",
"docs/**",
"LICENSE",
Expand All @@ -375,6 +374,7 @@ ignore = [
"newsfragments/**",
"prek.toml",
"secrets.tar.gpg",
"server/docker-bake.hcl",
"server/Dockerfile",
"server/tests/**",
"spelling_private_dict.txt",
Expand Down
13 changes: 13 additions & 0 deletions server/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,16 @@ The Docker tests build and start all three services and require a running Docker
For the Flask and health-check cases alone, add ``--skip-marker=requires_docker_build``.
The shared fixtures are loaded explicitly from the installed contract package.
Shared API assertions remain maintained in that package.

Building container images
-------------------------

From the workspace root, build the three service targets with the server's bake definition:

.. code-block:: console

$ docker buildx bake --file server/docker-bake.hcl

The default group builds ``linux/amd64`` and ``linux/arm64`` images.
The ``VERSION`` variable selects the version tag alongside ``latest``.
The image names and service targets remain the same.
File renamed without changes.
2 changes: 1 addition & 1 deletion server/tests/vws_mock_server_tests/test_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def fixture_mock_deployment() -> Iterator[_MockDeployment]:
"""
repository_root = str(
object=find_root(
criterion=has_file(file="docker-bake.hcl"),
criterion=has_file(file="uv.lock"),
start=Path(__file__).resolve(),
)
)
Expand Down
Loading