This commit is contained in:
Motiejus Jakštys 2021-05-24 00:11:58 +03:00
parent 82c2d77d04
commit afa64b46b7
2 changed files with 12 additions and 7 deletions

14
BUILD
View File

@ -1,6 +1,8 @@
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("//src/undocker:rules.bzl", "rootfs")
load("@io_bazel_rules_docker//container:container.bzl", "container_bundle",
load(
"@io_bazel_rules_docker//container:container.bzl",
"container_bundle",
)
go_library(
@ -22,12 +24,12 @@ go_binary(
)
container_bundle(
name="alpine",
images={"base": "@alpine//image"},
name = "alpine",
images = {"base": "@alpine//image"},
)
rootfs(
name="alpine-rootfs1",
src=":alpine.tar",
output="alpine-rootfs.tar",
name = "alpine-rootfs1",
src = ":alpine.tar",
output = "alpine-rootfs.tar",
)

View File

@ -12,5 +12,8 @@ go_test(
name = "go_default_test",
srcs = ["tartest_test.go"],
embed = [":go_default_library"],
deps = ["@com_github_stretchr_testify//assert:go_default_library"],
deps = [
"@com_github_stretchr_testify//assert:go_default_library",
"@com_github_stretchr_testify//require:go_default_library",
],
)