Consensys / Mahuta

IPFS Storage service with search capability
Apache License 2.0
237 stars 49 forks source link

Fail in setup #73

Closed QYuQianchen closed 5 years ago

QYuQianchen commented 5 years ago

I followed the wiki to setup Mahuta on my local computer.

After I cloned the repo and went to the mauta-http-api repo, it failed when I tried to docker-compose -f docker-compose.yml build. The error is:

Step 2/5 : ADD target/mahuta-http-api-exec.jar mahuta-http-api.jar
ERROR: Service 'mahuta' failed to build: ADD failed: stat /var/lib/docker/tmp/docker-builder297039896/target/mahuta-http-api-exec.jar: no such file or directory
QYuQianchen commented 5 years ago

By following the instruction in the README file, I have encountered the failure:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.306 s
[INFO] Finished at: 2019-04-02T17:55:38+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project mahuta-http-api: Could not resolve dependencies for project net.consensys.mahuta:mahuta-http-api:jar:0.3.4-SNAPSHOT: The following artifacts could not be resolved: net.consensys.mahuta:mahuta-indexer-elasticsearch:jar:0.3.4-SNAPSHOT, net.consensys.mahuta:mahuta-core:jar:tests:0.3.4-SNAPSHOT: Failure to find net.consensys.mahuta:mahuta-indexer-elasticsearch:jar:0.3.4-SNAPSHOT in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central_repository has elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
gjeanmart commented 5 years ago

Hi there, Sorry for the late reply. Since the recent large refactoring of the project. The Wiki is completely out of date and I definitely need to fix this asap.

However, this refactoring now supports a new CI pipeline which publishes the Docker images of the API mahuta-api-http on DockerHub so you don't need to build, compile and package the project like before to get started.

Please find below a docker-compose example:

services:

mahuta: image: gjeanmart/mahuta:latest ports:

This should startup ElasticSearch, an IPFS node and Mahuta HTTP API.