Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

rootful is broken

オープン
#217 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
docker, python

調査の方向性

Python Copier テンプレートの devcontainer.json 設定から始め、Docker または rootful Podman を使って動作を再現します。現在のコンテナユーザーの扱いを、以前の VSCODE_REMOTE_USER 回避策と比較します。コンテナが真の root として実行されることなく、またプロジェクトファイルを root 所有のまま残すことなく、引き続き使用可能であれば完了とします。

索引モデルが issue の本文から書いたものです。

説明

devcontainer

If you use the python copier template developer container and you have docker (or rootful podman) then it does not work as intended:

  • GOOD: it loads and you can work on the project and run tests
  • BAD: massively insecure as you are running as true root
  • UGLY: project files get written by root and the git gets really angry

There used to be a workaround to this in devcontainer.json

"remoteUser": "${localEnv:VSCODE_REMOTE_USER}" 

docker users were then expected to set VSCODE_REMOTE_USER=$(id -u):$(id -g) in their bashrc.
podman users need do nothing as blank == default == root which is just right in a a rootless container.

Not ideal. But it was the best I could come up with.

主要言語
Jinja
スター
25
フォーク
10
平均マージ
4日 17時間
マージ済み PR(30日)
7

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DiamondLightSource/python-copier-template のほかの issue

DiamondLightSource/python-copier-template の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。