{"id":17548802,"url":"https://github.com/lslezak/cockpit-transactional-update","last_synced_at":"2026-01-19T08:01:59.838Z","repository":{"id":55599345,"uuid":"309438657","full_name":"lslezak/cockpit-transactional-update","owner":"lslezak","description":"PoC for a Cockpit plugin","archived":false,"fork":false,"pushed_at":"2020-12-19T02:21:20.000Z","size":483,"stargazers_count":0,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T21:43:51.311Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lslezak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-02T17:04:33.000Z","updated_at":"2020-11-23T16:28:56.000Z","dependencies_parsed_at":"2022-08-15T04:01:08.085Z","dependency_job_id":null,"html_url":"https://github.com/lslezak/cockpit-transactional-update","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lslezak/cockpit-transactional-update","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lslezak%2Fcockpit-transactional-update","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lslezak%2Fcockpit-transactional-update/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lslezak%2Fcockpit-transactional-update/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lslezak%2Fcockpit-transactional-update/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lslezak","download_url":"https://codeload.github.com/lslezak/cockpit-transactional-update/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lslezak%2Fcockpit-transactional-update/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28563219,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-21T02:44:13.565Z","updated_at":"2026-01-19T08:01:57.922Z","avatar_url":"https://github.com/lslezak.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cockpit Transactional Update\n\nA transactional update module for [Cockpit](http://www.cockpit-project.org).\n\n:warning: This is a proof of concept module in development state!\nNot ready for production!\n\nThe code is based on the [Cockpit Starter Kit](\nhttps://github.com/cockpit-project/starter-kit).\n\n# Getting and building the source\n\nMake sure you have `npm` and `make` available, install them (in openSUSE):\n\n```\nsudo zypper install npm make\n```\n\nThese commands check out the source and build it into the `dist/` directory:\n\n```\ngit clone https://github.com/lslezak/cockpit-transactional-update.git\ncd cockpit-transactional-update\nmake\n```\n\n# The DBus Service\n\nThis module requires a special DBus service as a background for executing the\nreal transactional actions.\n\nSo far there is no such a service for that. But there is a testing service\nin the `dbus/` subdirectory serving as a PoC example.\n\n## Installation\n\n```\ncd dbus\nsudo make install\n```\n\nThis will install the DBus configuration files so the application is allowed\nto connect to the system bus.\n\n## Running the service\n\nThe DBus can start the service automatically in background, but it is\nrecommended to start it manually to see the debugging output and use some\ntesting data.\n\n```\ncd dbus\nsudo ./tu-server.rb --patch data/patches.xml\n```\n\nThis wil read the patches from a `zypper` dump instead of really calling\n`zyppper`.\n\n\n# Installing\n\n`make install` compiles and installs the package in `/usr/share/cockpit/`. The\nconvenience targets `srpm` and `rpm` build the source and binary rpms,\nrespectively. Both of these make use of the `dist-gzip` target, which is used\nto generate the distribution tarball. In `production` mode, source files are\nautomatically minified and compressed. Set `NODE_ENV=production` if you want to\nduplicate this behavior.\n\nFor development, you usually want to run your module straight out of the git\ntree. To do that, link that to the location were `cockpit-bridge` looks for packages:\n\n```\nmake devel-install\n```\n\nAfter changing the code and running `make` again, reload the Cockpit page in\nyour browser.\n\nYou can also use\n[watch mode](https://webpack.js.org/guides/development/#using-watch-mode) to\nautomatically update the webpack on every code change with\n\n```\nnpm run watch\n```\nor\n```\nmake watch\n```\n\n# Running eslint\n\nThis module uses [ESLint](https://eslint.org/) to automatically check\nJavaScript code style in `.js` and `.jsx` files.\n\nThe linter is executed within every build as a webpack preloader.\n\nFor developer convenience, the ESLint can be started explicitly by:\n\n```\nnpm run eslint\n```\n\nViolations of some rules can be fixed automatically by:\n\n```\nnpm run eslint:fix\n```\n\nRules configuration can be found in the `.eslintrc.json` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flslezak%2Fcockpit-transactional-update","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flslezak%2Fcockpit-transactional-update","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flslezak%2Fcockpit-transactional-update/lists"}