Add jq and yq packages to images

Created on 14 November 2024, about 1 month ago

Problem/Motivation

From time to time scripts operating in .gitlab-ci need to make changes to JSON, YAML, and XML files based on current

Steps to reproduce

https://git.drupalcode.org/project/quasar_build/-/blob/7fc317ea6df9072e5...
https://git.drupalcode.org/project/gitlab_templates/-/commit/61563ab8de2...
(this could be simplified to a single command cat input.xml| xq-python -x 'del(.phpunit.source)' > output.xml)

Proposed resolution

add jq(provides jq) and yq(provides yq and xq-python, depends upon jq) to base images to allow manipulating files as part of build process.

Remaining tasks

User interface changes

API changes

jq, yq and xq-python will be available on the images.

Data model changes

✨ Feature request
Status

Active

Component

PHP Containers

Created by

πŸ‡ΊπŸ‡ΈUnited States cmlara

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @cmlara
  • πŸ‡ΊπŸ‡ΈUnited States cmlara

    Clarifying: this originally was intended to ask for kislyuk/yq

    There is mikefarah/yq however it notes it supports a smaller syntax than kislyuk/yq

    ksislyuk/yq works by converting XML to JSON allowing jq to use its natural language support.

Production build 0.71.5 2024