jfxs/rye

By jfxs

Updated 28 days ago

A Python Docker image with Rye

Image
Languages & frameworks
1

50K+

jfxs/rye repository overview

Rye

Software License Pipeline Status

A Python Docker image with Rye mainly to use in a CI pipeline:

  • lightweight image based on a debian-slim,
  • multiarch with support of amd64 and arm64,
  • automatically updated by comparing software bill of materials (SBOM) changes,
  • image signed with Cosign,
  • a software bill of materials (SBOM) attestation added using Syft,
  • available on Docker Hub and Quay.io.

GitLab The main repository.

Docker Hub The Docker Hub registry.

Quay.io The Quay.io registry.

Running Rye

docker run -t --rm -v $(pwd):/workdir jfxs/rye /bin/bash -c "rye run python3 --version"

Running Rye in Gitlab-CI

Example of usage with Gitlab-CI:

 ...
gitlab-release:
  image: jfxs/rye
  stage: build
  script:
    - rye run python3 --version
    - rye sync

Built with

Docker latest tag is 0.44.0-037, 0.44, 0 and has:

NameVersionType
ca-certificates20230311+deb12u1deb
curl7.88.1-10+deb12u15deb
git1:2.39.5-0+deb12u3deb
github.com/go-task/task/v3v3.52.0go-module
pip24.3.1python
python3.12.9UnknownPackage
ruff0.9.6python
virtualenv20.25.0python
wget1.21.3-1+deb12u1deb

Dockerhub Overview page has the details of the last published image.

Versioning

Docker tag definition:

  • the rye version used,
  • a dash
  • an increment to differentiate build with the same version starting at 001
<rye_version>-<increment>

Example: 0.26.0-001

Signature and attestation

Cosign public key:

-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEa3yV6+yd/l4zh/tfT6Tx+zn0dhy3
BhFqSad1norLeKSCN2MILv4fZ9GA6ODOlJOw+7vzUvzZVr9IXnxEdjoWJw==
-----END PUBLIC KEY-----

The public key is also available online: https://gitlab.com/op_so/docker/cosign-public-key/-/raw/main/cosign.pub.

To verify an image:

cosign verify --key cosign.pub $IMAGE_URI

To verify and get the software bill of materials (SBOM) attestation:

cosign verify-attestation --key cosign.pub --type spdxjson $IMAGE_URI | jq '.payload | @base64d | fromjson | .predicate'

Authors

License

This program is free software: you can redistribute it and/or modify it under the terms of the MIT License (MIT). See the LICENSE for details.

Tag summary

Content type

Image

Digest

sha256:f3953eafb

Size

226.7 MB

Last updated

28 days ago

docker pull jfxs/rye