Moving /app tree in ignition to gzipped file

This commit is contained in:
2026-07-10 18:04:13 -07:00
parent 7ff7be6819
commit 4115922257
2 changed files with 36 additions and 4 deletions

31
cl.yaml
View File

@@ -80,6 +80,18 @@ systemd:
[Install]
WantedBy=multi-user.target
- name: unpack-app.service
enabled: true
contents: |
[Unit]
Description=Unpack /app
Before=app.service
[Service]
Type=oneshot
ExecStart=/unpack-app
[Install]
WantedBy=multi-user.target
### docker-compose sysext
### https://flatcar.github.io/sysext-bakery/docker_compose/
- name: systemd-sysupdate.timer
@@ -117,10 +129,14 @@ storage:
- device: /dev/disk/by-partlabel/appstorage
format: ext4
wipe_filesystem: false
trees:
- path: /app
local: app
# trees:
# - path: /app
# local: app
files:
- path: /app.tar.gz
mode: 0600
contents:
local: app.tar.gz
- path: /restic-password
contents:
local: restic-password
@@ -143,6 +159,15 @@ storage:
inline: |
PermitRootLogin no
AllowUsers core
- path: /unpack-app
mode: 0755
contents:
inline: |
#!/bin/sh
set -e
mkdir /app
tar -xzf /app.tar.gz -C /
rm /app.tar.gz
### docker-compose sysext
### https://flatcar.github.io/sysext-bakery/docker_compose/
- path: /opt/extensions/docker-compose/docker-compose-5.1.4-x86-64.raw