Skip to content

Commit

Permalink
Merge pull request #154 from shanejbrown/main
Browse files Browse the repository at this point in the history
Fix intermittent test failures for missing busybox image
  • Loading branch information
shanejbrown authored Aug 21, 2024
2 parents 9e31cd1 + ee34aa5 commit 510dd2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buildrunner/docker/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ def start(self):
self._env["DOCKER_HOST"] = "unix:///dockerdaemon/docker.sock"

# create and start the Docker container
image_name = f"{self.docker_registry}/busybox:latest"
self.docker_client.pull(image_name)
self._daemon_container = self.docker_client.create_container(
f"{self.docker_registry}/busybox:latest",
image_name,
command="/bin/sh",
volumes=_volumes,
host_config=self.docker_client.create_host_config(binds=_binds),
Expand Down
2 changes: 2 additions & 0 deletions tests/test_push_artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def _test_buildrunner_file(
top_dir_path,
"-b",
temp_dir,
# Since we are using a fresh temp directory, don't delete it first
"--keep-step-artifacts",
"-f",
os.path.join(test_dir, file_name),
]
Expand Down

0 comments on commit 510dd2a

Please sign in to comment.