FlyersWeb / dhtbay

A DHT crawler and torrent indexer
The Unlicense
110 stars 18 forks source link

Fails to build bitcannon #13

Closed duramato closed 6 years ago

duramato commented 7 years ago

I'm trying to run bitcannon on docker, but i'm getting:

ngInfiniteScroll#1.2.0 bower_components/ngInfiniteScroll
└── angular#1.3.20

angular-animate#1.6.4 bower_components/angular-animate
└── angular#1.3.20

angular-moment#0.9.2 bower_components/angular-moment
├── angular#1.3.20
└── moment#2.9.0

bootswatch-dist#3.3.0-flatly bower_components/bootswatch-dist
└── jquery#3.2.1

angular-loading-bar#0.9.0 bower_components/angular-loading-bar
└── angular#1.3.20

angular#1.3.20 bower_components/angular

es5-shim#4.5.9 bower_components/es5-shim

ui-router#0.2.13 bower_components/ui-router
└── angular#1.3.20

angular-mocks#1.3.20 bower_components/angular-mocks
└── angular#1.3.20

json3#3.3.2 bower_components/json3

angular-scenario#1.3.20 bower_components/angular-scenario
└── angular#1.3.20

fontawesome#4.2.0 bower_components/fontawesome

jquery#3.2.1 bower_components/jquery

moment#2.9.0 bower_components/moment
Running "newer:jshint" (newer) task

Running "newer:jshint:all" (newer) task

Running "jshint:all" (jshint) task

✔ No problems

Running "newer-postrun:jshint:all:1:/var/www/node_modules/grunt-newer/.cache" (newer-postrun) task

Running "newer:jshint:test" (newer) task

Running "jshint:test" (jshint) task

✔ No problems

Running "newer-postrun:jshint:test:2:/var/www/node_modules/grunt-newer/.cache" (newer-postrun) task

Running "clean:server" (clean) task

Running "concurrent:test" (concurrent) task

    Running "copy:styles" (copy) task
    Copied 1 files

    Done, without errors.

    Execution Time (2017-06-26 22:38:31 UTC)
    loading tasks   42ms  ▇▇▇▇▇▇▇▇▇▇▇ 22%
    copy:styles    146ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 77%
    Total 189ms

Running "autoprefixer:dist" (autoprefixer) task
File .tmp/styles/main.css created.

Running "connect:test" (connect) task
Started connect web server on http://0.0.0.0:9001

Running "karma:unit" (karma) task
26 06 2017 22:38:32.454:WARN [watcher]: Pattern "/var/www/test/mock/**/*.js" does not match any file.
26 06 2017 22:38:32.552:INFO [karma]: Karma v1.7.0 server started at http://0.0.0.0:8080/
26 06 2017 22:38:32.553:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
26 06 2017 22:38:32.583:INFO [launcher]: Starting browser PhantomJS
26 06 2017 22:38:38.551:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket bSgnGdmIvJZEH_S_AAAA with id 34189137
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
  TypeError: undefined is not a function (near '....info({ angularVersion: '...')
  at bower_components/angular-animate/angular-animate.js:4139

Warning: Task "karma:unit" failed. Use --force to continue.

Aborted due to warnings.

Execution Time (2017-06-26 22:38:14 UTC)
jshint:all       371ms  ▇ 1%
concurrent:test    17s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 69%
karma:unit          7s  ▇▇▇▇▇▇▇▇▇▇▇▇▇ 28%
Total 24.8s

ERROR: Service 'bitcannon_front' failed to build: The command '/bin/sh -c npm install -g bower   && npm install -g grunt-cli   && rm -rf node_modules && rm -rf bower-components && rm -rf dist   && npm install   && bower install --allow-root=true --config.analytics=false --config.interactive=false   && grunt' returned a non-zero code: 3

Other info you may need, please do ask.

Also on a side note: i've opened the issue here becouse issues aren't open on it's repo, don't know if that's intended.

FlyersWeb commented 7 years ago

Thanks for information, i'll have a look when available

cornytrace commented 6 years ago

I solved this by changing the line "angular-animate": "^1.3.0", to "angular-animate": "~1.3.0", in web/bower.json. However, now it complains that both dhtbay and bitcannon have a mongodb container. Can you please post some instructions on how to make them work together?

Edit: are the two applications supposed to share a db, or can each have their own?

FlyersWeb commented 6 years ago

I'm working on a docker-compose file with both of them, but they can share the same mongo db without problem