Skip to content

Instantly share code, notes, and snippets.

View panda1100's full-sized avatar

Yoshiaki Senda panda1100

View GitHub Profile
@panda1100
panda1100 / openfoam2212-pmi2_rocky.def
Created June 8, 2023 05:31
2-stage build example
Bootstrap: docker
From: rockylinux/rockylinux:latest
Stage: build
%post
dnf -y group install "Development tools"
dnf -y install epel-release
dnf -y install 'dnf-command(config-manager)'
dnf -y config-manager --set-enabled powertools
dnf -y install wget
@panda1100
panda1100 / openfoam2212-pmi2_rocky.def
Last active March 2, 2023 05:50
OpenFOAM v2212 PMI2
# ---------------------------------*-sh-*------------------------------------
# Yoshiaki Senda modified version
#
# Copyright (C) 2021-2022 OpenCFD Ltd.
# SPDX-License-Identifier: (GPL-3.0+)
#
# Example
# git clone https://develop.openfoam.com/packaging/containers.git
# cd containers/docker
# wget https://gist.githubusercontent.com/panda1100/5ee809e39e9f50c5c12a85c582e4c517/raw/openfoam2212-pmi2_rocky.def
@panda1100
panda1100 / Vagrantfile
Created June 9, 2022 06:00
Vagrantfile for HTTPSBoot Testing Environment
Vagrant.configure("2") do |config|
number_of_node = ENV["NODES"] || 2
config.vm.define :server do |server|
server.vm.box = "rockylinux/8"
server.vm.box_version = "5.0.0"
server.vm.hostname = "httpsboot-srv"
server.vm.network "private_network",
ip: "10.0.0.254",

How to build a load balancer with BGP and ECMP using VyOS

According to this cloudflare blog article "Load Balancing without Load Balancers", we can build a rock-solid load balancer only using a router. All the magic comes from BGP and Equal-Cost Multi-Path routing.

In this howto, I will use bird as BGP router on linux instance (ie. servers).

Test environment

I use GNS3 with this architecture :

architecture

@panda1100
panda1100 / Vagrantfile
Created March 22, 2022 22:45
Expand disk size of Vagrant box for libvirt provider
Vagrant.configure("2") do |config|
config.vm.define :server do |server|
server.vm.box = "rockylinux/8"
server.vm.box_version = "4.0.0"
server.vm.hostname = "warewulf-server"
server.vm.network "private_network",
ip: "10.0.0.254",
netmask: "255.255.252.0",
@panda1100
panda1100 / Vagrantfile
Last active March 25, 2022 08:56
Vagrantfile - Warewulf v4 Sandbox
Vagrant.configure("2") do |config|
number_of_node = 2
config.vm.define :server do |server|
server.vm.box = "rockylinux/8"
server.vm.box_version = "4.0.0"
server.vm.hostname = "warewulf-server"
server.vm.network "private_network",
ip: "10.0.0.254",
@panda1100
panda1100 / ls_dyna_no_tears.md
Created January 14, 2022 02:36 — forked from sean-smith/ls_dyna_no_tears.md
Create a cluster and run LS-Dyna
@panda1100
panda1100 / main.go
Created October 29, 2021 08:54 — forked from lizrice/main.go
Container from scratch
package main
// @lizrice, mostly copied from @doctor_julz: https://gist.github.com/julz/c0017fa7a40de0543001
import (
"fmt"
"os"
"os/exec"
"syscall"
)
@panda1100
panda1100 / mkimage_vyos.sh
Created January 29, 2019 05:56 — forked from kurochan/mkimage_vyos.sh
mkimage_vyos.sh
#!/bin/bash
# You need to install overlayroot
# sudo apt-get install overlayroot
LANG=C
set -e
set -x
#!/bin/bash
docker run --rm -v `pwd`:/root/files --name $1 -it ubuntu:16.04 /bin/bash