arcosx@ubuntu:~/work/buildkit/bin$ rootlesskit buildkitd
[rootlesskit:parent] error: failed to setup UID/GID map: newuidmap 15088 [0 1000 1 1 100000 65536] failed: : exec: "newuidmap": executable file not found in $PATH
sudo apt install uidmap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -e | |
| # Auto-Get the latest commit sha via command line. | |
| get_latest_release() { | |
| tag=$(curl --silent "https://api.github.com/repos/${1}/releases/latest" | # Get latest release from GitHub API | |
| grep '"tag_name":' | # Get tag line | |
| sed -E 's/.*"([^"]+)".*/\1/' ) # Pluck JSON value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.2/zsh-in-docker.sh)" -- \ | |
| -t robbyrussell \ | |
| -p https://github.com/zsh-users/zsh-autosuggestions \ | |
| -p https://github.com/zsh-users/zsh-completions \ | |
| -a 'HISTSIZE=500000' \ | |
| -a 'SAVEHIST=500000' \ | |
| -a 'setopt appendhistory' \ | |
| -a 'setopt INC_APPEND_HISTORY' \ | |
| -a 'setopt SHARE_HISTORY' \ | |
| -a 'ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=0"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # install docker | |
| sudo apt-get remove -y docker docker-engine docker.io containerd runc | |
| sudo apt-get update | |
| sudo apt-get -y install \ | |
| ca-certificates \ | |
| curl \ | |
| gnupg \ | |
| lsb-release | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM golang:latest AS builder | |
| WORKDIR /app | |
| RUN go env -w GOPROXY=https://goproxy.cn,direct | |
| ENV MODIFIED_DERPER_GIT=https://github.com/arcosx/tailscale.git | |
| ENV BRANCH=derp_ip_mode | |
| # build modified derper | |
| RUN git clone -b $BRANCH $MODIFIED_DERPER_GIT tailscale --depth 1 && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu | |
| ARG UBUNTU_MIRROR="http://mirrors.tuna.tsinghua.edu.cn/ubuntu" | |
| RUN bash -c "if [[ -n ${UBUNTU_MIRROR} ]]; then \ | |
| sed -i 's#http://archive.ubuntu.com/ubuntu#'"${UBUNTU_MIRROR}"'#g' /etc/apt/sources.list && \ | |
| sed -i 's#http://security.ubuntu.com/ubuntu#'"${UBUNTU_MIRROR}"'#g' /etc/apt/sources.list ; \ | |
| fi" | |
| # Configure time zone | |
| ARG DEBIAN_FRONTEND=noninteractive |
arch -arm64 brew install llvm@11
LLVM_CONFIG="/opt/homebrew/opt/llvm@11/bin/llvm-config" arch -arm64 pip install llvmlite- Install iTerm2 from https://www.iterm2.com/
- Install oh-my-zsh from https://ohmyz.sh/ or https://github.com/robbyrussell/oh-my-zsh
- Set iTerm2 theme tab theme to Dark -
Preferences | Appearance | Tabs | Theme > Dark - Install Fira Code fonts from https://github.com/tonsky/FiraCode (Clone and navigate to
dstr > ttf, install all font files by double clicking) - Install Powerline fonts from https://github.com/powerline/fonts
- Set fonts for iTerm2 -
Preferences | Profiles | Text- Change
Fontto14pt Fira code regularand CheckUse Ligaturescheckbox - Change
Non ASCII Fontto14pt Fira monoand CheckUse Ligaturescheckbox
- Change
- Install iTerm2 snazzy theme from https://github.com/sindresorhus/iterm2-snazzy
- Navigate to
Preferences | Profiles | Color Presets > Snazzy
- Navigate to
列出所有的容器 ID
docker ps -aq停止所有的容器
docker stop $(docker ps -aq)NewerOlder