aiidalab / aiidalab/aiidalab-docker-stack

New jupyter image has a default entrypoint, making debugging annoying

Đang mở
#583 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
10
Fork
15
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
3

Mô tả

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/

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.