Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
slapos slapos
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 122
    • Merge requests 122
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slaposslapos
  • Merge requests
  • !1427

Merged
Created Sep 14, 2023 by Titouan Soulard@tsoulardDeveloper

software/theia: add `jq` as a dependency

  • Overview 5
  • Commits 1
  • Changes 4

Abstract: this MR is a first step towards being able to use Bash scripts in order to automate slapos.

Context of the MR

As of today, SlapOS returns JSON when some commands get executed (request) being one of them. It would be nice to be able to parse this JSON and reinject it into other commands. An example of what could be done is automating the frontend request when instantiating ERP5, using something like:

IPV6=$(slapos request --state started --parameters-file ~/srv/project/request-parameter-slaposmaster.json slaposmaster ~/srv/project/slapos/software/slapos-master/software.cfg | jq [PARAMETERS])
slapos request --type custom-personal --slave slaposmasterfrontend http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg --parameters 'type=zope' 'url=https://$IPV6:2152'

Getting this will require at least changes in slapos and in slapos.core.

Description of the MR

This MR is the slapos part of the proposed change, and does very little: it allows to use jq inside Theia. The current repository already had a component/jq directory, so I simply:

  • updated that component to the latest version of jq;
  • updated the required dependency (oniguruma);
  • added the jq component as a dependency to theia.

By deploying the slapos repository containing this change, you should therefore be able to run jq --version inside the Theia terminal.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: add-jq-theia
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7