mirror of
https://github.com/Mobile-Robotics-W20-Team-9/UMICH-NCLT-SLAP.git
synced 2025-09-08 20:13:13 +00:00
Docker Environment Setup
- Add docker-compose with python-dev container that mounts all folders - Add Dockerfile with libraries for point clouds, natural language processing, and CV - Add .env file for IP Address used by X Forwarding
This commit is contained in:
22
src/Dockerfile
Normal file
22
src/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
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
|
||||||
|
|
||||||
|
RUN pip install -U \
|
||||||
|
python-pcl
|
||||||
|
|
||||||
|
CMD ["/bin/bash"]
|
25
src/docker-compose.yml
Normal file
25
src/docker-compose.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
# Docker Compose
|
||||||
|
|
||||||
|
# docker-compose.yml format version
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
# Define services
|
||||||
|
services:
|
||||||
|
# Python Development Container
|
||||||
|
python-dev:
|
||||||
|
# Use Dockerfile in current folder
|
||||||
|
build: .
|
||||||
|
# Mount ros-dev folder 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
|
||||||
|
# Set DISPLAY variable and network mode for GUIs
|
||||||
|
environment:
|
||||||
|
- DISPLAY=${IP_ADDRESS}:0.0
|
||||||
|
network_mode: "host"
|
||||||
|
# Set working directory in container to app folder
|
||||||
|
working_dir: /app
|
Reference in New Issue
Block a user