DiamondLightSource / DiamondLightSource/python-copier-template

umask of containers created from python3 Dockerfile does not match Diamond default

Aperta
#164 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Jinja
Stelle
25
Fork
10
Merge medio
4h 4m
PR unite (30g)
6

Descrizione

For the case where:

- You create a containerised service
- Which mounts the Diamond filesystem
- And create files which are intended to be temporary, interleved with existing files

The current umask means those temporary files cannot be deleted by the user that created the directory that stores those files.
E.g. __pycache__ files made during an editable install of a library loaded from filesystem for blueapi, checked out by a member of dls_dasc

For blueapi (where we meet these requirements) we are [now setting the umask](https://github.com/DiamondLightSource/blueapi/pull/480/files): is anyone else going to meet those requirements and if so should this be configurable as part of the template, perhaps propagating into the Dockerfile?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by inspecting the python3 Dockerfile generated by the template and compare its umask with the Diamond default. Use the blueapi pull request linked in the issue as an example, then define what template configuration should control and verify that generated containers allow the creating user to remove temporary files.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
dockerfile, python
Ambito
devops
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.