devcontainers / devcontainers/cli
Question - Publishing OCI Artifacts - Should the layer be compressed?
- Ngôn ngữ chính
- TypeScript
- Star
- 3k
- Fork
- 457
- Merge trung bình
- 13 giờ 17 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
I am currently building a new supporting tool and just wondering if this is correct.
```shell
$ oras pull ghcr.io/devcontainers/features/git:latest
Downloading ebd18821c6cc devcontainer-feature-git.tgz
Downloaded ebd18821c6cc devcontainer-feature-git.tgz
Pulled [registry] ghcr.io/devcontainers/features/git:latest
Digest: sha256:f839be8a0203abe12c917b262b1a1330b8286f9576ef21ea4a26ed60c5bc9947
$ file devcontainer-feature-git.tgz
devcontainer-feature-git.tgz: POSIX tar archive
```
Inspecting the layer manually reveals that the _media type_ is `application/vnd.devcontainers.layer.v1+tar`. However, the filename from the `org.opencontainers.image.title` annotation gives a ".tgz" extension. The actual file does not seem to be compressed.
I'm just wondering which is actually correct? A bare tar archive? Or a gzip'd compressed version?
Hướng dẫn đóng góp
Hướng nghiên cứu
Tái hiện lệnh `oras pull ghcr.io/devcontainers/features/git:latest` và kiểm tra layer đã tải xuống, media type `application/vnd.devcontainers.layer.v1+tar` của layer đó, cùng annotation `org.opencontainers.image.title`. So sánh encoding của archive quan sát được với các yêu cầu của OCI và dev container artifacts; được xem là hoàn tất khi đã ghi lại representation và phần mở rộng tệp mà publisher nên sử dụng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Lĩnh vực
- devops
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100