Skip to content

Instantly share code, notes, and snippets.

View No9's full-sized avatar
🦀
Rusting with a slight chance of code

Anton Whalley No9

🦀
Rusting with a slight chance of code
View GitHub Profile

hell0

# configuration is based on https://github.com/containerd/containerd/blob/v1.6.0-rc.1/docs/cri/config.md
version = 2
root = "/var/data/cripersistentstorage"
state = "/run/containerd"
oom_score = 0
[grpc]
address = "/run/containerd/containerd.sock"
uid = 0
gid = 0
@No9
No9 / install-commands.md
Created December 17, 2022 18:22
Notes on building wasi edge container
sudo dnf install -y make python git gcc automake autoconf libcap-devel     systemd-devel yajl-devel libseccomp-devel pkg-config libgcrypt-devel     go-md2man glibc-static python3-libmount libtool
mkdir code 
cd code/
git clone https://github.com/containers/crun.git
cd crun/
./autogen.sh 
./configure 
make 
sudo dnf install podman 
@No9
No9 / TAT.md
Created November 5, 2022 17:27
Notes on using the architecture toolkit

For subnets this error may occour:

terraform init
Initializing modules...
Downloading registry.terraform.io/cloud-native-toolkit/vpc/ibm 1.17.0 for ibm-vpc...
- ibm-vpc in .terraform/modules/ibm-vpc
Downloading registry.terraform.io/cloud-native-toolkit/vpc-gateways/ibm 1.10.0 for ibm-vpc-gateways...
- ibm-vpc-gateways in .terraform/modules/ibm-vpc-gateways
Downloading registry.terraform.io/cloud-native-toolkit/vpc-subnets/ibm 1.14.0 for ibm-vpc-subnets...
@No9
No9 / notes.md
Last active October 14, 2022 20:18
Additional notes on the containerd on freebsd article

containerd on FreeBSD

Loved this article and decided to take it for a drive. https://productionwithscissors.run/2022/09/04/containerd-linux-on-freebsd/ These notes are nits really and likely most people will find there way around them. That said I thought I would share as people new to FreeBSD may not have the patience.

  • In FreeBSD R13.1 The default go is 1.18 so use ln -s /usr/local/go118 /usr/local/go
  • Make sure you run bash and not sh by running bash before the other commands
  • For containerd gmake install failed had to run gmake then gmake install
@No9
No9 / fbsd-k8s.md
Last active September 11, 2022 23:00
K8s on FreeBSD

Download prebuilt k8s services

https://github.com/tnorlin/kubernetes/releases/tag/v1.24.4-freebsd

wget https://github.com/tnorlin/kubernetes/releases/download/v1.24.4-freebsd/kube-apiserver
wget https://github.com/tnorlin/kubernetes/releases/download/v1.24.4-freebsd/kube-controller-manager
wget https://github.com/tnorlin/kubernetes/releases/download/v1.24.4-freebsd/kube-scheduler
wget https://github.com/tnorlin/kubernetes/releases/download/v1.24.4-freebsd/kubectl
wget https://github.com/tnorlin/kubernetes/releases/download/v1.24.4-freebsd/kubectl-convert
wget https://github.com/tnorlin/kubernetes/releases/download/v1.24.4-freebsd/kubelet
@No9
No9 / imgadm.md
Last active May 11, 2022 08:18
pkgin install
sudo pkgin install gmake
sudo pkgin install gcc5
sudo pkg install onbld  
sudo mv /usr/bin/make /usr/bin/smake                                    
sudo ln -s /usr/bin/gmake /usr/bin/make
sudo ln -s /usr/gnu/i386\-pc\-solaris2.11/bin/ar /usr/bin/ar 
sudo ln -s /usr/gnu/i386\-pc\-solaris2.11/bin/nm /usr/bin/nm 
sudo ln -s /opt/local/gcc5/bin/gcc /opt/local/bin/gcc
sudo ln -s /opt/local/gcc5/bin/g++ /opt/local/bin/g++ 
@No9
No9 / keybase.md
Created November 7, 2021 22:52
keybase.md

Keybase proof

I hereby claim:

  • I am no9 on github.
  • I am antonwhalley (https://keybase.io/antonwhalley) on keybase.
  • I have a public key whose fingerprint is BED0 79E6 7FD4 31E4 5301 B1C9 949E 671B 46AC 8A34

To claim this, I am signing this object:

@No9
No9 / consuld.sh
Last active October 16, 2021 06:41
consuld - a consul daemon config for freebsd
#!/bin/sh
#
# $FreeBSD: releng/11.0/etc/rc.d/consuld 298514 2016-04-23 16:10:54Z lme $
#
# PROVIDE: consuld
# REQUIRE: LOGIN FILESYSTEMS
# KEYWORD: shutdown
. /etc/rc.subr
@No9
No9 / iocage-meetup.md
Last active July 21, 2020 03:16
Some notes for the BSD Dublin Meetup 2017-04-20