- Setup minemeld-core
- You need leveldb to install the plyvel Python package and rrdtool for the rrdtool Python package
brew install leveldb rrdtool nodeenv
- Make wrappers for the PyCharm debugger:
cd $w/minemeld-docker bin/setup-minemeld
- Configure the PyCharm minemeld-core project with the custom Python environment
On the "PyCharm>Preferences...>Project: minemeld-core>Project Interpreter" page, click the settings gear and "Add..." a new Project Interpreter. Choose "Virtual Environment>Existing environment" and set the Interpreter to${w}/pyenv/minemeld-core/bin/python
- Setup the "traced" debug target:
Script path $w/minemeld-core/minemeld/cli/traced.py Parameters traced.yml Environment variables PYTHONUNBUFFERED=1 Working directory $w/minemeld-docker/minemeld.d - Setup the "engine" debug target:
Script path $w/minemeld-core/minemeld/cli/engine.py Parameters . Environment variables PYTHONUNBUFFERED=1
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
MINEMELD_PROTOTYPE_PATH=../../minemeld-node-prototypes/prototypes
MINEMELD_NODES_PATH=../../minemeld-core/nodes.jsonWorking directory $w/minemeld-docker/minemeld.d - Setup the "web" debug target:
Script path $w/minemeld-core/minemeld/cli/web.py Parameters . Environment variables PYTHONUNBUFFERED=1
MM_CONFIG=.
MINEMELD_LOCAL_PATH=../shared.d
API_CONFIG_LOCK=./api/api-config.lock
REDIS_URL=redis://127.0.0.1:10001/0Working directory $w/minemeld-docker/minemeld.d - Configure PyCharm for gevent compatible debugging. On "PyCharm>Preferences...>Build, Execution, Deployment>Python Debugger", ensure that "Gevent compatible" is checked.
- Build and start the docker-based services:
docker-compose build docker-compose up
- Start debugging using the "traced" target Run>Debug...>traced
- Start debugging using the "engine" target Run>Debug...>engine
- Start debugging using the "web" target Run>Debug...>web
- You need leveldb to install the plyvel Python package and rrdtool for the rrdtool Python package
- Setup minemeld-webui
- Configure the WebStorm minemeld-webui project with the custom Node.js environment
On the "WebStorm>Preferences>Languages & Frameworks>Node.js and NPM" page, click the "..." at the right of the Node interpreter line, then click "+>Add Local..." and add${w}/nodeenv/minemeld-webui/bin/node
- Setup the "serve" target
- Click "View>Tool windows>Gulp" to open the Gulp tools window
- Right click on the "serve" Gulp target
- Click "Edit 'serve' settings..."
- Set arguments to: --nobrowser --url http://127.0.0.1:5000
- Setup the "webui" target
- Click "Run>Edit Configurations..."
- Click "+>JavaScript Debug"
- Set name to "webui"
- Set URL to "http://localhost:3000"
- Start debugging using the "serve" target
- Start debugging using the "webui" target
- Alternatively, you can use command line testing
cd $w/minemeld-webui . ../pyenv/minemeld-webui/bin/activate . ../nodeenv/minemeld-webui/bin/activate PATH=$(npm bin):$PATH gulp serve --url http://127.0.0.1:5000
- Configure the WebStorm minemeld-webui project with the custom Node.js environment
-
Notifications
You must be signed in to change notification settings - Fork 0
Docker based services for developing minemeld
License
sddj/minemeld-docker
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Docker based services for developing minemeld
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published