@@ -84,3 +84,78 @@ yarn_install(
8484 quiet = False ,
8585 yarn_lock = "//embeddy:yarn.lock" ,
8686)
87+
88+ http_archive (
89+ name = "io_bazel_rules_docker" ,
90+ sha256 = "b1e80761a8a8243d03ebca8845e9cc1ba6c82ce7c5179ce2b295cd36f7e394bf" ,
91+ urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.25.0/rules_docker-v0.25.0.tar.gz" ],
92+ )
93+
94+ # OPTIONAL: Call this to override the default docker toolchain configuration.
95+ # This call should be placed BEFORE the call to "container_repositories" below
96+ # to actually override the default toolchain configuration.
97+ # Note this is only required if you actually want to call
98+ # docker_toolchain_configure with a custom attr; please read the toolchains
99+ # docs in /toolchains/docker/ before blindly adding this to your WORKSPACE.
100+ # BEGIN OPTIONAL segment:
101+ load ("@io_bazel_rules_docker//toolchains/docker:toolchain.bzl" ,
102+ docker_toolchain_configure = "toolchain_configure"
103+ )
104+ # docker_toolchain_configure(
105+ # name = "docker_config",
106+ # # OPTIONAL: Bazel target for the build_tar tool, must be compatible with build_tar.py
107+ # build_tar_target="<enter absolute path (i.e., must start with repo name @...//:...) to an executable build_tar target>",
108+ # # OPTIONAL: Path to a directory which has a custom docker client config.json.
109+ # # See https://docs.docker.com/engine/reference/commandline/cli/#configuration-files
110+ # # for more details.
111+ # client_config="<enter Bazel label to your docker config.json here>",
112+ # # OPTIONAL: Path to the docker binary.
113+ # # Should be set explicitly for remote execution.
114+ # docker_path="<enter absolute path to the docker binary (in the remote exec env) here>",
115+ # # OPTIONAL: Path to the gzip binary.
116+ # gzip_path="<enter absolute path to the gzip binary (in the remote exec env) here>",
117+ # # OPTIONAL: Bazel target for the gzip tool.
118+ # gzip_target="<enter absolute path (i.e., must start with repo name @...//:...) to an executable gzip target>",
119+ # # OPTIONAL: Path to the xz binary.
120+ # # Should be set explicitly for remote execution.
121+ # xz_path="<enter absolute path to the xz binary (in the remote exec env) here>",
122+ # # OPTIONAL: Bazel target for the xz tool.
123+ # # Either xz_path or xz_target should be set explicitly for remote execution.
124+ # xz_target="<enter absolute path (i.e., must start with repo name @...//:...) to an executable xz target>",
125+ # # OPTIONAL: List of additional flags to pass to the docker command.
126+ # docker_flags = [
127+ # "--tls",
128+ # "--log-level=info",
129+ # ],
130+
131+ # )
132+ # End of OPTIONAL segment.
133+
134+ load (
135+ "@io_bazel_rules_docker//repositories:repositories.bzl" ,
136+ container_repositories = "repositories" ,
137+ )
138+ container_repositories ()
139+
140+ load ("@io_bazel_rules_docker//repositories:deps.bzl" , container_deps = "deps" )
141+
142+ container_deps ()
143+
144+ load (
145+ "@io_bazel_rules_docker//container:container.bzl" ,
146+ "container_pull" ,
147+ )
148+ load (
149+ "@io_bazel_rules_docker//go:image.bzl" ,
150+ _go_image_repos = "repositories" ,
151+ )
152+
153+ _go_image_repos ()
154+
155+ container_pull (
156+ name = "static_base" ,
157+ registry = "gcr.io" ,
158+ repository = "distroless/static" ,
159+ # 'tag' is also supported, but digest is encouraged for reproducibility.
160+ digest = "sha256:d1d4a57d06e3c59f71cd1d72d894ab2a3c17973684d42348fbe84c1396fb4b41" ,
161+ )
0 commit comments