Skip to content

Commit afa1919

Browse files
author
Marcel Zapf
committed
update
1 parent a4dda2d commit afa1919

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

chart/templates/cm-bashrc.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
data:
66
.bashrc: |
77
# ~/.bashrc for dev user
8+
export PATH="/home/dev/bin:$PATH"
89
export PYTHONUSERBASE="$HOME/.local"
910
1011
# Colors
@@ -18,4 +19,5 @@ data:
1819
PS1='\u@\h:\w\$ '
1920
2021
# activate venv
21-
source ~/venv/bin/activate
22+
source ~/venv/bin/activate
23+

chart/templates/cm-entrypoint.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,21 @@ data:
6969
echo "WARNING: Could not check port usage (no ss/netstat found)."
7070
fi
7171
72+
# create user python virtual environment
7273
VENV_DIR="/home/dev/venv"
7374
if [ ! -d "$VENV_DIR" ]; then
7475
echo "Creating virtual environment in $VENV_DIR"
7576
python3 -m venv "$VENV_DIR"
7677
fi
7778
source "$VENV_DIR/bin/activate"
7879
80+
# create user bin directory
81+
BIN_DIR="/home/dev/bin"
82+
if [ ! -d "$BIN_DIR" ]; then
83+
echo "Creating user bin directory at $BIN_DIR"
84+
mkdir -p "$BIN_DIR"
85+
fi
86+
7987
echo "Starting SSH service on port $PORT..."
8088
exec /usr/sbin/sshd -D -f /etc/ssh/sshd_config \
8189
-o Port=$PORT \

0 commit comments

Comments
 (0)