flatcar / sysext-bakery

Recipes for baking systemd-sysext images
Apache License 2.0
72 stars 37 forks source link

Add wasmcloud 1.1.1 to release build versions #84

Closed joonas closed 2 months ago

joonas commented 3 months ago

Adds release build version for wasmCloud 1.1.1

With wasmCloud v1.1.1 having been released with a number of improvements, especially around integration with other wasmCloud ecosystem components, I feel that it would be beneficial to update the systemd-sysext for it so that environments running Flatcar can benefit from these changes as well!

How to use

Once the image is built, you can employ the following configuration ignition configuration (replacing with the appropriate value) to consume it:

---
variant: flatcar
version: 1.0.0
storage:
  files:
    - path: /opt/extensions/wasmcloud/wasmcloud-1.1.1-x86-64.raw
      contents:
        source: https://github.com/<your-repository-goes-here>/sysext-bakery/releases/download/latest/wasmcloud-1.1.1-x86-64.raw
    - path: /etc/sysupdate.wasmcloud.d/wasmcloud.conf
      contents:
        source: https://github.com/<your-repository-goes-here>/sysext-bakery/releases/download/latest/wasmcloud.conf
  links:
    - target: /opt/extensions/wasmcloud/wasmcloud-1.1.1-x86-64.raw
      path: /etc/extensions/wasmcloud.raw
      hard: false
systemd:
  units:
    - name: systemd-sysupdate.timer
      enabled: true
    - name: systemd-sysupdate.service
      dropins:
        - name: wasmcloud.conf
          contents: |
            [Service]
            ExecStartPre=/usr/lib/systemd/systemd-sysupdate -C wasmcloud update
        - name: sysext.conf
          contents: |
            [Service]
            ExecStartPost=systemctl restart systemd-sysext

Testing done

I spun up an instance on DigitalOcean using the above and verified that it ships with the appropriate versions:

core@flatcar-demo-01 ~ $ /usr/bin/wasmcloud  --version                                                                                                                                                                                            
wasmcloud 1.1.1
core@flatcar-demo-01 ~ $ /usr/bin/nats-server --version                                                                                                                                                                                           
nats-server: v2.10.18