Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

froscon-2024: add presentation and booth loop #10

Merged
merged 1 commit into from
Aug 26, 2024
Merged
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
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.
24 changes: 24 additions & 0 deletions froscon-2024/kubernetes.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/kubernetes/kubernetes.raw
mode: 0644
contents:
source: https://github.com/flatcar/sysext-bakery/releases/download/latest/kubernetes-v1.30.3-x86-64.raw
- path: /etc/flatcar/update.conf
overwrite: true
contents:
inline: |
REBOOT_STRATEGY=off
mode: 0420
links:
- target: /opt/extensions/kubernetes/kubernetes.raw
path: /etc/extensions/kubernetes.raw
hard: false

systemd:
units:
- name: update-engine.service
mask: true
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}"
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