This is an automated email from the ASF dual-hosted git repository.

d4rkstar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless.git


The following commit(s) were added to refs/heads/main by this push:
     new af4c52c   compilation of streamer and systemapi (#200)
af4c52c is described below

commit af4c52c5919353cd1781c99f7e623472f361c2ca
Author: Michele Sciabarra <[email protected]>
AuthorDate: Mon May 25 23:33:22 2026 +0100

     compilation of streamer and systemapi (#200)
    
    * compliation of streamer and systemapi
    
    * taskfile complete
    
    ---------
    
    Co-authored-by: Trustable User <[email protected]>
---
 .gitmodules  |  6 +++++
 CHANGES      |  4 ++++
 README.md    | 13 +++++------
 Taskfile.yml | 73 ++++++++++++++++++++++++++++++++++++++++++++----------------
 admin-api    |  1 +
 streamer     |  1 +
 6 files changed, 72 insertions(+), 26 deletions(-)

diff --git a/.gitmodules b/.gitmodules
index e93d16e..3c7500b 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -30,3 +30,9 @@
        path = devcontainer
        url = https://github.com/apache/openserverless-devcontainer
         branch = main
+[submodule "streamer"]
+       path = streamer
+       url = [email protected]:apache/openserverless-streamer
+[submodule "admin-api"]
+       path = admin-api
+       url = [email protected]:apache/openserverless-admin-api
diff --git a/CHANGES b/CHANGES
index cb16e5a..e6562a6 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+# sciabarracom 17 May  2026
+
+runtimes, streamer and system api compilation
+
 # sciabarracom 30 Apr 2026
 
 - archived old readme and dev environment files (moved in attic)
diff --git a/README.md b/README.md
index 0e1b49d..bef7ed7 100644
--- a/README.md
+++ b/README.md
@@ -28,8 +28,8 @@ On Mac, install brew and Docker Desktop. then do
 
 ## Prepare Windows
 
-On windows, 
-- install Docker Desktop then 
+On windows,
+- install Docker Desktop then
 - `wsl --install Ubuntu-24.04`
 
 then enable docker to be used in the distro `Ubuntu-24.04`
@@ -43,9 +43,9 @@ Access the distro (`wsl -d Ubuntu-24.04` ) and run:
 
 Install docker with
 
-- `curl -sL get.docker.com | sudo bash`  
-- `sudo usermod -aG docker $USER` 
-- `newgrp` 
+- `curl -sL get.docker.com | sudo bash`
+- `sudo usermod -aG docker $USER`
+- `newgrp`
 
 Then
 
@@ -78,8 +78,7 @@ This will
 - build the cli
 - build the operator image
 - build the runtimes
-
-TODO: build the system actions and the streamer
+- build accessories (streamer and system api)
 
 3. Tests
 
diff --git a/Taskfile.yml b/Taskfile.yml
index baaa1ff..aa688fa 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -4,20 +4,18 @@ vars:
 
   OPERATOR_IMG:
     sh: awk -F= '/ARG OPERATOR_IMAGE_DEFAULT=/ { print $2 ; exit }' 
olaris-op/Dockerfile
-
   OPERATOR_TAG:
     sh: git  -C olaris-op rev-parse --short HEAD
+  OPERATOR_SRC: "{{.OPERATOR_IMG}}:{{.OPERATOR_TAG}}"
 
-  RUNTIMES_TAG:
-    sh: git  -C runtimes rev-parse --short HEAD
+  STREAMER_TAG: "{{.OPERATOR_TAG}}"
+  STREAMER_SRC: 
"registry.hub.docker.com/apache/openserverless-streamer:{{.STREAMER_TAG}}"
 
+  ADMIN_API_TAG: "{{.OPERATOR_TAG}}"
+  ADMIN_API_SRC: 
"registry.hub.docker.com/apache/openserverless-admin-api:{{.ADMIN_API_TAG}}"
 
-  OPERATOR_SRC: "{{.OPERATOR_IMG}}:{{.OPERATOR_TAG}}"
+  RUNTIMES_TAG: "{{.OPERATOR_TAG}}"
 
-  OPERATOR_TGT:
-      sh: |
-          B64="$(echo {{.OPERATOR_SRC}} | /usr/bin/base64 -w0 )"
-          echo ~/.ops/{{OS}}-{{ARCH}}/images/kind/$B64
 
 tasks:
 
@@ -27,14 +25,22 @@ tasks:
       desc: clean the intermediate artifacts
       cmds:
       - rm -vf ./ops ~/.ops/{{OS}}-{{ARCH}}/images/kind/*
+      - rm -vf ./ops
 
     image-save:
       desc: save an a SRC image in the TGT file
-      requires: { vars: [SRC, TGT]}
+      requires: { vars: [SRC]}
+      env:
+        TGT:
+          sh: |
+              B64="$(echo {{.SRC}} | /usr/bin/base64 -w0 )"
+              echo ~/.ops/{{OS}}-{{ARCH}}/images/kind/$B64
       cmds:
-      - mkdir -p "{{ dir .TGT}}"
-      - docker save {{.SRC}} -o {{.TGT}}
-
+      - echo Saving {{.SRC}} in "$TGT"
+      - mkdir -p  "$(dirname $TGT)"
+      - docker save {{.SRC}} -o  "$TGT"
+      status:
+      - ! test -e "$TGT"
 
     cli:
       desc: build the cli
@@ -53,13 +59,38 @@ tasks:
       - echo Building {{.OPERATOR_SRC}}
       - git tag -d $(git tag) && git tag {{.OPERATOR_TAG}}
       - task b:build
-      - echo Saving {{.OPERATOR_TGT}}
       - task: image-save
         vars:
           SRC: "{{.OPERATOR_SRC}}"
-          TGT: "{{.OPERATOR_TGT}}"
-      status:
-      - ! test -e "{{.OPERATOR_TGT}}"
+
+    streamer:
+      desc: build the streamer
+      deps:
+      - cli
+      dir: streamer
+      cmds:
+      - echo Building {{.STREAMER_SRC}}
+      - git tag -d $(git tag) && git tag {{.STREAMER_TAG}}
+      - echo -e "NAMESPACE=apache\nREGISTRY=apache\n" >.env
+      - task buildx
+      - task: image-save
+        vars:
+          SRC: "{{.STREAMER_SRC}}"
+
+
+    admin-api:
+      desc: build the admin-api
+      deps:
+      - cli
+      dir: admin-api
+      cmds:
+      - echo Building {{.ADMIN_API_SRC}}
+      - git tag -d $(git tag) && git tag {{.STREAMER_TAG}}
+      - echo -e "NAMESPACE=apache\nREGISTRY=apache\n" >.env
+      - task buildx
+      - task: image-save
+        vars:
+          SRC: "{{.ADMIN_API_SRC}}"
 
     opsroot:
       desc: build current opsroot.json
@@ -68,8 +99,9 @@ tasks:
       - test -e opsroot.orig || jq . <opsroot.json >opsroot.orig
       - >
         jq <opsroot.orig >opsroot.json  '
-          .config.images = {} |
-          .config.images.operator = "{{.OPERATOR_SRC}}"
+          .config.images.operator = "{{.OPERATOR_SRC}}" |
+          .config.images.streamer = "{{.STREAMER_SRC}}" |
+          .config.images.systemapi = "{{.ADMIN_API_SRC}}"
         '
       - diff opsroot.orig opsroot.json || true
 
@@ -83,7 +115,7 @@ tasks:
       - task render-runtimes
       - cp runtimes.json ../olaris/runtimes.json
       - task: runtimes-save
-      
+
     runtimes-save:
       desc: save runtimes images
       dir: runtimes
@@ -103,5 +135,8 @@ tasks:
       cmds:
       - task: cli
       - task: operator
+      - task: runtimes
+      - task: streamer
+      - task: admin-api
       - task: opsroot
       - task: runtimes
diff --git a/admin-api b/admin-api
new file mode 160000
index 0000000..650c207
--- /dev/null
+++ b/admin-api
@@ -0,0 +1 @@
+Subproject commit 650c2077be04509a208a71fa63b6c22f7b9918e1
diff --git a/streamer b/streamer
new file mode 160000
index 0000000..57dd328
--- /dev/null
+++ b/streamer
@@ -0,0 +1 @@
+Subproject commit 57dd32888ca610280dfaca1d47cca12a0526cc52

Reply via email to