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

make container DOCKER=1 not working centos 7 #82

Open
skitzo2000 opened this issue Oct 25, 2021 · 2 comments
Open

make container DOCKER=1 not working centos 7 #82

skitzo2000 opened this issue Oct 25, 2021 · 2 comments

Comments

@skitzo2000
Copy link

Describe the bug
Attempting to build the docker image on centos 7 results in an error, see screenshot for build output

To Reproduce
On Centos 7
$ git clone https://github.com/seashell/drago.git drago
$

Expected behavior
Successful build of docker image.

Screenshots
Full attempted build output:

sudo make container DOCKER=1
make[1]: Entering directory `/home/paul/drago'
==> Building Web UI...
docker run --rm -v /home/paul/drago:/home/paul/drago --workdir=/home/paul/drago drago_builder \
/bin/sh -c "go generate"
go: downloading github.com/caarlos0/env v3.5.0+incompatible
go: downloading github.com/dimiro1/banner v1.1.0
go: downloading github.com/hashicorp/hcl/v2 v2.9.1
go: downloading github.com/joho/godotenv v1.3.0
go: downloading github.com/rodaine/table v1.0.1
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/fatih/color v1.10.0
go: downloading github.com/common-nighthawk/go-figure v0.0.0-20200609044655-c4b36f998cf2
go: downloading github.com/mattn/go-isatty v0.0.12
go: downloading github.com/hashicorp/go-cleanhttp v0.5.2
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/mattn/go-colorable v0.1.8
go: downloading golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae
go: downloading github.com/agext/levenshtein v1.2.1
go: downloading github.com/apparentlymart/go-textseg/v13 v13.0.0
go: downloading github.com/apparentlymart/go-textseg v1.0.0
go: downloading github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7
go: downloading github.com/zclconf/go-cty v1.8.0
go: downloading github.com/go-playground/validator/v10 v10.4.1
go: downloading golang.org/x/text v0.3.5
go: downloading github.com/google/go-cmp v0.4.0
go: downloading github.com/vmihailenco/msgpack v4.0.4+incompatible
go: downloading github.com/vishvananda/netlink v1.1.1-0.20200604160102-dc0e1b988c57
go: downloading golang.zx2c4.com/wireguard/wgctrl v0.0.0-20200609130330-bd2cb7843e1b
go: downloading golang.zx2c4.com/wireguard v0.0.20200121
go: downloading go.etcd.io/bbolt v1.3.5
go: downloading go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738
go: downloading github.com/imdario/mergo v0.3.12
go: downloading github.com/go-playground/universal-translator v0.17.0
go: downloading github.com/leodido/go-urn v1.2.0
go: downloading golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
go: downloading github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df
go: downloading github.com/google/uuid v1.0.0
go: downloading go.uber.org/zap v1.16.0
go: downloading google.golang.org/grpc v1.23.1
go: downloading github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf
go: downloading github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
go: downloading github.com/grpc-ecosystem/grpc-gateway v1.9.5
go: downloading github.com/soheilhy/cmux v0.1.4
go: downloading github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8
go: downloading golang.org/x/net v0.0.0-20200301022130-244492dfa37a
go: downloading sigs.k8s.io/yaml v1.1.0
go: downloading github.com/go-playground/locales v0.13.0
go: downloading github.com/mdlayher/genetlink v1.0.0
go: downloading github.com/mdlayher/netlink v1.1.0
go: downloading github.com/gogo/protobuf v1.2.1
go: downloading github.com/golang/protobuf v1.3.4
go: downloading github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7
go: downloading go.uber.org/atomic v1.6.0
go: downloading go.uber.org/multierr v1.5.0
go: downloading google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8
go: downloading github.com/prometheus/client_golang v1.0.0
go: downloading github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c
go: downloading github.com/sirupsen/logrus v1.8.1
go: downloading github.com/coreos/go-semver v0.2.0
go: downloading github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4
go: downloading github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2
go: downloading golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2
go: downloading github.com/jonboulle/clockwork v0.1.0
go: downloading github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4
go: downloading gopkg.in/yaml.v2 v2.3.0
go: downloading github.com/beorn7/perks v1.0.0
go: downloading github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
go: downloading github.com/prometheus/common v0.4.1
go: downloading github.com/prometheus/procfs v0.0.2
go: downloading github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: downloading github.com/google/btree v1.0.0
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/json-iterator/go v1.1.7
go: downloading github.com/modern-go/reflect2 v1.0.1
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
yarn install v1.22.15
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @reach/[email protected]" has incorrect peer dependency "[email protected] || 16.x || 16.4.0-alpha.0911da3".
warning " > @reach/[email protected]" has incorrect peer dependency "[email protected] || 16.x || 16.4.0-alpha.0911da3".
warning "@reach/router > [email protected]" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
warning " > [email protected]" has unmet peer dependency "qs@>=6".
warning " > [email protected]" has incorrect peer dependency "react@^16.8.0".
warning " > [email protected]" has incorrect peer dependency "react@^15.0.0 || ^16.0.0".
warning " > [email protected]" has incorrect peer dependency "react@^17.0.0 | ^16.14.0".
warning " > [email protected]" has incorrect peer dependency "react@^16.4.1".
warning " > [email protected]" has incorrect peer dependency "react@^15.6.0 || ^16.0.0".
warning " > [email protected]" has incorrect peer dependency "react@^0.14 || ^15 || ^16".
warning " > [email protected]" has incorrect peer dependency "react-dom@^0.14 || ^15 || ^16".
warning "react-scripts > @typescript-eslint/eslint-plugin > [email protected]" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning " > [email protected]" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
warning " > [email protected]" has incorrect peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0".
warning " > [email protected]" has incorrect peer dependency "react@^15.0.0 || ^16.0.0".
warning " > [email protected]" has incorrect peer dependency "react-dom@^15.0.0 || ^16.0.0".
warning " > [email protected]" has incorrect peer dependency "react@^16.8.0".
warning " > [email protected]" has incorrect peer dependency "react-dom@^16.8.0".
warning " > [email protected]" has incorrect peer dependency "react@^15.3.0 || ^16.0.0-alpha".
warning " > [email protected]" has incorrect peer dependency "react-dom@^15.3.0 || ^16.0.0-alpha".
warning " > [email protected]" has incorrect peer dependency "react@^15.3.0 || ^16.0.0-alpha".
warning " > [email protected]" has incorrect peer dependency "react-dom@^15.3.0 || ^16.0.0-alpha".
warning " > [email protected]" has incorrect peer dependency "react@^15.0.0 || ^16.0.0".
warning " > [email protected]" has incorrect peer dependency "react-dom@^15.0.0 || ^16.0.0".
warning "recharts > [email protected]" has incorrect peer dependency "react@^0.14.7 || ^15.0.0 || ^16.0.0".
warning "recharts > [email protected]" has incorrect peer dependency "react@^15.0.0 || ^16.0.0".
warning "recharts > [email protected]" has incorrect peer dependency "react-dom@^15.0.0 || ^16.0.0".
warning " > [email protected]" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
warning " > [email protected]" has unmet peer dependency "react-is@>= 16.8.0".
warning " > [email protected]" has incorrect peer dependency "react@^16.9.0".
warning " > [email protected]" has incorrect peer dependency "react-dom@^16.9.0".
warning " > [email protected]" has unmet peer dependency "webpack@>=1.11.0".
warning " > [email protected]" has incorrect peer dependency "[email protected] || 3.x".
warning "react-app-rewire-styled-components > [email protected]" has incorrect peer dependency "react-scripts@^1.0.14".
[4/4] Building fresh packages...
Done in 98.08s.
yarn run v1.22.15
$ react-app-rewired build
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Compiled successfully.

File sizes after gzip:

  254.21 KB  build/static/js/2.63d1b46f.chunk.js
  78.11 KB   build/static/js/main.5d8f5566.chunk.js
  1.94 KB    build/static/css/2.e37103c0.chunk.css
  1.47 KB    build/static/css/main.8c8a6e54.chunk.css
  774 B      build/static/js/runtime-main.96e6ffe6.js

The project was built assuming it is hosted at /ui/.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.

Find out more about deployment here:

  https://cra.link/deployment

Done in 105.87s.
bash: go: command not found
bash: go: command not found
make[2]: *** No rule to make target `_'.  Stop.
make[1]: *** [dev] Error 2
make[1]: Leaving directory `/home/paul/drago'
make: *** [container] Error 2

Server (please complete the following information):

  • OS: Centos 7
  • uname -r
    3.10.0-1160.45.1.el7.centos.plus.x86_64
@LionOfInterest
Copy link

Hello !
I had the same error on Manjaro and Debian, and installing go on my device solved my problem.
I looked it up and I hope this link will help you : https://linuxize.com/post/how-to-install-go-on-centos-7/

@skitzo2000
Copy link
Author

Installing Go doesn't make a difference. This would appear to be an issue with one of the containers thats build in the background.

https://github.com/browserslist/browserslist#browsers-data-updating
Compiled successfully.

File sizes after gzip:

  254.21 KB  build/static/js/2.63d1b46f.chunk.js
  78.11 KB   build/static/js/main.5d8f5566.chunk.js
  1.94 KB    build/static/css/2.e37103c0.chunk.css
  1.47 KB    build/static/css/main.8c8a6e54.chunk.css
  774 B      build/static/js/runtime-main.96e6ffe6.js

The project was built assuming it is hosted at /ui/.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.

Find out more about deployment here:

  https://cra.link/deployment

Done in 46.21s.
bash: go: command not found
bash: go: command not found
make[2]: *** No rule to make target `_'.  Stop.
make[1]: *** [dev] Error 2
make[1]: Leaving directory `/home/paul/drago'
make: *** [container] Error 2
[paul@nortonconsultingenterprises drago]$ go version
go version go1.13 linux/amd64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants