This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"os" | |
"sort" | |
"strings" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
conf_zip="" | |
if [ -f kv0.zip ] ; then | |
conf_zip="kv0.zip" | |
fi | |
if [ -f kv1.zip ] ; then | |
conf_zip="kv1.zip" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"path/filepath" | |
"strings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IMAGE := ubuntu:20.10 | |
CWD := $(shell pwd) | |
NAME := $(shell git config user.name) | |
EMAIL := $(shell git config user.email) | |
SWTPM_URL := https://github.com/stefanberger/swtpm | |
build: build.sh output | |
docker run \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
coreos: | |
units: | |
- name: install-opt-dir.service | |
content: | | |
[Unit] | |
Description=Install /opt directories | |
ConditionPathIsDirectory=!/opt/libexec | |
ConditionPathIsDirectory=!/opt/libexec.wd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Vincent Batts <[email protected]> 2020-09 | |
CWD := $(shell pwd) | |
SSH_KEY ?= $(shell realpath $$HOME/.ssh/authorized_keys) | |
HOST_NAME ?= flatcar-local.test.lan | |
ISO_FILE = $(CWD)/$(HOST_NAME).iso | |
MEMORY ?= 4096 | |
PORT ?= 2223 | |
CHANNEL ?= stable | |
BOARD ?= amd64-usr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TOOLBOX_DOCKER_IMAGE=debian | |
TOOLBOX_ENV=" --bind-ro=/run/torcx/unpack/docker/bin/docker:/usr/bin/docker --setenv=DOCKER_HOST=unix:///media/root/var/run/docker.sock --setenv=SSH_AUTH_SOCK=/media/root/${SSH_AUTH_SOCK} " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
coreos: | |
units: | |
- name: docker.service | |
command: start | |
drop-ins: | |
- name: 50-crun-runtime.conf | |
content: | | |
[Service] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -eu | |
curl -LO https://www.flatcar-linux.org/security/image-signing-key/Flatcar_Image_Signing_Key.asc | |
gpg --import Flatcar_Image_Signing_Key.asc | |
wget \ | |
https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_qemu_image.img.bz2 \ | |
https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_qemu.sh \ | |
https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_qemu.README \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# more information on building kernel modules https://docs.flatcar-linux.org/os/kernel-modules/ | |
set -ue | |
. /etc/os-release | |
. /etc/flatcar/update.conf | |
rm -f flatcar_developer_container.bin.bz2.DIGESTS ||: | |
wget "https://${GROUP}.release.flatcar-linux.net/${FLATCAR_BOARD}/${VERSION}/flatcar_developer_container.bin.bz2.DIGESTS" |
NewerOlder