crossbario / crossbario/autobahn-python

CI: auto-generate list of published Docker image references

Open
#1,516 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

CI-CD enhancement
Dominant language
Python
Stars
2.5k
Forks
768
PR merge metrics
No merged PRs in 30d

Description

After building and uploading new Docker images for Autobahn, it would be great to have the new Docker images listed in a way that allows exact reference and direct use in other projects

Docker CLI and docker-compose allows to read env vars from a .env file, that if present, will make env vars already available during "docker-compose" phase (not only inside containers)

# Docker image references for Autobahn v21.1.1 (20220128-dc626948)
# https://hub.docker.com/r/crossbario/autobahn-python/tags?page=1&name=22.1.1

DOCKER_IMAGE_AUTOBAHN_PYTHON=crossbario/autobahn-python@sha256:dfed71b8441e219f2746ff08398d1571e99c666bf85bb4136fe2f9bf1a568650

Above can be computed like this

echo ${AUTOBAHN_VERSION}
echo ${AUTOBAHN_BUILD_ID}

docker inspect --format='{{index .RepoDigests 0}}' \
    crossbario/autobahn-python:cpy-amd64-${AUTOBAHN_VERSION}-${AUTOBAHN_BUILD_ID}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the CI step that builds and uploads Autobahn's Docker images, then inspect how AUTOBAHN_VERSION and AUTOBAHN_BUILD_ID are exposed. Generate the requested .env-style output with image references resolved from RepoDigests, including the version, build ID, tag link, and exact digest; verify it can be consumed during docker-compose processing.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, python
Domain
ci-cd, devops, release
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.