Docker Reorganization

- Ignore pycache folder
- Move docker files to docker folder and fix path references
- Add particle filter Dockerfile
- Move downloader.py to data folder
- Add config.xlaunch for X servers to utils folder
This commit is contained in:
Sravan Balaji
2020-04-30 20:03:28 -04:00
parent 85acdd8586
commit 18c6142a22
6 changed files with 79 additions and 26 deletions

2
.gitignore vendored
View File

@@ -8,3 +8,5 @@
src/dataset/data/*
src/dataset/nclt
!src/dataset/data/*.py
__pycache__

67
docker/Dockerfile Normal file
View File

@@ -0,0 +1,67 @@
FROM python:3
RUN apt-get update && \
apt-get install -y \
build-essential \
python-dev \
python-pip \
libpython2.7-dev \
python3-dev \
python3-pip \
python-tk \
libgl1-mesa-glx \
git \
cmake
RUN pip2 install --upgrade pip && \
pip2 install \
numpy \
matplotlib \
open3d-python \
progressbar2 \
pyquaternion \
transforms3d \
scipy \
scikit-image \
networkx \
psutil \
torch \
future
RUN mkdir /app
# Catch2
RUN cd /app && \
git clone https://github.com/catchorg/Catch2.git && \
mkdir -p /app/Catch2/build && \
cd /app/Catch2/build && \
cmake .. && \
make -j8 && \
make install
RUN python3.8 -m pip install pytest
# pybind11
RUN cd /app && \
git clone https://github.com/pybind/pybind11.git && \
mkdir -p /app/pybind11/build && \
cd /app/pybind11/build && \
cmake .. && \
make -j8 && \
make install
# ray tracing
RUN cd /app && \
git clone https://github.com/acschaefer/ray_tracing.git && \
mkdir -p /app/ray_tracing/build && \
cd /app/ray_tracing/build && \
cmake .. && \
make -j8 && \
make install
RUN pip2 uninstall -y backports.functools-lru-cache && \
apt-get install python-backports.functools-lru-cache
ENV PYTHONPATH=$PYTHONPATH:/app/ray_tracing/python
CMD ["/bin/bash"]

View File

@@ -9,14 +9,15 @@ services:
python-dev:
# Use Dockerfile in current folder
build: .
# Mount ros-dev folder on host to app folder in container
# Mount folders on host to app folder in container
volumes:
- ./control:/app/control
- ./dataset:/app/dataset
- ./localization:/app/localization
- ./planning:/app/planning
- ./semantic:/app/semantic
- ./visualization:/app/visualization
- ../src/control:/app/control
- ../src/dataset:/app/dataset
- ../src/localization:/app/localization
- ../src/planning:/app/planning
- ../src/semantic:/app/semantic
- ../src/visualization:/app/visualization
- ../src/polex:/app/polex
# Set DISPLAY variable and network mode for GUIs
environment:
- DISPLAY=${IP_ADDRESS}:0.0

View File

@@ -1,19 +0,0 @@
FROM python:3
RUN apt-get update && \
apt-get install -y \
build-essential \
python-opencv \
libpcl-dev
RUN pip install -U pip && \
pip install -U \
cython \
numpy \
scipy \
matplotlib \
nltk \
setuptools \
pylint
CMD ["/bin/bash"]

2
utils/config.xlaunch Normal file
View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<XLaunch WindowMode="MultiWindow" ClientMode="NoClient" LocalClient="False" Display="-1" LocalProgram="xcalc" RemoteProgram="xterm" RemotePassword="" PrivateKey="" RemoteHost="" RemoteUser="" XDMCPHost="" XDMCPBroadcast="False" XDMCPIndirect="False" Clipboard="True" ClipboardPrimary="True" ExtraParams="" Wgl="False" DisableAC="True" XDMCPTerminate="False"/>