Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches: [main]
paths:
- docker/**
- compose.yml
- .github/workflows/build-push.yml
workflow_dispatch:

Expand Down
8 changes: 8 additions & 0 deletions docker/bin/agent-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ fix_docker_socket_group() {
usermod -aG "$group_name" agent
}

fix_mise_dirs() {
install -d -o agent -g agent /home/agent/.local
install -d -o agent -g agent /home/agent/.local/share
install -d -o agent -g agent /home/agent/.local/share/mise
chown -R agent:agent /home/agent/.local/share/mise
}

start_tcp_bridges() {
bridges=${AGENT_TCP_BRIDGES:-}
if [ -z "$bridges" ]; then
Expand Down Expand Up @@ -67,6 +74,7 @@ ensure_mise_tools() {

if [ "$(id -u)" = "0" ]; then
fix_docker_socket_group
fix_mise_dirs
exec gosu agent "$0" "$@"
fi

Expand Down
4 changes: 4 additions & 0 deletions docker/profile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ codex_home=${CODEX_HOME:-$HOME/.codex}

[ -f "$claude_config_dir/RTK.md" ] || rtk init -g --auto-patch 2>/dev/null
[ -f "$codex_home/RTK.md" ] || rtk init -g --codex 2>/dev/null

if command -v mise >/dev/null 2>&1; then
eval "$(mise activate "${ZSH_VERSION:+zsh}${BASH_VERSION:+bash}")"
fi