bazel-contrib / bazel-contrib/rules_python
Support native binary-based stage1 bootstrap
- Langage dominant
- Starlark
- Étoiles
- 688
- Forks
- 721
- Merge moyen
- 15 h 7 min
- PR mergées (30 j)
- 76
Description
# 🚀 feature request
### Relevant Rules
`py_binary`
### Description
With a similar motivation as #691, we would like to package a `py_binary` (including runfiles) into an `oci_image` and run it within a minimum base image like [distroless_base](https://github.com/GoogleContainerTools/distroless/tree/main/base) in order to minimize the attack surface. This does not come with a shell and other tools which are required by #1929 so this unfortunately doesn't help us.
### Describe the solution you'd like
Use a statically linked executable as loader.
### Describe alternatives you've considered
Add more stuff to the base image. This is suboptimal as this does not only increase the size but also the attack surface.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par examiner l’intégration existante de py_binary et oci_image, puis lisez les discussions associées dans #691 et #1929. Aucun fichier source ni test n’est nommé dans l’issue. Le travail est considéré comme terminé lorsqu’un py_binary, y compris ses runfiles, peut s’exécuter depuis une image distroless_base minimale en utilisant un exécutable lié statiquement comme loader.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- build-system
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 30/100