Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/build_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,35 @@ jobs:
tags: |
type=sha,prefix=${{ inputs.arch }}-,format=long

- name: Stage mirage-skeleton app source
if: ${{ inputs.framework == 'mirage' }}
run: |
git submodule update --init mirage-skeleton
case "${{ inputs.app }}" in
net-mirage) src=device-usage/network ;;
hello-key-mirage) src=tutorial/hello-key ;;
esac
cp "mirage-skeleton/$src/config.ml" "mirage-skeleton/$src/unikernel.ml" \
"${{ inputs.app }}/${{ inputs.framework }}/${{ inputs.monitor }}/"

- name: Checkout rumprun-packages
if: ${{ inputs.framework == 'rumprun' }}
uses: actions/checkout@v4
with:
repository: cloudkernels/rumprun-packages
ref: feat_update_docker
path: rumprun-packages

- name: Stage rumprun app data
if: ${{ inputs.framework == 'rumprun' }}
run: |
case "${{ inputs.app }}" in
rumprun-httpreply) src=nginx ;;
rumprun-redis) src=redis ;;
esac
cp -r "rumprun-packages/$src/data" \
"${{ inputs.app }}/${{ inputs.framework }}/${{ inputs.monitor }}/data"

- name: Build and push
id: build-and-push
uses: docker/build-push-action@v6
Expand Down
14 changes: 14 additions & 0 deletions hello-key-mirage/mirage/hvt/bunnyfile-amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#syntax=harbor.nbfc.io/nubificus/bunny:937585f
version: v0.1

platforms:
framework: mirage
monitor: hvt
architecture: x86

app:
name: hello-key
from: local
path: .

cmdline: "--hello=`Bunny`"
12 changes: 12 additions & 0 deletions net-mirage/mirage/hvt/bunnyfile-amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#syntax=harbor.nbfc.io/nubificus/bunny:937585f
version: v0.1

platforms:
framework: mirage
monitor: hvt
architecture: x86

app:
name: net
from: local
path: .
21 changes: 21 additions & 0 deletions rumprun-httpreply/rumprun/hvt/bunnyfile-amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#syntax=harbor.nbfc.io/nubificus/bunny:61c49ad
version: v0.1

platforms:
framework: rumprun
monitor: hvt
architecture: x86

rootfs:
from: scratch
type: raw
include:
- data/www:/www
- data/conf:/conf

app:
name: nginx
from: github.com/cloudkernels/rumprun-packages
branch: feat_update_docker

cmd: ["nginx"]
20 changes: 20 additions & 0 deletions rumprun-redis/rumprun/hvt/bunnyfile-amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#syntax=harbor.nbfc.io/nubificus/bunny:61c49ad
version: v0.1

platforms:
framework: rumprun
monitor: hvt
architecture: x86

rootfs:
from: scratch
type: raw
include:
- data/conf:/conf

app:
name: redis
from: github.com/cloudkernels/rumprun-packages
branch: feat_update_docker

cmd: ["redis-server", "/data/conf/redis.conf"]