Unverified Commit 07e4720d authored by Alec's avatar Alec Committed by GitHub
Browse files

fix: devcontainer small qol fixes (#1228)

parent 811b10a6
......@@ -64,7 +64,15 @@ cd $HOME/dynamo && retry env DYNAMO_BIN_PATH=$HOME/dynamo/.build/target/debug uv
export PYTHONPATH=/home/ubuntu/dynamo/components/planner/src:$PYTHONPATH
# source the venv and set the VLLM_KV_CAPI_PATH in bashrc
echo "source /opt/dynamo/venv/bin/activate" >> ~/.bashrc
echo "export VLLM_KV_CAPI_PATH=$HOME/dynamo/.build/target/debug/libdynamo_llm_capi.so" >> ~/.bashrc
echo "export GPG_TTY=$(tty)" >> ~/.bashrc
# Add to bashrc only if not already present
if ! grep -q "source /opt/dynamo/venv/bin/activate" ~/.bashrc; then
echo "source /opt/dynamo/venv/bin/activate" >> ~/.bashrc
fi
if ! grep -q "export VLLM_KV_CAPI_PATH=" ~/.bashrc; then
echo "export VLLM_KV_CAPI_PATH=$HOME/dynamo/.build/target/debug/libdynamo_llm_capi.so" >> ~/.bashrc
fi
if ! grep -q "export GPG_TTY=" ~/.bashrc; then
echo "export GPG_TTY=$(tty)" >> ~/.bashrc
fi
......@@ -297,8 +297,12 @@ COPY --from=base --chown=$USERNAME:$USERNAME /usr/local/bin /usr/local/bin
USER $USERNAME
ENV HOME=/home/$USERNAME
ENV PYTHONPATH=$HOME/dynamo/deploy/sdk/src:$PYTHONPATH:$HOME/dynamo/components/planner/src:$PYTHONPATH
ENV CARGO_TARGET_DIR=$HOME/dynamo/.build/target
WORKDIR $HOME
# so we can use maturin develop
RUN uv pip install maturin
# https://code.visualstudio.com/remote/advancedcontainers/persist-bash-history
RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=$HOME/.commandhistory/.bash_history" \
&& mkdir -p $HOME/.commandhistory \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment