# Follow the instruction below for easy setup of environment
#
# Usage: Follow the steps in the README file in the directory containing this file
# 1. docker-compose -f opencog-ide.yml build (run this when there is a dependency change)
# 2. docker-compose -f opencog-ide.yml run --service-ports dev
# 3. Check http://wiki.opencog.org/w/Using_QT_Creator on how to use qtcreator.
# Note: You can use your mouse to switch between tmux windows/panes
dev:
build: tools/ide
ports: # syntax is host:container
- "5000:5000"
- "17001:17001"
- "18001:18001"
- "8080:8080"
working_dir: /opencog # This is the same as the volume mount point below
volumes:
- $OPENCOG_SOURCE_DIR:/opencog
- $HOME/.gitconfig:/home/opencog/.gitconfig
- /tmp/.X11-unix/:/tmp/.X11-unix/:ro # For GUI
environment: # Set environment variables within the container
- PYTHONPATH=/opencog/build/opencog/cython:/opencog/opencog/python/:/opencog/opencog/nlp/
- OPENCOG_SOURCE_DIR=/opencog
- DISPLAY=:0 # For GUI assuming a single monitor setup. This should be set on run.