Skip to content

Commit 9786a31

Browse files
author
Marcel Zapf
committed
update
1 parent 7839ad9 commit 9786a31

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

chart/templates/cm-bashrc.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ data:
2121
# activate venv
2222
source ~/venv/bin/activate
2323
24+
# Include local dev bashrc if it exists
25+
if [ -f ~/.dev_bashrc ]; then
26+
source ~/.dev_bashrc
27+
fi

chart/templates/cm-entrypoint.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,19 @@ data:
9696
echo "User bin directory already exists at $BIN_DIR, skipping creation"
9797
fi
9898
99+
100+
# Create local dev bashrc file if it doesn't exist
101+
DEV_BASHRC="/home/dev/.dev_bashrc"
102+
if [ ! -f "$DEV_BASHRC" ]; then
103+
echo "Creating local dev bashrc file at $DEV_BASHRC"
104+
cat > "$DEV_BASHRC" << 'EOF'
105+
echo "Local dev bashrc loaded - customize /home/dev/.dev_bashrc as needed"
106+
EOF
107+
chmod 644 "$DEV_BASHRC"
108+
else
109+
echo "Local dev bashrc file already exists at $DEV_BASHRC, skipping creation"
110+
fi
111+
99112
echo "Starting SSH service on port $PORT..."
100113
exec /usr/sbin/sshd -D -f /etc/ssh/sshd_config \
101114
-o Port=$PORT \

0 commit comments

Comments
 (0)