diff --git a/operator/BUILD.bazel b/operator/BUILD.bazel index feb020799..6555298d7 100644 --- a/operator/BUILD.bazel +++ b/operator/BUILD.bazel @@ -4,7 +4,6 @@ load( ) load("@io_bazel_rules_docker//docker/util:run.bzl", "container_run_and_commit_layer") - genrule( name = "kustomize_bin", srcs = ["@kustomize//file"], @@ -20,30 +19,34 @@ container_image( base = "@ansible-operator//image", directory = "/opt/ansible", files = [ - "requirements.yml", - "watches.yaml", - "roles", + "requirements.yml", + "watches.yaml", + "roles", ], ) container_run_and_commit_layer( name = "forklift-operator-image-layer-run", - image = ":forklift-operator-base-image.tar", commands = [ - "ansible-galaxy collection install -r /opt/ansible/requirements.yml && chmod -R ug+rwx /opt/ansible/.ansible", + "ansible-galaxy collection install -r /opt/ansible/requirements.yml && chmod -R ug+rwx /opt/ansible/.ansible", ], docker_run_flags = ["--entrypoint=''"], + image = ":forklift-operator-base-image.tar", ) container_image( name = "forklift-operator-image", base = ":forklift-operator-base-image", - #base = "@ansible-operator//image", + directory = "/opt/ansible", + entrypoint = [ + "/usr/bin/tini", + "--", + "/usr/local/bin/ansible-operator", + "run", + "--watches-file=./watches.yaml"], layers = [ - ":forklift-operator-image-layer-run", + ":forklift-operator-image-layer-run", ], - directory = "/opt/ansible", - entrypoint = ["/usr/bin/tini", "--", "/usr/local/bin/ansible-operator", "run", "--watches-file=./watches.yaml"], user = "1001", visibility = ["//visibility:public"], )