Skip to content

Commit

Permalink
Make contrib a top-level directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmoor committed Sep 26, 2017
1 parent 09726b3 commit 2aeed2f
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
8 changes: 4 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@ docker_pull(

# Have the py_image dependencies for testing.
load(
"//docker/contrib/python:image.bzl",
"//contrib/python:image.bzl",
_py_image_repos = "repositories",
)

_py_image_repos()

# Have the cc_image dependencies for testing.
load(
"//docker/contrib/cc:image.bzl",
"//contrib/cc:image.bzl",
_cc_image_repos = "repositories",
)

_cc_image_repos()

# Have the java_image dependencies for testing.
load(
"//docker/contrib/java:image.bzl",
"//contrib/java:image.bzl",
_java_image_repos = "repositories",
)

Expand All @@ -76,7 +76,7 @@ go_repositories()

# Have the go_image dependencies for testing.
load(
"//docker/contrib/go:image.bzl",
"//contrib/go:image.bzl",
_go_image_repos = "repositories",
)

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docker/contrib/cc/image.bzl → contrib/cc/image.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The signature of this rule is compatible with cc_binary.
"""

load(
"//docker/contrib/common:lang-image.bzl",
"//contrib/common:lang-image.bzl",
"dep_layer",
"app_layer",
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docker/contrib/go/image.bzl → contrib/go/image.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The signature of this rule is compatible with go_binary.
"""

load(
"//docker/contrib/common:lang-image.bzl",
"//contrib/common:lang-image.bzl",
"dep_layer",
"app_layer",
)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion docker/contrib/java/image.bzl → contrib/java/image.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def java_files(f):
return []

load(
"//docker/contrib/common:lang-image.bzl",
"//contrib/common:lang-image.bzl",
"dep_layer_impl",
"layer_file_path",
)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion docker/contrib/push-all.bzl → contrib/push-all.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ container_push = rule(
],
),
"_all_tpl": attr.label(
default = Label("//docker/contrib:push-all.sh.tpl"),
default = Label("//contrib:push-all.sh.tpl"),
single_file = True,
allow_files = True,
),
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The signature of this rule is compatible with py_binary.
"""

load(
"//docker/contrib/common:lang-image.bzl",
"//contrib/common:lang-image.bzl",
"dep_layer",
"app_layer",
)
Expand Down
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions docker/testdata/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ genrule(
# )

load(
"//docker/contrib:with-tag.bzl",
"//contrib:with-tag.bzl",
docker_build_with_tag = "docker_build",
)

Expand All @@ -382,7 +382,7 @@ docker_build_with_tag(
)

load(
"//docker/contrib:push-all.bzl",
"//contrib:push-all.bzl",
docker_pushall = "docker_push",
oci_pushall = "oci_push",
)
Expand All @@ -409,7 +409,7 @@ oci_pushall(
bundle = ":bundle_to_push",
)

load("//docker/contrib:passwd.bzl", "passwd_file")
load("//contrib:passwd.bzl", "passwd_file")

passwd_file(
name = "testpasswd",
Expand Down Expand Up @@ -472,7 +472,7 @@ docker_import(
)

load(
"//docker/contrib/python:image.bzl",
"//contrib/python:image.bzl",
"py_image",
)

Expand All @@ -491,7 +491,7 @@ py_image(
)

load(
"//docker/contrib/cc:image.bzl",
"//contrib/cc:image.bzl",
"cc_image",
)

Expand All @@ -509,7 +509,7 @@ cc_image(
)

load(
"//docker/contrib/java:image.bzl",
"//contrib/java:image.bzl",
"java_image",
"war_image",
)
Expand Down Expand Up @@ -550,7 +550,7 @@ war_image(
)

load(
"//docker/contrib/go:image.bzl",
"//contrib/go:image.bzl",
"go_image",
)

Expand Down
6 changes: 3 additions & 3 deletions testing/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function clear_docker() {

function test_bazel_build_then_run_docker_build_clean() {
cd "${ROOT}"
for target in $(bazel query 'kind("docker_build", "docker/testdata/...")');
for target in $(bazel query 'kind("container_image", "docker/testdata/...")');
do
clear_docker
bazel build $target
Expand All @@ -109,7 +109,7 @@ function test_bazel_build_then_run_docker_build_clean() {

function test_bazel_run_docker_build_clean() {
cd "${ROOT}"
for target in $(bazel query 'kind("docker_build", "docker/testdata/...")');
for target in $(bazel query 'kind("container_image", "docker/testdata/...")');
do
clear_docker
bazel run $target
Expand Down Expand Up @@ -137,7 +137,7 @@ function test_bazel_run_docker_import_clean() {
function test_bazel_run_docker_build_incremental() {
cd "${ROOT}"
clear_docker
for target in $(bazel query 'kind("docker_build", "docker/testdata/...")');
for target in $(bazel query 'kind("container_image", "docker/testdata/...")');
do
bazel run $target
done
Expand Down

0 comments on commit 2aeed2f

Please sign in to comment.