Skip to content

Commit

Permalink
capstan: add script to automate building capstan MPM packages
Browse files Browse the repository at this point in the history
This patch adds new script - build-capstan-mpm-packages - to help
automate process of creating capstan packages intended to be used
to assemble OSv images out of them. The script is actually a refined version
of the original one from my external project - https://github.com/wkozaczuk/docker_osv_builder.
For details on how to use the script and what it does read
the comments section in the beginning of build-capstan-mpm-packages.
In essence it builds an OSv module or app to export its content
and create corresponding capstan MPM packages placed
under $HOME/.capstan/packages. Requires capstan present.

The script has at least 3 intended usages:
1) help build packages to be uploaded for new release
2) help build packages out of OSV modules and apps
3) eventually help automates testing OSv by using prebuilt test packages
   to composes test images out of them

Finally this patch adds package descriptor files (mpm/package.yaml)
to help drive annotating packages with correct meta information.

Signed-off-by: Waldemar Kozaczuk <[email protected]>
  • Loading branch information
wkozaczuk committed Sep 12, 2019
1 parent dfc8949 commit e083146
Show file tree
Hide file tree
Showing 9 changed files with 406 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/cli/mpm/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: OSv Command Line
require:
- osv.httpserver-api
2 changes: 2 additions & 0 deletions modules/empty/mpm/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: osv.bootstrap
title: OSv Bootstrap
2 changes: 2 additions & 0 deletions modules/golang/mpm/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: osv.run-go
title: Run Golang wrapper
8 changes: 8 additions & 0 deletions modules/httpserver-api-tests/mpm/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: OSv httpserver API tests
require:
- osv.openjdk8-zulu-compact3-with-java-beans
#- osv.openjdk11-zulu
- osv.run-java
- osv.jetty
- osv.httpserver-api
- osv.libz
1 change: 1 addition & 0 deletions modules/httpserver-api/mpm/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: OSv httpserver with APIs (backend)
3 changes: 3 additions & 0 deletions modules/httpserver-html5-gui/mpm/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: OSv HTML5 GUI (frontend)
require:
- osv.httpserver-api
2 changes: 2 additions & 0 deletions modules/java-non-isolated/mpm/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: osv.run-java
title: Run Java wrapper
4 changes: 4 additions & 0 deletions modules/tests/mpm/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: osv.unit-tests
title: OSv Unit Tests
require:
- osv.openjdk8-zulu-compact3-with-java-beans
Loading

0 comments on commit e083146

Please sign in to comment.