Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
07e4720d
Unverified
Commit
07e4720d
authored
May 28, 2025
by
Alec
Committed by
GitHub
May 28, 2025
Browse files
fix: devcontainer small qol fixes (#1228)
parent
811b10a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
.devcontainer/post-create.sh
.devcontainer/post-create.sh
+12
-4
container/Dockerfile.vllm
container/Dockerfile.vllm
+4
-0
No files found.
.devcontainer/post-create.sh
View file @
07e4720d
...
...
@@ -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
container/Dockerfile.vllm
View file @
07e4720d
...
...
@@ -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 \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment