Clone DeepFlow git repositry https://github.com/deepflowio/deepflow and make your change.
Add a new Dockerfile for building DeepFlow server:
$ cat <<EOF > ./server/Dockerfile.ci
FROM crazytaxii/deepflow-builder:latest AS builder
COPY . /go/deepflow| //go:build linux || darwin | |
| package main | |
| import ( | |
| "crypto/sha256" | |
| "encoding/hex" | |
| "fmt" | |
| "io" | |
| "log" |
| #!/bin/bash | |
| CONTAINERD_VERSION="1.7.26" | |
| RUNC_VERSION="1.2.5" | |
| NERDCTL_VERSION="1.7.6" | |
| main() { | |
| sudo yum update -y | |
| ARCH=$(uname -m | sed -e 's/aarch64/arm64/' -e 's/x86_64/amd64/') |
| package main | |
| import ( | |
| "bufio" | |
| "bytes" | |
| "fmt" | |
| "log" | |
| "os" | |
| ) |
| #!/bin/bash | |
| set -e | |
| DRIVER_VERSION="v4.8.0" | |
| main() { | |
| # deploy nfs server | |
| kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/deploy/example/nfs-provisioner/nfs-server.yaml | |
| # deploy nfs csi driver |
Clone DeepFlow git repositry https://github.com/deepflowio/deepflow and make your change.
Add a new Dockerfile for building DeepFlow server:
$ cat <<EOF > ./server/Dockerfile.ci
FROM crazytaxii/deepflow-builder:latest AS builder
COPY . /go/deepflow| #!/bin/bash | |
| set -e | |
| GOOGLE_URL=https://storage.googleapis.com/etcd | |
| GITHUB_URL=https://github.com/etcd-io/etcd/releases/download | |
| DOWNLOAD_URL=${GOOGLE_URL} | |
| main() { | |
| os=linux | |
| if [[ "$(uname -s)" == "Darwin" ]]; then |
| #!/bin/bash | |
| set -e | |
| main() { | |
| yum update -y | |
| rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org | |
| rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm | |
| yum --enablerepo=elrepo-kernel install kernel-ml -y | |
| sudo awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg | |
| sudo grub2-set-default 0 |
| #!/bin/bash | |
| set -e | |
| CEPH_VER=${CEPH_VER:-"15.2.1"} | |
| OSD_DEV=${OSD_DEV:-/dev/sdb} | |
| ssh_test() { | |
| if [[ $(ssh root@$1 exit) -ne 0 ]] | |
| then | |
| echo "failed to login $1 as root" && exit 1 |
Download cmake from https://cmake.org/download/
$ wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gzBuild from source and install
Download gcc source code from https://ftp.gnu.org/gnu/gcc/gcc-4.9.0/gcc-4.9.0.tar.gz
$ wget https://ftp.gnu.org/gnu/gcc/gcc-4.9.0/gcc-4.9.0.tar.gzInstall dependencies