Closed nlamirault closed 9 years ago
Next time, try to avoid mixing real changes with indent or other space issues.
Sorry, didn't want to close this :(
Followed doc: $ make init $ ./machine create -d virtualbox risno $ eval "$(./machine env risno)" $ ./compose up
Then when connectiong to web application, we get errors since the elasticsearch indexes do not exist. So nodejs web application succeeds in connectings to elasticsearch but it can not find the indexes it needs to work.
making a docker diff, I see that elasticsearch container write data in /src/elasticsearch/data/elasticsearch instead of /var/lib/elasticsearch
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 383935651aee gite_elasticsearch:latest "/src/elasticsearch/ 4 seconds ago Up 3 seconds 0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp gite_elasticsearch_1
C /src C /src/elasticsearch A /src/elasticsearch/data A /src/elasticsearch/data/elasticsearch A /src/elasticsearch/data/elasticsearch/nodes A /src/elasticsearch/data/elasticsearch/nodes/0 A /src/elasticsearch/data/elasticsearch/nodes/0/node.lock A /src/elasticsearch/logs A /src/elasticsearch/logs/elasticsearch.log A /src/elasticsearch/logs/elasticsearch_index_indexing_slowlog.log A /src/elasticsearch/logs/elasticsearch_index_search_slowlog.log C /tmp C /tmp/hsperfdata_root A /tmp/hsperfdata_root/1 C /var C /var/lib A /var/lib/elasticsearch C /var/log A /var/log/elasticsearch
Pushed some fixes in develop branch
Now both containers see each other but we may have an issue with elasticsearch version.
Last issue came from elasticsearch data on my terminal. So it is OK.
Last pushed version works: I can launch both elasticsearch and webapp with compose up and it just works.
So know the question is : what do we do with this stuff ?
This pull request is related to issue #9
Switching to pull request #19
This request initialize Docker support for the web application and the Elasticsearch image. Little refactoring for project organization. We must check whether the unit tests pass correctly before accepting the merge request.