aiidalab / aiidalab/aiidalab-docker-stack

New jupyter image has a default entrypoint, making debugging annoying

オープン
#583 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
10
フォーク
15
平均マージ
1日 18時間
マージ済み PR(30日)
3

説明

I often run one-off commands on the image to debug them, e.g.

```
docker run --rm aiidalab/full-stack:edge pip show aiida-core
```

I noticed that since we upgraded to Python 3.12 image, the container first goes through the whole startup sequence (including all the added AiiDAlab services) and only then executes the command, which is very annoying.

The workaround is to override the entrypoint like so

```
docker run --rm --entrypoint bash aiidalab/full-stack:edge -c "pip show aiida-core"
```

(notice the extra `-c` and quoting)

At the very least we should document this in README, and perhaps consider overriding the ENTRYPOINT to go back to the previous behaviour? Not sure what the implications would be.

Here's a good primer about a differences between `RUN`, `CMD` and `ENTRYPOINT`:

https://www.docker.com/blog/docker-best-practices-choosing-between-run-cmd-and-entrypoint/

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

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

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

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