mirror of
https://github.com/Mobile-Robotics-W20-Team-9/UMICH-NCLT-SLAP.git
synced 2025-09-08 12:13:13 +00:00
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:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -8,3 +8,5 @@
|
|||||||
src/dataset/data/*
|
src/dataset/data/*
|
||||||
src/dataset/nclt
|
src/dataset/nclt
|
||||||
!src/dataset/data/*.py
|
!src/dataset/data/*.py
|
||||||
|
|
||||||
|
__pycache__
|
||||||
|
67
docker/Dockerfile
Normal file
67
docker/Dockerfile
Normal 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"]
|
@@ -9,14 +9,15 @@ services:
|
|||||||
python-dev:
|
python-dev:
|
||||||
# Use Dockerfile in current folder
|
# Use Dockerfile in current folder
|
||||||
build: .
|
build: .
|
||||||
# Mount ros-dev folder on host to app folder in container
|
# Mount folders on host to app folder in container
|
||||||
volumes:
|
volumes:
|
||||||
- ./control:/app/control
|
- ../src/control:/app/control
|
||||||
- ./dataset:/app/dataset
|
- ../src/dataset:/app/dataset
|
||||||
- ./localization:/app/localization
|
- ../src/localization:/app/localization
|
||||||
- ./planning:/app/planning
|
- ../src/planning:/app/planning
|
||||||
- ./semantic:/app/semantic
|
- ../src/semantic:/app/semantic
|
||||||
- ./visualization:/app/visualization
|
- ../src/visualization:/app/visualization
|
||||||
|
- ../src/polex:/app/polex
|
||||||
# Set DISPLAY variable and network mode for GUIs
|
# Set DISPLAY variable and network mode for GUIs
|
||||||
environment:
|
environment:
|
||||||
- DISPLAY=${IP_ADDRESS}:0.0
|
- DISPLAY=${IP_ADDRESS}:0.0
|
@@ -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
2
utils/config.xlaunch
Normal 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"/>
|
Reference in New Issue
Block a user