Skip to content

Commit

Permalink
[Docker] Add ~/.local/bin to $PATH (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
pschafhalter authored Jul 10, 2022
1 parent 54eda46 commit cbc937c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ENV PATH="/home/erdos/.cargo/bin:${PATH}"
RUN echo "export PATH=/home/erdos/.cargo/bin:${PATH}" >> ~/.bashrc
RUN rustup default nightly
RUN mkdir -p /home/erdos/workspace
RUN cd /home/erdos/workspace && git clone https://github.com/erdos-project/erdos.git && cd erdos && python3 python/setup.py install --user
RUN cd /home/erdos/workspace && git clone https://github.com/erdos-project/erdos.git && cd erdos && python3 python/setup.py install

# Set up Pylot.
RUN sudo apt-get install -y libcudnn8 cuda-toolkit-11-4 ssh libqt5core5a libeigen3-dev cmake qtbase5-dev libpng16-16 libtiff5 python3-tk python3-pygame libgeos-dev
Expand All @@ -71,6 +71,9 @@ RUN echo "export PYLOT_HOME=/home/erdos/workspace/pylot/" >> ~/.bashrc
RUN echo "export CARLA_HOME=/home/erdos/workspace/pylot/dependencies/CARLA_0.9.10.1" >> ~/.bashrc
RUN echo "if [ -f ~/.bashrc ]; then . ~/.bashrc ; fi" >> ~/.bash_profile

# Add programs installed via PIP to the path.
RUN echo "export PATH=$HOME/.local/bin:${PATH}" >> ~/.bashrc

# Set up ssh access to the container.
RUN cd ~/ && ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa <<<y 2>&1 >/dev/null
RUN sudo sed -i 's/#X11UseLocalhost yes/X11UseLocalhost no/g' /etc/ssh/sshd_config
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sudo apt-get install -y git wget cmake python3-pip unzip clang libpng-dev libgeo
# Install opencv separately because pip3 install doesn't install all libraries
# opencv requires.
sudo apt-get install -y python3-opencv
python3 -m pip install --user gdown
python3 -m pip install user gdown
# Install Pygame if available.
PYGAME_PKG=`apt-cache search python3-pygame`
if [ -n "$PYGAME_PKG" ] ; then
Expand Down Expand Up @@ -77,7 +77,7 @@ git clone https://github.com/CharlesShang/DCNv2/
cd DCNv2
sudo apt-get install llvm-9
export LLVM_CONFIG=/usr/bin/llvm-config-9
python3 setup.py build develop --user
python3 setup.py build develop user

###### Install QDTrack ######
cd $PYLOT_HOME/dependencies/
Expand Down

0 comments on commit cbc937c

Please sign in to comment.