Skip to content

Instantly share code, notes, and snippets.

View junka's full-sized avatar
🥼
life is f**ked

Junjie junka

🥼
life is f**ked
View GitHub Profile
@junka
junka / mirror-port.sh
Last active September 26, 2024 14:00 — forked from lonelymtn/mirror-port.sh
Mirror offloaded traffic between two interfaces using Linux's TC, for HW like DPAA2
#!/usr/bin/env bash
# Time-stamp: <2014-07-31 13:31:43 (ryanc)>
# Time-stamp: <2024-09-26 21:52:50 (junjie.wan)>
#
# Description: Mirror traffic between two interfaces using Linux's
# traffic control subsystem (tc)
trap cleanup EXIT
CLEANUP=1
@junka
junka / Dockerfile.gobgp
Last active May 7, 2024 09:52
Dockerfile for gobgp
# syntax = docker/dockerfile:experimental
FROM debian:buster
LABEL maintainer="[email protected]"
ARG VER
ARG DEBIAN_FRONTEND=noninteractive
ARG TARGETARCH
RUN apt-get update
RUN apt-get -qy install curl ca-certificates
@junka
junka / docker multiarch arm64 build
Created April 10, 2024 06:54
docker multiarch下arm64的路径报错问题 /usr/local/sbin/dpkg-deb: No such file or directory
丑陋的解法是
```
RUN ln -s /usr/bin/dpkg-split /usr/sbin/dpkg-split
RUN ln -s /usr/bin/dpkg-deb /usr/sbin/dpkg-deb
RUN ln -s /bin/tar /usr/sbin/tar
```
真实原因是qemu跑的arm模拟器的问题
host安装一次qemu解决问题。。。。