add support for requirements.txt

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
docker, python
領域
devops

調査の方向性

まず、Python Dockerfile 生成のエントリーポイントと、インストールコマンドを組み立てるロジックを見つけます。入力の一つとしてリポジトリルートの requirements.txt を使用し、もう一つとして存在しないファイルを使用します。ファイルが存在する場合にのみ依存関係がインストールされ、存在しない場合はそのステップがスキップされることを確認できれば完了です。関連するプロジェクトのテストを実行して、両方のケースを検証します。

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

説明

enhancement

Is your feature request related to a problem? Please describe.
Make the python dockerfile run pip install requirements.txt if the file exists at the root

we could inline it with something like [ -f "/requirements.txt" ] && pip install requirements.txt so that it only runs if the file is there

Mention what platform you want to support the new feature
oss draft

Describe the solution you'd like
when a repo is supplied to draft with a requirements.txt, it should install them

when a repo is supplied without a requirements.txt, this step should be skipped

Describe alternatives you've considered
making a new prompt or separated dockerfile for "python_with_requirements"- but this seems like extra complexity and maintenance burden when we could just add it to the one dockerfile we already have

Additional context

主要言語
Go
スター
644
フォーク
74
PR マージ指標
30日以内にマージされた PR はありません

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

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

はじめの一歩

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

Azure/draft のほかの issue

Azure/draft の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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