devcontainer: fix rc files, move CARLA_HOST to json (#30047)

* Download rc files to batman home directory. Fix links

* Move CARLA_HOST to devcontainer.json

* Remove user root
old-commit-hash: 3cf58e55eb
test-msgs
Kacper Rączy 2 years ago committed by GitHub
parent 789ab258a5
commit db569f53e7
  1. 6
      .devcontainer/Dockerfile
  2. 1
      .devcontainer/devcontainer.json

@ -3,8 +3,8 @@ FROM ghcr.io/commaai/openpilot-base:latest
RUN apt update && apt install -y vim net-tools usbutils htop ripgrep tmux
RUN pip install ipython jupyter jupyterlab
USER batman
RUN cd $HOME && \
curl -O https://raw.githubusercontent.com/commaai/agnos-builder/master/userspace/home/.tmux.conf && \
curl -O https://github.com/commaai/agnos-builder/blob/master/userspace/home/.vimrc
ENV CARLA_HOST="host.docker.internal"
curl -O https://raw.githubusercontent.com/commaai/agnos-builder/master/userspace/home/.vimrc

@ -11,6 +11,7 @@
"DISPLAY": "${localEnv:DISPLAY}",
"PYTHONPATH": "${containerWorkspaceFolder}",
"TERM": "xterm-256color",
"CARLA_HOST": "host.docker.internal",
"force_color_prompt": "1"
},
"runArgs": [

Loading…
Cancel
Save