Add mise language manager to dev images

- Install mise and activate it in root's zshrc in Fedora and Ubuntu
- Add mise-data volume and mount at /root/.local/share/mise
- Add mise --version check to the Makefile self-check target
- Document mise-data volume in README
- Add DB packages: postgresql/redis/mariadb to Fedora and
  postgresql-client/redis-tools/default-mysql-client to Ubuntu
This commit is contained in:
2026-06-23 00:29:20 +08:00
parent 518eb5a90e
commit 8b5f440e53
5 changed files with 18 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ RUN dnf update -y && dnf install -y \
gcc gcc-c++ make cmake openssl-devel jq tmux vim \
zsh sudo python3 python3-pip \
openssh-server tar gzip \
postgresql redis mariadb \
&& dnf clean all
@@ -29,7 +30,11 @@ RUN curl -fsSL https://go.dev/dl/go1.24.4.linux-amd64.tar.gz | tar -C /usr/local
# 4. 全局安装 AI 工具 (Vibe Coding 核心: opencode + oh-my-pi)
RUN bun install -g opencode-ai @oh-my-pi/pi-coding-agent
# 5. SSH & ZSH 配置
# 5. 安装 mise (多语言版本管理器,用于按需管理 Node/Python/Ruby 等)
RUN curl -fsSL https://mise.run | MISE_INSTALL_PATH=/usr/local/bin/mise sh \
&& echo 'eval "$(mise activate zsh)"' >> /root/.zshrc
# 6. SSH & ZSH 配置
RUN ssh-keygen -A && \
mkdir -p /root/.zed /root/.local/share/zed && \
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config