bazelbuild / bazelbuild/rules_docker
Multi-Architecture Support for container_run_and_commit
- 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
Assessment
This issue has not been assessed yet.