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
"benchmarks/vscode:/vscode.git/clone" did not exist on "06c35f2d3879980e03f51761a39e8904fa8debc0"
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
Show 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
...
@@ -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
export
PYTHONPATH
=
/home/ubuntu/dynamo/components/planner/src:
$PYTHONPATH
# source the venv and set the VLLM_KV_CAPI_PATH in bashrc
# Add to bashrc only if not already present
echo
"source /opt/dynamo/venv/bin/activate"
>>
~/.bashrc
if
!
grep
-q
"source /opt/dynamo/venv/bin/activate"
~/.bashrc
;
then
echo
"export VLLM_KV_CAPI_PATH=
$HOME
/dynamo/.build/target/debug/libdynamo_llm_capi.so"
>>
~/.bashrc
echo
"source /opt/dynamo/venv/bin/activate"
>>
~/.bashrc
echo
"export GPG_TTY=
$(
tty
)
"
>>
~/.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
...
@@ -297,8 +297,12 @@ COPY --from=base --chown=$USERNAME:$USERNAME /usr/local/bin /usr/local/bin
USER $USERNAME
USER $USERNAME
ENV HOME=/home/$USERNAME
ENV HOME=/home/$USERNAME
ENV PYTHONPATH=$HOME/dynamo/deploy/sdk/src:$PYTHONPATH:$HOME/dynamo/components/planner/src:$PYTHONPATH
ENV PYTHONPATH=$HOME/dynamo/deploy/sdk/src:$PYTHONPATH:$HOME/dynamo/components/planner/src:$PYTHONPATH
ENV CARGO_TARGET_DIR=$HOME/dynamo/.build/target
WORKDIR $HOME
WORKDIR $HOME
# so we can use maturin develop
RUN uv pip install maturin
# https://code.visualstudio.com/remote/advancedcontainers/persist-bash-history
# https://code.visualstudio.com/remote/advancedcontainers/persist-bash-history
RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=$HOME/.commandhistory/.bash_history" \
RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=$HOME/.commandhistory/.bash_history" \
&& mkdir -p $HOME/.commandhistory \
&& 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