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:
@@ -5,6 +5,7 @@ RUN apt-get update && apt-get install -y \
|
||||
curl git wget unzip procps tar gzip shellcheck vim \
|
||||
gcc g++ make cmake libssl-dev tmux jq \
|
||||
zsh sudo python3 python3-pip openssh-server \
|
||||
postgresql-client redis-tools default-mysql-client \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 2. 环境变量
|
||||
@@ -26,13 +27,17 @@ RUN curl -fsSL https://go.dev/dl/go1.24.4.linux-amd64.tar.gz | tar -C /usr/local
|
||||
# 4. 全局安装 AI 工具 (opencode + oh-my-pi)
|
||||
RUN bun install -g opencode-ai @oh-my-pi/pi-coding-agent
|
||||
|
||||
# 5. SSH & 目录预设 (为 Zed 准备)
|
||||
# 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 & 目录预设 (为 Zed 准备)
|
||||
RUN ssh-keygen -A && \
|
||||
mkdir -p /root/.zed /root/.local/share/zed && \
|
||||
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
||||
|
||||
RUN sed -i 's/#PermitUserEnvironment no/PermitUserEnvironment yes/' /etc/ssh/sshd_config
|
||||
# 6. Shell 美化
|
||||
# 7. Shell 美化
|
||||
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
|
||||
|
||||
# 接收来自 compose 的参数
|
||||
|
||||
Reference in New Issue
Block a user