Skip to content

Commit

Permalink
froscon-2024: add presentation and booth loop
Browse files Browse the repository at this point in the history
Signed-off-by: Thilo Fromm <thilo.alexander@gmail.com>
  • Loading branch information
t-lo committed Jul 20, 2024
1 parent 6c513ac commit 972bba2
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 0 deletions.
1 change: 1 addition & 0 deletions froscon-2024/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
image/
Binary file not shown.
Binary file added froscon-2024/flatcar-booth-loop.pdf
Binary file not shown.
Binary file added froscon-2024/flatcar-flyer.pdf
Binary file not shown.
Binary file added froscon-2024/froscon_logo_print_color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions froscon-2024/transpile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
cat "$1" \
| docker run --rm \
-v "$(pwd)":/files \
-i quay.io/coreos/butane:latest \
--files-dir /files \
>"${1/.yaml/.json}"
24 changes: 24 additions & 0 deletions froscon-2024/wasm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
variant: flatcar
version: 1.0.0

storage:
files:
- path: /opt/extensions/wasmtime/wasmtime-18.0.1-x86-64.raw
mode: 0644
contents:
source: https://github.com/flatcar/sysext-bakery/releases/download/latest/wasmtime-18.0.1-x86-64.raw
- path: /etc/flatcar/update.conf
overwrite: true
contents:
inline: |
REBOOT_STRATEGY=off
mode: 0420
links:
- target: /opt/extensions/wasmtime/wasmtime-18.0.1-x86-64.raw
path: /etc/extensions/wasmtime.raw
hard: false

systemd:
units:
- name: update-engine.service
mask: true
61 changes: 61 additions & 0 deletions froscon-2024/web.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
variant: flatcar
version: 1.0.0

passwd:
users:
- name: caddy
no_create_home: true
groups: [ docker ]

storage:
files:
- path: /srv/www/html/index.html
mode: 0644
user:
name: caddy
group:
name: caddy
contents:
inline: |
<html><body align="center">
<h1>Hallo, FrOSCon!</h1>
<img src="froscon.png" alt="FrOSCon logo" />
</body></html>
- path: /srv/www/html/froscon.png
mode: 0644
user:
name: caddy
group:
name: caddy
contents:
local: froscon_logo_print_color.png

systemd:
units:
- name: froscon-demo-webserver.service
enabled: true
contents: |
[Unit]
Description=FrOSCon example static web server
After=docker.service
Requires=docker.service
[Service]
User=caddy
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker rm --force caddy
ExecStart=docker run -i -p 80:80 --name caddy \
-v /srv/www/html:/usr/share/caddy \
docker.io/caddy caddy file-server \
--root /usr/share/caddy --access-log
ExecStop=/usr/bin/docker stop caddy
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target
# Disable automated updates so we can demo a manual update
- name: update-engine.service
mask: true
- name: locksmithd.service
mask: true

0 comments on commit 972bba2

Please sign in to comment.