Skip to content

Commit

Permalink
WIP: py interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Jul 27, 2023
1 parent d459d8d commit 673a965
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 1 deletion.
12 changes: 11 additions & 1 deletion oci_python_image/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,14 @@ oci.pull(
image = "python",
)

use_repo(oci, "distroless_python")
oci.pull(
name = "distroless_base",
digest = "sha256:ccaef5ee2f1850270d453fdf700a5392534f8d1a8ca2acda391fbb6a06b81c86",
image = "gcr.io/distroless/base",
platforms = [
"linux/amd64",
"linux/arm64",
],
)

use_repo(oci, "distroless_base", "distroless_python")
14 changes: 14 additions & 0 deletions oci_python_image/interpreter_as_layer/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pkg_tar(
name = "interpreter",
srcs = ["@rules_python//python:current_py_toolchain"],
extension = "tar.gz",
package_dir = "/opt/python",
strip_prefix = ".",
)

oci_image(
name = "image",
base = "@distroless_base",
entrypoint = ["/opt/hello_world/hello_world_bin"],
tars = [":hello_world_layer"],
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 673a965

Please sign in to comment.