Skip to content

Commit f356639

Browse files
authored
Merge pull request #31 from menny/tmux
feat(android_dev): Add tmux and auto-start dev session
2 parents 5610f8b + 773a085 commit f356639

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/versions.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
IMAGE_VERSION=1.21.5
1+
IMAGE_VERSION=1.21.6
22
NDK_VERSION=27.2.12479018
33
BAZELISK_VERSION=v1.26.0

android_dev/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ RUN . "$NVM_DIR/nvm.sh" && pnpm add -g @google/gemini-cli@${GEMINI_CLI_VERSION}
4141
# Install dependencies
4242
RUN apt update \
4343
&& apt install -y --allow-remove-essential --allow-change-held-packages \
44-
zsh openssh-server \
44+
zsh openssh-server tmux \
4545
&& apt-get clean \
4646
&& rm -rf /var/lib/apt/lists/*
4747

@@ -67,7 +67,8 @@ RUN RUNZSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmy
6767
RUN echo "export NVM_DIR=${NVM_DIR}" >> /home/${ACTUAL_USER}/.zshrc && \
6868
echo "export PNPM_HOME=${PNPM_HOME}" >> /home/${ACTUAL_USER}/.zshrc && \
6969
echo "export PATH=${PATH}" >> /home/${ACTUAL_USER}/.zshrc && \
70-
echo "source ${NVM_DIR}/nvm.sh" >> /home/${ACTUAL_USER}/.zshrc
70+
echo "source ${NVM_DIR}/nvm.sh" >> /home/${ACTUAL_USER}/.zshrc && \
71+
echo "tmux attach-session -t dev-session 2>/dev/null || tmux new-session -s dev-session" >> /home/${ACTUAL_USER}/.zshrc
7172

7273
# Switch back to root for remaining setup
7374
USER root

0 commit comments

Comments
 (0)