grafana / kairosdb-datasource

Data source plugin for KairosDB
Apache License 2.0
30 stars 62 forks source link

Unable to compile inside docker container with golang:1.13-alpine3.11 image #89

Closed mr-yaky closed 4 years ago

mr-yaky commented 4 years ago

Hi, I'm trying to compile frontend with make frontend but always get following error somehow:

Running "clean:dist" (clean) task
>> 1 path cleaned.

Running "copy:src_to_dist" (copy) task
Created 14 directories, copied 73 files

Running "copy:metadata" (copy) task
Copied 2 files

Running "packageModules:dist" (packageModules) task
grafana-kairosdb-datasource@3.0.0 /go/src/github.com/grafana/kairosdb-datasource/dist
`-- grafana-sdk-mocks@1.0.0  (git://github.com/grafana/grafana-sdk-mocks.git#8022ff1856048f8716d00b15b4423795b81f8369)

[                 .] - runTopLevelLifecycles: sill install printInstalled
Running "tslint:files" (tslint) task
>> 54 files lint free. runTopLevelLifecycles: sill install printInstalled

Running "tslint:test" (tslint) task
>> 18 files lint free. runTopLevelLifecycles: sill install printInstalled

Running "typescript:build" (typescript) task
180 files created. js: 60 files, map: 60 files, declaration: 60 files (2272ms)
[                 .] - runTopLevelLifecycles: sill install printInstalled
Running "babel:distTestsSpecsNoSystemJs" (babel) task

Running "karma:unit" (karma) task
25 02 2020 18:11:10.758:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
25 02 2020 18:11:10.763:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
25 02 2020 18:11:10.777:INFO [launcher]: Starting browser PhantomJStalled
25 02 2020 18:12:10.780:WARN [launcher]: PhantomJS have not captured in 60000 ms, killing.
25 02 2020 18:12:12.785:WARN [launcher]: PhantomJS was not killed in 2000 ms, sending SIGKILL.
25 02 2020 18:12:14.787:WARN [launcher]: PhantomJS was not killed by SIGKILL in 2000 ms, continuing.
Warning: Task "karma:unit" failed. Use --force to continue.

Aborted due to warnings.
make: *** [Makefile:5: frontend] Error 3
# cat /etc/hosts
127.0.0.1   localhost
10.233.83.244   build-container

Can anyone help with this to compile, please ? I have read some issues and tried to do some recommendation from karma upstream project but without success. Really strange bug.

Env info:

/go/src/github.com/grafana/kairosdb-datasource # go version
go version go1.13.8 linux/amd64
/go/src/github.com/grafana/kairosdb-datasource # node --version
v12.15.0
/go/src/github.com/grafana/kairosdb-datasource # grunt --version
grunt-cli v1.3.2
grunt v1.0.4
mr-yaky commented 4 years ago

hmmm... seems that I mixed up the project. I have opened another ticket on latest supported fork: https://github.com/kairosdb/kairosdb-datasource/issues/4