github.com/weedge/lib@v0.0.0-20230424045628-a36dcc1d90e4/.devcontainer/ubuntu_init.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  set -e
     4  
     5  nproc=${1:-"1"}
     6  
     7  apt-get update
     8  
     9  apt-get install -y make
    10  apt-get install -y git 
    11  apt-get install -y gcc g++
    12  apt-get install -y fio
    13  
    14  
    15  if go version &>/dev/null ; then
    16      apt install -y wget
    17      wget -c https://go.dev/dl/go1.20.2.linux-amd64.tar.gz
    18      tar -xzf go1.20.2.linux-amd64.tar.gz  -C /usr/local
    19      echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.profile
    20      source ~/.profile
    21      mkdir -p ~/.config/go
    22      echo "
    23  GOPROXY=https://goproxy.io,direct
    24  GOPRIVATE=""
    25  GOSUMDB=off
    26      " >> ~/.config/go/env
    27      source ~/.config/go/env
    28  fi
    29  
    30  
    31  # unminimize
    32  # apt-get install man
    33  
    34  # cd /tmp
    35  # git clone https://github.com/axboe/liburing.git
    36  # cd liburing
    37  # ./configure --cc=gcc --cxx=g++
    38  # make -j$(nproc)
    39  # make install
    40  # cd -