Commit graph

15 commits

Author SHA1 Message Date
Sanne Raymaekers
4ae6d3b155 cockpit/spec: drop obsoletes for now
Let's wait with obsoleting cockpit-composer until enough features are
working.
2025-01-16 12:40:43 +01:00
Sanne Raymaekers
f5fa3d749e cockpit/spec: full source url
Releases will be created on github which should have this source
attached to them.
2025-01-15 12:18:05 +01:00
Sanne Raymaekers
f86586101a cockpit/spec: set version to 54
Cockpit-composer left at 53, cockpit-image-builder picks it up from 54.
2025-01-15 12:18:05 +01:00
Sanne Raymaekers
57d40ccecf cockpit/spec: reformat description
Fixes `description-line-too-long` error.
2025-01-15 12:18:05 +01:00
Sanne Raymaekers
b98ca9f089 cockpit/spec: capitalise summary
Fixes `summary-not-capitalized` rpmlint warning.
2025-01-15 12:18:05 +01:00
Sanne Raymaekers
acc15d1323 cockpit/spec: add changelog section 2025-01-15 12:18:05 +01:00
Sanne Raymaekers
6a5ef971c1 cockpit/spec: move metadata validation to check section 2025-01-15 12:18:05 +01:00
Sanne Raymaekers
a04e92e813 cockpit/spec: drop source maps in install section
Source maps should only be used for debugging.
2025-01-15 12:18:05 +01:00
Sanne Raymaekers
b18bd059ea cockpit/spec: add obsoletes/provides for cockpit-composer 2025-01-15 12:18:05 +01:00
Sanne Raymaekers
c05531f4fa cockpit/spec: fix license name 2025-01-15 12:18:05 +01:00
Gianluca Zuccarelli
94abf8e617 README: add empty README 2025-01-14 12:09:59 +01:00
Gianluca Zuccarelli
926ce465da cockpit/metainfo: add basic metainfo file
This is almost a straight copy from the cockpit-composer repo.
2025-01-14 12:09:59 +01:00
Gianluca Zuccarelli
a01bc0d1de cockpit/specfile: add initial specfile 2025-01-14 12:09:59 +01:00
Gianluca Zuccarelli
2b82fa3c4b tsconfig: cockpit plumbing
It was necessary to do a bit of plumbing to get typescript, webpack &
vitest all happy. To do this we had had to create a separate tsconfig
for the on-prem version and the service frontend.

We override the module resolution for both config files. For on-prem we
check modules in `pkg/lib` and for the service we resolve the modules to
stub functions of the `cockpit` & `cockpit/fsinfo` modules. This was so
typescript and webpack would not complain.

For on-prem we had to intruct webpack to resolve modules from both
`node_modules` and `pkg/lib`. While for the service we set the
resulotion for the two modules to false, which means they won't get
bundled with the service.

Lastly, we needed to set some aliases in the vitest config so that
vitest could resolve the `cockpit` & `cockpit/fsinfo` modules.

Using the cjs `require` keyword to import cockpit would have worked to
make typescript and webpack compile since these imports are not
statically analysed like the `import` keyword is. However, this approach
broke the tests as `require` imports are not supported in vitest.
2024-12-21 08:19:15 -06:00
Michal Gold
82f3f38e56 cockpit: add webpack config and support for Cockpit
Configured Webpack and setup of cockpit to support
building and running image builder as a cockpit plugin
(On-premise)
2024-10-30 10:36:18 -05:00