[go: nahoru, domu]

Skip to content

Commit

Permalink
Add fedora container disk with pre-configured test tools to bazel cache
Browse files Browse the repository at this point in the history
Signed-off-by: David Vossel <davidvossel@gmail.com>
  • Loading branch information
davidvossel committed Feb 22, 2021
1 parent e2eeff1 commit abd9277
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ container_bundle(
"$(container_prefix)/$(image_prefix)virtio-container-disk:$(container_tag)": "//containerimages:virtio-container-disk-image",
# Customized container-disk images
"$(container_prefix)/$(image_prefix)fedora-sriov-lane-container-disk:$(container_tag)": "//containerimages:fedora-sriov-lane-container-disk-image",
"$(container_prefix)/$(image_prefix)fedora-with-test-tooling-container-disk:$(container_tag)": "//containerimages:fedora-with-test-tooling",
# testing images
"$(container_prefix)/$(image_prefix)disks-images-provider:$(container_tag)": "//images/disks-images-provider:disks-images-provider-image",
"$(container_prefix)/$(image_prefix)cdi-http-import-server:$(container_tag)": "//images/cdi-http-import-server:cdi-http-import-server-image",
Expand Down
9 changes: 9 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,15 @@ container_pull(
repository = "kubevirtci/nfs-ganesha", # see https://github.com/slintes/docker-nfs-ganesha
)

# Pull fedora container-disk preconfigured with ci tooling
# like stress and qemu guest agent pre-configured
container_pull(
name = "fedora_with_test_tooling",
digest = "sha256:618a624a703682482c473c105ecd6cce212993d2af856771437dbbf80f20b19d",
registry = "quay.io",
repository = "dvossel/fedora-with-test-tooling",
)

load(
"@io_bazel_rules_docker//go:image.bzl",
_go_image_repos = "repositories",
Expand Down
12 changes: 12 additions & 0 deletions containerimages/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,15 @@ container_image(
mode = "444",
visibility = ["//visibility:public"],
)

container_image(
name = "fedora-with-test-tooling",
architecture = select({
"//conditions:default": "amd64",
}),
base = select({
"//conditions:default": "@fedora_with_test_tooling//image",
}),
mode = "444",
visibility = ["//visibility:public"],
)

0 comments on commit abd9277

Please sign in to comment.