Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce Docker image size and add npm env to resolve npm projects' dependencies #59

Merged
merged 2 commits into from
Aug 21, 2021

Conversation

zooltd
Copy link
Contributor

@zooltd zooltd commented Aug 21, 2021

we don't need the entire golang development environment, instead, we only need the golang CLI tool to help us resolve packages.

@kezhenxu94 kezhenxu94 added the enhancement New feature or request label Aug 21, 2021
@kezhenxu94 kezhenxu94 added this to the 0.2.0 milestone Aug 21, 2021
@kezhenxu94
Copy link
Member

@zooltd what's the size for now?

@zooltd
Copy link
Contributor Author

zooltd commented Aug 21, 2021

@zooltd what's the size for now?

206.37 MB

@kezhenxu94
Copy link
Member

@zooltd what's the size for now?

206.37 MB

Nice 👍🏻

@zooltd
Copy link
Contributor Author

zooltd commented Aug 21, 2021

Run the docker container to resolve licenses on https://github.com/apache/skywalking-eyes and https://github.com/apache/skywalking-nodejs simultaneously , the output is shown below:

root@Samaritan:~/test# docker run -it --rm -v $(pwd):/github/workspace license-eye d r
INFO GITHUB_TOKEN is not set, license-eye won't comment on the pull request
INFO Loading configuration from file: .licenserc.yaml
WARNING Failed to resolve the license of <github.com/gogo/protobuf>: cannot identify license content
WARNING Failed to resolve the license of <github.com/kr/logfmt>: cannot find license file
WARNING Failed to resolve the license of <github.com/magiconair/properties>: cannot identify license content
WARNING Failed to resolve the license of <github.com/miekg/dns>: cannot identify license content
WARNING Failed to resolve the license of <github.com/pascaldekloe/goe>: cannot identify license content
WARNING Failed to resolve the license of <github.com/russross/blackfriday/v2>: cannot identify license content
WARNING Failed to resolve the license of <gopkg.in/check.v1>: cannot identify license content
INFO Try to install nodejs packages in 5 seconds, press [s/S] and ENTER to skip
INFO Time out, try to install packages
INFO Run command: /usr/bin/npm install, please wait

skywalking-backend-js@0.4.0 prepare
npm run generate-source

skywalking-backend-js@0.4.0 generate-source
scripts/protoc.sh

env: can't execute 'bash': No such file or directory
npm ERR! code 127
npm ERR! path /github/workspace/skywalking-nodejs
npm ERR! command failed
npm ERR! command sh -c npm run generate-source

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-08-21T14_17_26_400Z-debug.log
ERROR exit status 127

Dependency License
github.com/apache/skywalking-eyes/license-eye Apache-2.0
cloud.google.com/go Apache-2.0
cloud.google.com/go/bigquery Apache-2.0
cloud.google.com/go/datastore Apache-2.0
cloud.google.com/go/firestore Apache-2.0
cloud.google.com/go/pubsub Apache-2.0
cloud.google.com/go/storage Apache-2.0
dmitri.shuralyov.com/gpu/mtl BSD-3-Clause
github.com/BurntSushi/toml MIT
github.com/BurntSushi/xgb BSD-3-Clause
github.com/OneOfOne/xxhash Apache-2.0
github.com/alecthomas/template BSD-3-Clause
github.com/alecthomas/units MIT
github.com/armon/circbuf MIT
github.com/armon/go-metrics MIT
github.com/armon/go-radix MIT
github.com/beorn7/perks MIT
github.com/bgentry/speakeasy MIT
github.com/bketelsen/crypt MIT
github.com/bmatcuk/doublestar/v2 MIT
github.com/cespare/xxhash MIT
github.com/client9/misspell MIT
github.com/coreos/bbolt MIT
github.com/coreos/etcd Apache-2.0
github.com/coreos/go-semver Apache-2.0
github.com/coreos/go-systemd Apache-2.0
github.com/coreos/pkg Apache-2.0
github.com/cpuguy83/go-md2man/v2 MIT
github.com/davecgh/go-spew ISC
github.com/dgrijalva/jwt-go MIT
github.com/dgryski/go-sip13 MIT
github.com/fatih/color MIT
github.com/fsnotify/fsnotify BSD-3-Clause
github.com/ghodss/yaml MIT
github.com/go-gl/glfw BSD-3-Clause
github.com/go-kit/kit MIT
github.com/go-logfmt/logfmt MIT
github.com/go-stack/stack MIT
github.com/golang/glog Apache-2.0
github.com/golang/groupcache Apache-2.0
github.com/golang/mock Apache-2.0
github.com/golang/protobuf BSD-3-Clause
github.com/google/btree Apache-2.0
github.com/google/go-cmp BSD-3-Clause
github.com/google/go-github/v33 BSD-3-Clause
github.com/google/go-querystring BSD-3-Clause
github.com/google/martian Apache-2.0
github.com/google/pprof Apache-2.0
github.com/google/renameio Apache-2.0
github.com/googleapis/gax-go/v2 BSD-3-Clause
github.com/gopherjs/gopherjs BSD-2-Clause
github.com/gorilla/websocket BSD-2-Clause
github.com/grpc-ecosystem/go-grpc-middleware Apache-2.0
github.com/grpc-ecosystem/go-grpc-prometheus Apache-2.0
github.com/grpc-ecosystem/grpc-gateway BSD-3-Clause
github.com/hashicorp/consul/api MPL-2.0
github.com/hashicorp/consul/sdk MPL-2.0
github.com/hashicorp/errwrap MPL-2.0
github.com/hashicorp/go-cleanhttp MPL-2.0
github.com/hashicorp/go-immutable-radix MPL-2.0
github.com/hashicorp/go-msgpack BSD-3-Clause
github.com/hashicorp/go-multierror MPL-2.0
github.com/hashicorp/go-rootcerts MPL-2.0
github.com/hashicorp/go-sockaddr MPL-2.0
github.com/hashicorp/go-syslog MIT
github.com/hashicorp/go-uuid MPL-2.0-no-copyleft-exception
github.com/hashicorp/go.net BSD-3-Clause
github.com/hashicorp/golang-lru MPL-2.0-no-copyleft-exception
github.com/hashicorp/hcl MPL-2.0
github.com/hashicorp/logutils MPL-2.0
github.com/hashicorp/mdns MIT
github.com/hashicorp/memberlist MPL-2.0
github.com/hashicorp/serf MPL-2.0-no-copyleft-exception
github.com/inconshreveable/mousetrap Apache-2.0
github.com/jonboulle/clockwork Apache-2.0
github.com/json-iterator/go MIT
github.com/jstemmer/go-junit-report MIT
github.com/jtolds/gls MIT
github.com/julienschmidt/httprouter BSD-3-Clause
github.com/kisielk/errcheck MIT
github.com/kisielk/gotool MIT
github.com/konsorten/go-windows-terminal-sequences MIT
github.com/kr/pretty MIT
github.com/kr/pty MIT
github.com/kr/text MIT
github.com/mattn/go-colorable MIT
github.com/mattn/go-isatty MIT
github.com/matttproud/golang_protobuf_extensions Apache-2.0
github.com/mitchellh/cli MPL-2.0
github.com/mitchellh/go-homedir MIT
github.com/mitchellh/go-testing-interface MIT
github.com/mitchellh/gox MPL-2.0-no-copyleft-exception
github.com/mitchellh/iochan MIT
github.com/mitchellh/mapstructure MIT
github.com/modern-go/concurrent Apache-2.0
github.com/modern-go/reflect2 Apache-2.0
github.com/mwitkow/go-conntrack Apache-2.0
github.com/oklog/ulid Apache-2.0
github.com/pelletier/go-toml MIT
github.com/pkg/errors BSD-2-Clause
github.com/pmezard/go-difflib BSD-3-Clause
github.com/posener/complete MIT
github.com/prometheus/client_golang Apache-2.0
github.com/prometheus/client_model Apache-2.0
github.com/prometheus/common Apache-2.0
github.com/prometheus/procfs Apache-2.0
github.com/prometheus/tsdb Apache-2.0
github.com/rogpeppe/fastuuid BSD-3-Clause
github.com/rogpeppe/go-internal BSD-3-Clause
github.com/ryanuber/columnize MIT
github.com/sean-/seed MIT
github.com/shurcooL/sanitized_anchor_name MIT
github.com/sirupsen/logrus MIT
github.com/smartystreets/assertions MIT
github.com/smartystreets/goconvey MIT
github.com/soheilhy/cmux Apache-2.0
github.com/spaolacci/murmur3 BSD-3-Clause
github.com/spf13/afero Apache-2.0
github.com/spf13/cast MIT
github.com/spf13/cobra Apache-2.0
github.com/spf13/jwalterweatherman MIT
github.com/spf13/pflag BSD-3-Clause
github.com/spf13/viper MIT
github.com/stretchr/objx MIT
github.com/stretchr/testify MIT
github.com/subosito/gotenv MIT
github.com/tmc/grpc-websocket-proxy MIT
github.com/xiang90/probing MIT
github.com/yuin/goldmark MIT
go.etcd.io/bbolt MIT
go.opencensus.io Apache-2.0
go.uber.org/atomic MIT
go.uber.org/multierr MIT
go.uber.org/zap MIT
golang.org/x/crypto BSD-3-Clause
golang.org/x/exp BSD-3-Clause
golang.org/x/image BSD-3-Clause
golang.org/x/lint BSD-3-Clause
golang.org/x/mobile BSD-3-Clause
golang.org/x/mod BSD-3-Clause
golang.org/x/net BSD-3-Clause
golang.org/x/oauth2 BSD-3-Clause
golang.org/x/sync BSD-3-Clause
golang.org/x/sys BSD-3-Clause
golang.org/x/term BSD-3-Clause
golang.org/x/text BSD-3-Clause
golang.org/x/time BSD-3-Clause
golang.org/x/tools BSD-3-Clause
golang.org/x/xerrors BSD-3-Clause
google.golang.org/api BSD-3-Clause
google.golang.org/appengine Apache-2.0
google.golang.org/genproto Apache-2.0
google.golang.org/grpc Apache-2.0
gopkg.in/alecthomas/kingpin.v2 MIT
gopkg.in/errgo.v2 BSD-3-Clause
gopkg.in/ini.v1 Apache-2.0
gopkg.in/resty.v1 MIT
gopkg.in/yaml.v2 Apache-2.0
gopkg.in/yaml.v3 MIT and Apache
honnef.co/go/tools MIT
rsc.io/binaryregexp BSD-3-Clause
google-protobuf BSD-3-Clause
grpc Apache-2.0
semver ISC
tslib 0BSD
uuid MIT
winston MIT
@types/bytebuffer MIT
lodash.camelcase MIT
lodash.clone MIT
nan MIT
node-pre-gyp BSD-3-Clause
protobufjs Apache-2.0
lru-cache ISC
@dabh/diagnostics MIT
async MIT
is-stream MIT
logform MIT
one-time MIT
winston/node_modules/readable-stream MIT
stack-trace MIT
triple-beam MIT
winston-transport MIT
@types/long MIT
@types/node MIT
detect-libc Apache-2.0
mkdirp MIT
needle MIT
nopt ISC
npm-packlist ISC
npmlog ISC
rc (BSD-2-Clause OR MIT OR Apache-2.0)
rimraf ISC
node-pre-gyp/node_modules/semver ISC
tar ISC
ascli Apache-2.0
bytebuffer Apache-2.0
glob ISC
yargs MIT
lru-cache/node_modules/yallist ISC
colorspace MIT
enabled MIT
kuler MIT
colors MIT
fast-safe-stringify MIT
fecha MIT
ms MIT
fn.name MIT
inherits ISC
string_decoder MIT
util-deprecate MIT
readable-stream MIT
minimist MIT
debug MIT
iconv-lite MIT
sax ISC
abbrev ISC
osenv ISC
ignore-walk ISC
npm-bundled ISC
npm-normalize-package-bin ISC
are-we-there-yet ISC
console-control-strings ISC
gauge ISC
set-blocking ISC
deep-extend MIT
ini ISC
strip-json-comments MIT
chownr ISC
fs-minipass ISC
minipass ISC
minizlib MIT
safe-buffer MIT
yallist ISC
colour MIT
optjs MIT
long Apache-2.0
fs.realpath ISC
inflight ISC
minimatch ISC
once ISC
path-is-absolute MIT
camelcase MIT
cliui ISC
decamelize MIT
os-locale MIT
string-width MIT
window-size MIT
y18n ISC
color MIT
text-hex MIT
core-util-is MIT
isarray MIT
process-nextick-args MIT
safer-buffer MIT
os-homedir MIT
os-tmpdir MIT
delegates MIT
aproba ISC
has-unicode ISC
object-assign MIT
signal-exit ISC
strip-ansi MIT
wide-align ISC
wrappy ISC
brace-expansion MIT
wrap-ansi MIT
lcid MIT
code-point-at MIT
is-fullwidth-code-point MIT
color-convert MIT
color-string MIT
ansi-regex MIT
balanced-match MIT
concat-map MIT
invert-kv MIT
number-is-nan MIT
color-name MIT
simple-swizzle MIT
is-arrayish MIT
github.com/gogo/protobuf Unknown
github.com/kr/logfmt Unknown
github.com/magiconair/properties Unknown
github.com/miekg/dns Unknown
github.com/pascaldekloe/goe Unknown
github.com/russross/blackfriday/v2 Unknown
gopkg.in/check.v1 Unknown

ERROR failed to identify the licenses of following packages (7):
github.com/gogo/protobuf
github.com/kr/logfmt
github.com/magiconair/properties
github.com/miekg/dns
github.com/pascaldekloe/goe
github.com/russross/blackfriday/v2
gopkg.in/check.v1

@kezhenxu94 kezhenxu94 changed the title reduce docker img size and add npm env Reduce Docker image size and add npm env to resolve npm projects' dependencies Aug 21, 2021
kezhenxu94
kezhenxu94 previously approved these changes Aug 21, 2021
Copy link
Member

@kezhenxu94 kezhenxu94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, works well. Nice work! 🙇🏻

Dockerfile Outdated Show resolved Hide resolved
@wu-sheng wu-sheng merged commit 13c159d into apache:main Aug 21, 2021
@wu-sheng
Copy link
Member

Run the docker container to resolve licenses on https://github.com/apache/skywalking-eyes and https://github.com/apache/skywalking-nodejs simultaneously , the output is shown below:

root@Samaritan:~/test# docker run -it --rm -v $(pwd):/github/workspace license-eye d r
INFO GITHUB_TOKEN is not set, license-eye won't comment on the pull request
INFO Loading configuration from file: .licenserc.yaml
WARNING Failed to resolve the license of <github.com/gogo/protobuf>: cannot identify license content
WARNING Failed to resolve the license of <github.com/kr/logfmt>: cannot find license file
WARNING Failed to resolve the license of <github.com/magiconair/properties>: cannot identify license content
WARNING Failed to resolve the license of <github.com/miekg/dns>: cannot identify license content
WARNING Failed to resolve the license of <github.com/pascaldekloe/goe>: cannot identify license content
WARNING Failed to resolve the license of <github.com/russross/blackfriday/v2>: cannot identify license content
WARNING Failed to resolve the license of <gopkg.in/check.v1>: cannot identify license content
INFO Try to install nodejs packages in 5 seconds, press [s/S] and ENTER to skip
INFO Time out, try to install packages
INFO Run command: /usr/bin/npm install, please wait

skywalking-backend-js@0.4.0 prepare
npm run generate-source

skywalking-backend-js@0.4.0 generate-source
scripts/protoc.sh

env: can't execute 'bash': No such file or directory
npm ERR! code 127
npm ERR! path /github/workspace/skywalking-nodejs
npm ERR! command failed
npm ERR! command sh -c npm run generate-source

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-08-21T14_17_26_400Z-debug.log
ERROR exit status 127

Dependency License
github.com/apache/skywalking-eyes/license-eye Apache-2.0
cloud.google.com/go Apache-2.0
cloud.google.com/go/bigquery Apache-2.0
cloud.google.com/go/datastore Apache-2.0
cloud.google.com/go/firestore Apache-2.0
cloud.google.com/go/pubsub Apache-2.0
cloud.google.com/go/storage Apache-2.0
dmitri.shuralyov.com/gpu/mtl BSD-3-Clause
github.com/BurntSushi/toml MIT
github.com/BurntSushi/xgb BSD-3-Clause
github.com/OneOfOne/xxhash Apache-2.0
github.com/alecthomas/template BSD-3-Clause
github.com/alecthomas/units MIT
github.com/armon/circbuf MIT
github.com/armon/go-metrics MIT
github.com/armon/go-radix MIT
github.com/beorn7/perks MIT
github.com/bgentry/speakeasy MIT
github.com/bketelsen/crypt MIT
github.com/bmatcuk/doublestar/v2 MIT
github.com/cespare/xxhash MIT
github.com/client9/misspell MIT
github.com/coreos/bbolt MIT
github.com/coreos/etcd Apache-2.0
github.com/coreos/go-semver Apache-2.0
github.com/coreos/go-systemd Apache-2.0
github.com/coreos/pkg Apache-2.0
github.com/cpuguy83/go-md2man/v2 MIT
github.com/davecgh/go-spew ISC
github.com/dgrijalva/jwt-go MIT
github.com/dgryski/go-sip13 MIT
github.com/fatih/color MIT
github.com/fsnotify/fsnotify BSD-3-Clause
github.com/ghodss/yaml MIT
github.com/go-gl/glfw BSD-3-Clause
github.com/go-kit/kit MIT
github.com/go-logfmt/logfmt MIT
github.com/go-stack/stack MIT
github.com/golang/glog Apache-2.0
github.com/golang/groupcache Apache-2.0
github.com/golang/mock Apache-2.0
github.com/golang/protobuf BSD-3-Clause
github.com/google/btree Apache-2.0
github.com/google/go-cmp BSD-3-Clause
github.com/google/go-github/v33 BSD-3-Clause
github.com/google/go-querystring BSD-3-Clause
github.com/google/martian Apache-2.0
github.com/google/pprof Apache-2.0
github.com/google/renameio Apache-2.0
github.com/googleapis/gax-go/v2 BSD-3-Clause
github.com/gopherjs/gopherjs BSD-2-Clause
github.com/gorilla/websocket BSD-2-Clause
github.com/grpc-ecosystem/go-grpc-middleware Apache-2.0
github.com/grpc-ecosystem/go-grpc-prometheus Apache-2.0
github.com/grpc-ecosystem/grpc-gateway BSD-3-Clause
github.com/hashicorp/consul/api MPL-2.0
github.com/hashicorp/consul/sdk MPL-2.0
github.com/hashicorp/errwrap MPL-2.0
github.com/hashicorp/go-cleanhttp MPL-2.0
github.com/hashicorp/go-immutable-radix MPL-2.0
github.com/hashicorp/go-msgpack BSD-3-Clause
github.com/hashicorp/go-multierror MPL-2.0
github.com/hashicorp/go-rootcerts MPL-2.0
github.com/hashicorp/go-sockaddr MPL-2.0
github.com/hashicorp/go-syslog MIT
github.com/hashicorp/go-uuid MPL-2.0-no-copyleft-exception
github.com/hashicorp/go.net BSD-3-Clause
github.com/hashicorp/golang-lru MPL-2.0-no-copyleft-exception
github.com/hashicorp/hcl MPL-2.0
github.com/hashicorp/logutils MPL-2.0
github.com/hashicorp/mdns MIT
github.com/hashicorp/memberlist MPL-2.0
github.com/hashicorp/serf MPL-2.0-no-copyleft-exception
github.com/inconshreveable/mousetrap Apache-2.0
github.com/jonboulle/clockwork Apache-2.0
github.com/json-iterator/go MIT
github.com/jstemmer/go-junit-report MIT
github.com/jtolds/gls MIT
github.com/julienschmidt/httprouter BSD-3-Clause
github.com/kisielk/errcheck MIT
github.com/kisielk/gotool MIT
github.com/konsorten/go-windows-terminal-sequences MIT
github.com/kr/pretty MIT
github.com/kr/pty MIT
github.com/kr/text MIT
github.com/mattn/go-colorable MIT
github.com/mattn/go-isatty MIT
github.com/matttproud/golang_protobuf_extensions Apache-2.0
github.com/mitchellh/cli MPL-2.0
github.com/mitchellh/go-homedir MIT
github.com/mitchellh/go-testing-interface MIT
github.com/mitchellh/gox MPL-2.0-no-copyleft-exception
github.com/mitchellh/iochan MIT
github.com/mitchellh/mapstructure MIT
github.com/modern-go/concurrent Apache-2.0
github.com/modern-go/reflect2 Apache-2.0
github.com/mwitkow/go-conntrack Apache-2.0
github.com/oklog/ulid Apache-2.0
github.com/pelletier/go-toml MIT
github.com/pkg/errors BSD-2-Clause
github.com/pmezard/go-difflib BSD-3-Clause
github.com/posener/complete MIT
github.com/prometheus/client_golang Apache-2.0
github.com/prometheus/client_model Apache-2.0
github.com/prometheus/common Apache-2.0
github.com/prometheus/procfs Apache-2.0
github.com/prometheus/tsdb Apache-2.0
github.com/rogpeppe/fastuuid BSD-3-Clause
github.com/rogpeppe/go-internal BSD-3-Clause
github.com/ryanuber/columnize MIT
github.com/sean-/seed MIT
github.com/shurcooL/sanitized_anchor_name MIT
github.com/sirupsen/logrus MIT
github.com/smartystreets/assertions MIT
github.com/smartystreets/goconvey MIT
github.com/soheilhy/cmux Apache-2.0
github.com/spaolacci/murmur3 BSD-3-Clause
github.com/spf13/afero Apache-2.0
github.com/spf13/cast MIT
github.com/spf13/cobra Apache-2.0
github.com/spf13/jwalterweatherman MIT
github.com/spf13/pflag BSD-3-Clause
github.com/spf13/viper MIT
github.com/stretchr/objx MIT
github.com/stretchr/testify MIT
github.com/subosito/gotenv MIT
github.com/tmc/grpc-websocket-proxy MIT
github.com/xiang90/probing MIT
github.com/yuin/goldmark MIT
go.etcd.io/bbolt MIT
go.opencensus.io Apache-2.0
go.uber.org/atomic MIT
go.uber.org/multierr MIT
go.uber.org/zap MIT
golang.org/x/crypto BSD-3-Clause
golang.org/x/exp BSD-3-Clause
golang.org/x/image BSD-3-Clause
golang.org/x/lint BSD-3-Clause
golang.org/x/mobile BSD-3-Clause
golang.org/x/mod BSD-3-Clause
golang.org/x/net BSD-3-Clause
golang.org/x/oauth2 BSD-3-Clause
golang.org/x/sync BSD-3-Clause
golang.org/x/sys BSD-3-Clause
golang.org/x/term BSD-3-Clause
golang.org/x/text BSD-3-Clause
golang.org/x/time BSD-3-Clause
golang.org/x/tools BSD-3-Clause
golang.org/x/xerrors BSD-3-Clause
google.golang.org/api BSD-3-Clause
google.golang.org/appengine Apache-2.0
google.golang.org/genproto Apache-2.0
google.golang.org/grpc Apache-2.0
gopkg.in/alecthomas/kingpin.v2 MIT
gopkg.in/errgo.v2 BSD-3-Clause
gopkg.in/ini.v1 Apache-2.0
gopkg.in/resty.v1 MIT
gopkg.in/yaml.v2 Apache-2.0
gopkg.in/yaml.v3 MIT and Apache
honnef.co/go/tools MIT
rsc.io/binaryregexp BSD-3-Clause
google-protobuf BSD-3-Clause
grpc Apache-2.0
semver ISC
tslib 0BSD
uuid MIT
winston MIT
@types/bytebuffer MIT
lodash.camelcase MIT
lodash.clone MIT
nan MIT
node-pre-gyp BSD-3-Clause
protobufjs Apache-2.0
lru-cache ISC
@dabh/diagnostics MIT
async MIT
is-stream MIT
logform MIT
one-time MIT
winston/node_modules/readable-stream MIT
stack-trace MIT
triple-beam MIT
winston-transport MIT
@types/long MIT
@types/node MIT
detect-libc Apache-2.0
mkdirp MIT
needle MIT
nopt ISC
npm-packlist ISC
npmlog ISC
rc (BSD-2-Clause OR MIT OR Apache-2.0)
rimraf ISC
node-pre-gyp/node_modules/semver ISC
tar ISC
ascli Apache-2.0
bytebuffer Apache-2.0
glob ISC
yargs MIT
lru-cache/node_modules/yallist ISC
colorspace MIT
enabled MIT
kuler MIT
colors MIT
fast-safe-stringify MIT
fecha MIT
ms MIT
fn.name MIT
inherits ISC
string_decoder MIT
util-deprecate MIT
readable-stream MIT
minimist MIT
debug MIT
iconv-lite MIT
sax ISC
abbrev ISC
osenv ISC
ignore-walk ISC
npm-bundled ISC
npm-normalize-package-bin ISC
are-we-there-yet ISC
console-control-strings ISC
gauge ISC
set-blocking ISC
deep-extend MIT
ini ISC
strip-json-comments MIT
chownr ISC
fs-minipass ISC
minipass ISC
minizlib MIT
safe-buffer MIT
yallist ISC
colour MIT
optjs MIT
long Apache-2.0
fs.realpath ISC
inflight ISC
minimatch ISC
once ISC
path-is-absolute MIT
camelcase MIT
cliui ISC
decamelize MIT
os-locale MIT
string-width MIT
window-size MIT
y18n ISC
color MIT
text-hex MIT
core-util-is MIT
isarray MIT
process-nextick-args MIT
safer-buffer MIT
os-homedir MIT
os-tmpdir MIT
delegates MIT
aproba ISC
has-unicode ISC
object-assign MIT
signal-exit ISC
strip-ansi MIT
wide-align ISC
wrappy ISC
brace-expansion MIT
wrap-ansi MIT
lcid MIT
code-point-at MIT
is-fullwidth-code-point MIT
color-convert MIT
color-string MIT
ansi-regex MIT
balanced-match MIT
concat-map MIT
invert-kv MIT
number-is-nan MIT
color-name MIT
simple-swizzle MIT
is-arrayish MIT
github.com/gogo/protobuf Unknown
github.com/kr/logfmt Unknown
github.com/magiconair/properties Unknown
github.com/miekg/dns Unknown
github.com/pascaldekloe/goe Unknown
github.com/russross/blackfriday/v2 Unknown
gopkg.in/check.v1 Unknown
ERROR failed to identify the licenses of following packages (7):
github.com/gogo/protobuf
github.com/kr/logfmt
github.com/magiconair/properties
github.com/miekg/dns
github.com/pascaldekloe/goe
github.com/russross/blackfriday/v2
gopkg.in/check.v1

@zooltd What is this for? It seems unrelated to this PR.

@zooltd
Copy link
Contributor Author

zooltd commented Aug 21, 2021

Run the docker container to resolve licenses on https://github.com/apache/skywalking-eyes and https://github.com/apache/skywalking-nodejs simultaneously , the output is shown below:
root@Samaritan:~/test# docker run -it --rm -v $(pwd):/github/workspace license-eye d r
INFO GITHUB_TOKEN is not set, license-eye won't comment on the pull request
INFO Loading configuration from file: .licenserc.yaml
WARNING Failed to resolve the license of <github.com/gogo/protobuf>: cannot identify license content
WARNING Failed to resolve the license of <github.com/kr/logfmt>: cannot find license file
WARNING Failed to resolve the license of <github.com/magiconair/properties>: cannot identify license content
WARNING Failed to resolve the license of <github.com/miekg/dns>: cannot identify license content
WARNING Failed to resolve the license of <github.com/pascaldekloe/goe>: cannot identify license content
WARNING Failed to resolve the license of <github.com/russross/blackfriday/v2>: cannot identify license content
WARNING Failed to resolve the license of <gopkg.in/check.v1>: cannot identify license content
INFO Try to install nodejs packages in 5 seconds, press [s/S] and ENTER to skip
INFO Time out, try to install packages
INFO Run command: /usr/bin/npm install, please wait

skywalking-backend-js@0.4.0 prepare
npm run generate-source

skywalking-backend-js@0.4.0 generate-source
scripts/protoc.sh

env: can't execute 'bash': No such file or directory
npm ERR! code 127
npm ERR! path /github/workspace/skywalking-nodejs
npm ERR! command failed
npm ERR! command sh -c npm run generate-source
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-08-21T14_17_26_400Z-debug.log
ERROR exit status 127
Dependency License
github.com/apache/skywalking-eyes/license-eye Apache-2.0
cloud.google.com/go Apache-2.0
cloud.google.com/go/bigquery Apache-2.0
cloud.google.com/go/datastore Apache-2.0
cloud.google.com/go/firestore Apache-2.0
cloud.google.com/go/pubsub Apache-2.0
cloud.google.com/go/storage Apache-2.0
dmitri.shuralyov.com/gpu/mtl BSD-3-Clause
github.com/BurntSushi/toml MIT
github.com/BurntSushi/xgb BSD-3-Clause
github.com/OneOfOne/xxhash Apache-2.0
github.com/alecthomas/template BSD-3-Clause
github.com/alecthomas/units MIT
github.com/armon/circbuf MIT
github.com/armon/go-metrics MIT
github.com/armon/go-radix MIT
github.com/beorn7/perks MIT
github.com/bgentry/speakeasy MIT
github.com/bketelsen/crypt MIT
github.com/bmatcuk/doublestar/v2 MIT
github.com/cespare/xxhash MIT
github.com/client9/misspell MIT
github.com/coreos/bbolt MIT
github.com/coreos/etcd Apache-2.0
github.com/coreos/go-semver Apache-2.0
github.com/coreos/go-systemd Apache-2.0
github.com/coreos/pkg Apache-2.0
github.com/cpuguy83/go-md2man/v2 MIT
github.com/davecgh/go-spew ISC
github.com/dgrijalva/jwt-go MIT
github.com/dgryski/go-sip13 MIT
github.com/fatih/color MIT
github.com/fsnotify/fsnotify BSD-3-Clause
github.com/ghodss/yaml MIT
github.com/go-gl/glfw BSD-3-Clause
github.com/go-kit/kit MIT
github.com/go-logfmt/logfmt MIT
github.com/go-stack/stack MIT
github.com/golang/glog Apache-2.0
github.com/golang/groupcache Apache-2.0
github.com/golang/mock Apache-2.0
github.com/golang/protobuf BSD-3-Clause
github.com/google/btree Apache-2.0
github.com/google/go-cmp BSD-3-Clause
github.com/google/go-github/v33 BSD-3-Clause
github.com/google/go-querystring BSD-3-Clause
github.com/google/martian Apache-2.0
github.com/google/pprof Apache-2.0
github.com/google/renameio Apache-2.0
github.com/googleapis/gax-go/v2 BSD-3-Clause
github.com/gopherjs/gopherjs BSD-2-Clause
github.com/gorilla/websocket BSD-2-Clause
github.com/grpc-ecosystem/go-grpc-middleware Apache-2.0
github.com/grpc-ecosystem/go-grpc-prometheus Apache-2.0
github.com/grpc-ecosystem/grpc-gateway BSD-3-Clause
github.com/hashicorp/consul/api MPL-2.0
github.com/hashicorp/consul/sdk MPL-2.0
github.com/hashicorp/errwrap MPL-2.0
github.com/hashicorp/go-cleanhttp MPL-2.0
github.com/hashicorp/go-immutable-radix MPL-2.0
github.com/hashicorp/go-msgpack BSD-3-Clause
github.com/hashicorp/go-multierror MPL-2.0
github.com/hashicorp/go-rootcerts MPL-2.0
github.com/hashicorp/go-sockaddr MPL-2.0
github.com/hashicorp/go-syslog MIT
github.com/hashicorp/go-uuid MPL-2.0-no-copyleft-exception
github.com/hashicorp/go.net BSD-3-Clause
github.com/hashicorp/golang-lru MPL-2.0-no-copyleft-exception
github.com/hashicorp/hcl MPL-2.0
github.com/hashicorp/logutils MPL-2.0
github.com/hashicorp/mdns MIT
github.com/hashicorp/memberlist MPL-2.0
github.com/hashicorp/serf MPL-2.0-no-copyleft-exception
github.com/inconshreveable/mousetrap Apache-2.0
github.com/jonboulle/clockwork Apache-2.0
github.com/json-iterator/go MIT
github.com/jstemmer/go-junit-report MIT
github.com/jtolds/gls MIT
github.com/julienschmidt/httprouter BSD-3-Clause
github.com/kisielk/errcheck MIT
github.com/kisielk/gotool MIT
github.com/konsorten/go-windows-terminal-sequences MIT
github.com/kr/pretty MIT
github.com/kr/pty MIT
github.com/kr/text MIT
github.com/mattn/go-colorable MIT
github.com/mattn/go-isatty MIT
github.com/matttproud/golang_protobuf_extensions Apache-2.0
github.com/mitchellh/cli MPL-2.0
github.com/mitchellh/go-homedir MIT
github.com/mitchellh/go-testing-interface MIT
github.com/mitchellh/gox MPL-2.0-no-copyleft-exception
github.com/mitchellh/iochan MIT
github.com/mitchellh/mapstructure MIT
github.com/modern-go/concurrent Apache-2.0
github.com/modern-go/reflect2 Apache-2.0
github.com/mwitkow/go-conntrack Apache-2.0
github.com/oklog/ulid Apache-2.0
github.com/pelletier/go-toml MIT
github.com/pkg/errors BSD-2-Clause
github.com/pmezard/go-difflib BSD-3-Clause
github.com/posener/complete MIT
github.com/prometheus/client_golang Apache-2.0
github.com/prometheus/client_model Apache-2.0
github.com/prometheus/common Apache-2.0
github.com/prometheus/procfs Apache-2.0
github.com/prometheus/tsdb Apache-2.0
github.com/rogpeppe/fastuuid BSD-3-Clause
github.com/rogpeppe/go-internal BSD-3-Clause
github.com/ryanuber/columnize MIT
github.com/sean-/seed MIT
github.com/shurcooL/sanitized_anchor_name MIT
github.com/sirupsen/logrus MIT
github.com/smartystreets/assertions MIT
github.com/smartystreets/goconvey MIT
github.com/soheilhy/cmux Apache-2.0
github.com/spaolacci/murmur3 BSD-3-Clause
github.com/spf13/afero Apache-2.0
github.com/spf13/cast MIT
github.com/spf13/cobra Apache-2.0
github.com/spf13/jwalterweatherman MIT
github.com/spf13/pflag BSD-3-Clause
github.com/spf13/viper MIT
github.com/stretchr/objx MIT
github.com/stretchr/testify MIT
github.com/subosito/gotenv MIT
github.com/tmc/grpc-websocket-proxy MIT
github.com/xiang90/probing MIT
github.com/yuin/goldmark MIT
go.etcd.io/bbolt MIT
go.opencensus.io Apache-2.0
go.uber.org/atomic MIT
go.uber.org/multierr MIT
go.uber.org/zap MIT
golang.org/x/crypto BSD-3-Clause
golang.org/x/exp BSD-3-Clause
golang.org/x/image BSD-3-Clause
golang.org/x/lint BSD-3-Clause
golang.org/x/mobile BSD-3-Clause
golang.org/x/mod BSD-3-Clause
golang.org/x/net BSD-3-Clause
golang.org/x/oauth2 BSD-3-Clause
golang.org/x/sync BSD-3-Clause
golang.org/x/sys BSD-3-Clause
golang.org/x/term BSD-3-Clause
golang.org/x/text BSD-3-Clause
golang.org/x/time BSD-3-Clause
golang.org/x/tools BSD-3-Clause
golang.org/x/xerrors BSD-3-Clause
google.golang.org/api BSD-3-Clause
google.golang.org/appengine Apache-2.0
google.golang.org/genproto Apache-2.0
google.golang.org/grpc Apache-2.0
gopkg.in/alecthomas/kingpin.v2 MIT
gopkg.in/errgo.v2 BSD-3-Clause
gopkg.in/ini.v1 Apache-2.0
gopkg.in/resty.v1 MIT
gopkg.in/yaml.v2 Apache-2.0
gopkg.in/yaml.v3 MIT and Apache
honnef.co/go/tools MIT
rsc.io/binaryregexp BSD-3-Clause
google-protobuf BSD-3-Clause
grpc Apache-2.0
semver ISC
tslib 0BSD
uuid MIT
winston MIT
@types/bytebuffer MIT
lodash.camelcase MIT
lodash.clone MIT
nan MIT
node-pre-gyp BSD-3-Clause
protobufjs Apache-2.0
lru-cache ISC
@dabh/diagnostics MIT
async MIT
is-stream MIT
logform MIT
one-time MIT
winston/node_modules/readable-stream MIT
stack-trace MIT
triple-beam MIT
winston-transport MIT
@types/long MIT
@types/node MIT
detect-libc Apache-2.0
mkdirp MIT
needle MIT
nopt ISC
npm-packlist ISC
npmlog ISC
rc (BSD-2-Clause OR MIT OR Apache-2.0)
rimraf ISC
node-pre-gyp/node_modules/semver ISC
tar ISC
ascli Apache-2.0
bytebuffer Apache-2.0
glob ISC
yargs MIT
lru-cache/node_modules/yallist ISC
colorspace MIT
enabled MIT
kuler MIT
colors MIT
fast-safe-stringify MIT
fecha MIT
ms MIT
fn.name MIT
inherits ISC
string_decoder MIT
util-deprecate MIT
readable-stream MIT
minimist MIT
debug MIT
iconv-lite MIT
sax ISC
abbrev ISC
osenv ISC
ignore-walk ISC
npm-bundled ISC
npm-normalize-package-bin ISC
are-we-there-yet ISC
console-control-strings ISC
gauge ISC
set-blocking ISC
deep-extend MIT
ini ISC
strip-json-comments MIT
chownr ISC
fs-minipass ISC
minipass ISC
minizlib MIT
safe-buffer MIT
yallist ISC
colour MIT
optjs MIT
long Apache-2.0
fs.realpath ISC
inflight ISC
minimatch ISC
once ISC
path-is-absolute MIT
camelcase MIT
cliui ISC
decamelize MIT
os-locale MIT
string-width MIT
window-size MIT
y18n ISC
color MIT
text-hex MIT
core-util-is MIT
isarray MIT
process-nextick-args MIT
safer-buffer MIT
os-homedir MIT
os-tmpdir MIT
delegates MIT
aproba ISC
has-unicode ISC
object-assign MIT
signal-exit ISC
strip-ansi MIT
wide-align ISC
wrappy ISC
brace-expansion MIT
wrap-ansi MIT
lcid MIT
code-point-at MIT
is-fullwidth-code-point MIT
color-convert MIT
color-string MIT
ansi-regex MIT
balanced-match MIT
concat-map MIT
invert-kv MIT
number-is-nan MIT
color-name MIT
simple-swizzle MIT
is-arrayish MIT
github.com/gogo/protobuf Unknown
github.com/kr/logfmt Unknown
github.com/magiconair/properties Unknown
github.com/miekg/dns Unknown
github.com/pascaldekloe/goe Unknown
github.com/russross/blackfriday/v2 Unknown
gopkg.in/check.v1 Unknown
ERROR failed to identify the licenses of following packages (7):
github.com/gogo/protobuf
github.com/kr/logfmt
github.com/magiconair/properties
github.com/miekg/dns
github.com/pascaldekloe/goe
github.com/russross/blackfriday/v2
gopkg.in/check.v1

@zooltd What is this for? It seems unrelated to this PR.

Oh, I was only trying to test the updated Docker image.

@zooltd zooltd deleted the enhance/npm branch September 12, 2021 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants