bazelbuild / bazelbuild/rules_docker

Multi-Architecture Support for container_run_and_commit

Open
#2,239 2 comments 0 reactions 0 assignees View on GitHub
Can Close?
Dominant language
Starlark
Stars
1.1k
Forks
689
PR merge metrics
No merged PRs in 30d

Description

# 🚀 feature request

### Relevant Rules

Ability to exectue `container_run_and_commit` under a different architecture set

### Description

I'm building a Java amd and arm container. `keytool` invokes the binary within the container thus failing to run on my AMD64 chipset.

```python
container_run_and_commit(
name = java_version + "_" + arch + "_" + distro + "_install",
commands = [
"keytool -storepasswd -new $KEY_TOOL_PWD -storepass changeit -cacerts",
],
image = java_version + "_" + arch + "_" + distro + "_installer.tar",
)
```

### Describe the solution you'd like

Emulate the commandset like how `docker buildx` does it.

### Describe alternatives you've considered

None

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.