kubernetes-up-and-running / kuard

Demo app for Kubernetes Up and Running book
Apache License 2.0
1.61k stars 541 forks source link

Executor fails to run build/build.sh #41

Open nhat416 opened 3 years ago

nhat416 commented 3 years ago

Context:

Got the following error:

❯ docker build -t kuard . [+] Building 34.9s (14/15) => [internal] load build definition from Dockerfile 0.3s => => transferring dockerfile: 37B 0.0s => [internal] load .dockerignore 0.5s => => transferring context: 34B 0.0s => [internal] load metadata for docker.io/library/alpine:latest 1.3s => [internal] load metadata for docker.io/library/golang:1.12-alpine 1.4s => [auth] library/alpine:pull token for registry-1.docker.io 0.0s => [auth] library/golang:pull token for registry-1.docker.io 0.0s => CACHED [stage-1 1/2] FROM docker.io/library/alpine@sha256:234cb88d3020898631af0ccbbcca9a66ae7306ecd30c9720690858c1b007d2a0 0.0s => [build 1/6] FROM docker.io/library/golang:1.12-alpine@sha256:3f8e3ad3e7c128d29ac3004ac8314967c5ddbfa5bfa7caa59b0de493fc01686a 0.0s => [internal] load build context 0.3s => => transferring context: 17.82kB 0.0s => CACHED [build 2/6] RUN apk update && apk upgrade && apk add --no-cache build-base git nodejs bash npm 0.0s => CACHED [build 3/6] RUN go get -u github.com/jteeuwen/go-bindata/... 0.0s => CACHED [build 4/6] WORKDIR /go/src/github.com/kubernetes-up-and-running/kuard 0.0s => [build 5/6] COPY . . 0.6s => ERROR [build 6/6] RUN build/build.sh 31.9s

[build 6/6] RUN build/build.sh:

14 0.882 Verbose: 0

14 8.472

14 8.472 > webpack-cli@3.2.1 postinstall /go/src/github.com/kubernetes-up-and-running/kuard/client/node_modules/webpack-cli

14 8.472 > lightercollective

14 8.472

14 8.503

14 8.504 Thank you for using webpack-cli!

14 8.504

14 8.504 Please consider donating to our open collective

14 8.504 to help us maintain this package.

14 8.504

14 8.504 https://opencollective.com/webpack/donate

14 8.504

14 8.504 ***

14 8.504

14 8.930 added 819 packages from 505 contributors and audited 887 packages in 7.777s

14 9.158 found 864 vulnerabilities (428 low, 12 moderate, 424 high)

14 9.158 run npm audit fix to fix them, or npm audit for details

14 9.383

14 9.383 > client@1.0.0 build /go/src/github.com/kubernetes-up-and-running/kuard/client

14 9.383 > webpack --mode=production

14 9.383

14 10.01 Browserslist: caniuse-lite is outdated. Please run next command npm update caniuse-lite browserslist

14 13.47 Hash: 52ca742bfd1307531486

14 13.47 Version: webpack 4.28.4

14 13.47 Time: 3647ms

14 13.47 Built at: 07/25/2021 2:48:25 PM

14 13.47 Asset Size Chunks Chunk Names

14 13.47 bundle.js 333 KiB 0 [emitted] [big] main

14 13.47 Entrypoint main [big] = bundle.js

14 13.47 [26] (webpack)/buildin/global.js 472 bytes {0} [built]

14 13.47 [228] (webpack)/buildin/module.js 497 bytes {0} [built]

14 13.47 [236] (webpack)/buildin/amd-options.js 80 bytes {0} [built]

14 13.47 [252] ./src/index.jsx + 12 modules 57.6 KiB {0} [built]

14 13.47 | ./src/index.jsx 285 bytes [built]

14 13.47 | ./src/app.jsx 7.79 KiB [built]

14 13.47 | ./src/env.jsx 5.42 KiB [built]

14 13.47 | ./src/mem.jsx 5.81 KiB [built]

14 13.47 | ./src/probe.jsx 7.64 KiB [built]

14 13.47 | ./src/dns.jsx 5.1 KiB [built]

14 13.47 | ./src/keygen.jsx 7.69 KiB [built]

14 13.47 | ./src/request.jsx 3.01 KiB [built]

14 13.47 | ./src/highlightlink.jsx 1.37 KiB [built]

14 13.47 | ./src/disconnected.jsx 3.6 KiB [built]

14 13.47 | ./src/memq.jsx 6.33 KiB [built]

14 13.47 | ./src/fetcherror.js 122 bytes [built]

14 13.47 | ./src/markdown.jsx 3.46 KiB [built]

14 13.47 + 249 hidden modules

14 13.57 go: finding github.com/dustin/go-humanize v1.0.0

14 13.58 go: finding github.com/prometheus/client_golang v0.9.2

14 13.58 go: finding github.com/elazarl/go-bindata-assetfs v1.0.0

14 13.58 go: finding github.com/julienschmidt/httprouter v1.2.0

14 13.58 go: finding github.com/BurntSushi/toml v0.3.1

14 13.58 go: finding github.com/pkg/errors v0.8.1

14 13.58 go: finding github.com/spf13/pflag v1.0.3

14 13.58 go: finding github.com/spf13/viper v1.3.2

14 13.58 go: finding github.com/miekg/dns v1.1.6

14 13.90 go: finding golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a

14 14.35 go: finding github.com/felixge/httpsnoop v1.0.0

14 14.51 go: finding github.com/pelletier/go-toml v1.2.0

14 14.51 go: finding github.com/hashicorp/hcl v1.0.0

14 14.51 go: finding github.com/stretchr/testify v1.2.2

14 14.51 go: finding github.com/spf13/jwalterweatherman v1.0.0

14 14.51 go: finding github.com/coreos/go-etcd v2.0.0+incompatible

14 14.52 go: finding golang.org/x/text v0.3.0

14 14.64 go: finding github.com/prometheus/common v0.0.0-20181126121408-4724e9255275

14 14.86 go: finding github.com/magiconair/properties v1.8.0

14 15.04 go: finding github.com/golang/protobuf v1.2.0

14 15.14 go: finding github.com/spf13/cast v1.3.0

14 15.34 go: finding github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910

14 15.53 go: finding golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a

14 15.53 go: finding github.com/mitchellh/mapstructure v1.1.2

14 15.72 go: finding github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973

14 15.76 go: finding github.com/fsnotify/fsnotify v1.4.7

14 15.80 go: finding github.com/spf13/afero v1.1.2

14 15.84 go: finding github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a

14 16.23 go: finding github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6

14 16.30 go: finding github.com/matttproud/golang_protobuf_extensions v1.0.1

14 16.34 go: finding golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a

14 16.34 go: finding github.com/coreos/etcd v3.3.10+incompatible

14 16.64 go: finding golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9

14 16.74 go: finding github.com/davecgh/go-spew v1.1.1

14 16.95 go: finding golang.org/x/sync v0.0.0-20181108010431-42b317875d0f

14 16.98 go: finding github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8

14 17.06 go: finding github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77

14 17.30 go: finding gopkg.in/yaml.v2 v2.2.2

14 17.61 go: finding golang.org/x/net v0.0.0-20181201002055-351d144fa1fc

14 17.98 go: finding github.com/pmezard/go-difflib v1.0.0

14 18.09 go: finding github.com/coreos/go-semver v0.2.0

14 20.06 go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405

14 23.81 go: downloading github.com/pkg/errors v0.8.1

14 23.81 go: downloading github.com/julienschmidt/httprouter v1.2.0

14 23.82 go: downloading github.com/miekg/dns v1.1.6

14 23.83 go: downloading github.com/dustin/go-humanize v1.0.0

14 23.83 go: downloading github.com/spf13/pflag v1.0.3

14 23.84 go: downloading golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a

14 23.85 go: downloading github.com/elazarl/go-bindata-assetfs v1.0.0

14 23.86 go: downloading github.com/prometheus/client_golang v0.9.2

14 23.87 go: downloading github.com/spf13/viper v1.3.2

14 23.87 go: downloading github.com/felixge/httpsnoop v1.0.0

14 23.97 go: extracting github.com/pkg/errors v0.8.1

14 24.01 go: extracting github.com/dustin/go-humanize v1.0.0

14 24.01 go: extracting github.com/spf13/pflag v1.0.3

14 24.01 go: extracting github.com/felixge/httpsnoop v1.0.0

14 24.01 go: extracting github.com/elazarl/go-bindata-assetfs v1.0.0

14 24.01 go: extracting github.com/julienschmidt/httprouter v1.2.0

14 24.05 go: extracting github.com/prometheus/client_golang v0.9.2

14 24.05 go: extracting github.com/spf13/viper v1.3.2

14 24.05 go: downloading github.com/fsnotify/fsnotify v1.4.7

14 24.05 go: downloading gopkg.in/yaml.v2 v2.2.2

14 24.05 go: downloading github.com/mitchellh/mapstructure v1.1.2

14 24.05 go: downloading github.com/spf13/jwalterweatherman v1.0.0

14 24.05 go: downloading github.com/hashicorp/hcl v1.0.0

14 24.05 go: downloading github.com/magiconair/properties v1.8.0

14 24.06 go: downloading github.com/pelletier/go-toml v1.2.0

14 24.08 go: downloading github.com/golang/protobuf v1.2.0

14 24.22 go: extracting github.com/spf13/jwalterweatherman v1.0.0

14 24.22 go: extracting github.com/magiconair/properties v1.8.0

14 24.23 go: downloading github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910

14 24.23 go: downloading github.com/prometheus/common v0.0.0-20181126121408-4724e9255275

14 24.26 go: extracting github.com/fsnotify/fsnotify v1.4.7

14 24.26 go: extracting github.com/hashicorp/hcl v1.0.0

14 24.26 go: extracting github.com/pelletier/go-toml v1.2.0

14 24.26 go: extracting github.com/mitchellh/mapstructure v1.1.2

14 24.26 go: extracting gopkg.in/yaml.v2 v2.2.2

14 24.27 go: downloading github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a

14 24.27 go: downloading github.com/spf13/cast v1.3.0

14 24.27 go: downloading github.com/spf13/afero v1.1.2

14 24.28 go: downloading golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a

14 24.31 go: extracting golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a

14 24.34 go: downloading github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973

14 24.35 go: extracting github.com/golang/protobuf v1.2.0

14 24.39 go: extracting github.com/prometheus/common v0.0.0-20181126121408-4724e9255275

14 24.39 go: extracting github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910

14 24.40 go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1

14 24.43 go: extracting github.com/spf13/cast v1.3.0

14 24.43 go: extracting github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a

14 24.43 go: extracting github.com/spf13/afero v1.1.2

14 24.43 go: downloading golang.org/x/text v0.3.0

14 24.47 go: extracting github.com/miekg/dns v1.1.6

14 24.48 go: downloading golang.org/x/net v0.0.0-20181201002055-351d144fa1fc

14 24.51 go: extracting github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973

14 24.54 go: extracting github.com/matttproud/golang_protobuf_extensions v1.0.1

14 24.77 go: extracting golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a

14 24.89 go: extracting golang.org/x/net v0.0.0-20181201002055-351d144fa1fc

14 26.17 go: extracting golang.org/x/text v0.3.0

14 26.58 # github.com/kubernetes-up-and-running/kuard/pkg/version

14 26.58 pkg/version/version.go:19:5: VERSION redeclared in this block

14 26.58 previous declaration at pkg/version/version 2.go:19:5

14 27.36 # github.com/kubernetes-up-and-running/kuard/pkg/memq

14 27.36 pkg/memq/types.go:21:6: Stats redeclared in this block

14 27.36 previous declaration at pkg/memq/types 2.go:21:6

14 27.36 pkg/memq/types.go:26:6: Stat redeclared in this block

14 27.36 previous declaration at pkg/memq/types 2.go:26:6

14 27.36 pkg/memq/types.go:34:6: Message redeclared in this block

14 27.36 previous declaration at pkg/memq/types 2.go:34:6

14 30.02 # github.com/kubernetes-up-and-running/kuard/pkg/apiutils

14 30.02 pkg/apiutils/utils.go:25:6: ServeJSON redeclared in this block

14 30.02 previous declaration at pkg/apiutils/utils 2.go:25:41

14 30.02 pkg/apiutils/utils.go:31:5: epoch redeclared in this block

14 30.02 previous declaration at pkg/apiutils/utils 2.go:31:5

14 30.02 pkg/apiutils/utils.go:32:5: noCacheHeaders redeclared in this block

14 30.02 previous declaration at pkg/apiutils/utils 2.go:32:5

14 30.02 pkg/apiutils/utils.go:38:6: NoCache redeclared in this block

14 30.02 previous declaration at pkg/apiutils/utils 2.go:38:16

14 30.18 # github.com/kubernetes-up-and-running/kuard/pkg/sitedata

14 30.18 pkg/sitedata/sitedata.go:31:5: debug redeclared in this block

14 30.18 previous declaration at pkg/sitedata/sitedata 2.go:31:5

14 30.18 pkg/sitedata/sitedata.go:32:5: debugRootDir redeclared in this block

14 30.18 previous declaration at pkg/sitedata/sitedata 2.go:32:5

14 30.18 pkg/sitedata/sitedata.go:34:6: SetConfig redeclared in this block

14 30.18 previous declaration at pkg/sitedata/sitedata 2.go:34:28

14 30.18 pkg/sitedata/sitedata.go:39:6: GetStaticHandler redeclared in this block

14 30.18 previous declaration at pkg/sitedata/sitedata 2.go:39:38

14 30.18 pkg/sitedata/sitedata.go:43:14: GetStaticHandler.func1 redeclared in this block

14 30.18 previous declaration at pkg/sitedata/sitedata 2.go:43:14

14 30.18 pkg/sitedata/sitedata.go:49:9: GetStaticHandler.func2 redeclared in this block

14 30.18 previous declaration at pkg/sitedata/sitedata 2.go:49:9

14 30.18 pkg/sitedata/sitedata.go:60:6: AddRoutes redeclared in this block

14 30.18 previous declaration at pkg/sitedata/sitedata 2.go:60:45

14 30.18 pkg/sitedata/sitedata.go:64:6: LoadFilesInDir redeclared in this block

14 30.18 previous declaration at pkg/sitedata/sitedata 2.go:64:53


executor failed running [/bin/sh -c build/build.sh]: exit code: 2

Any help is appreciated thank you

newtonheath commented 2 years ago

Same issue here - did you find a solution?

libracoder commented 2 years ago

Same issue, did you find a solution?

guidopreuss commented 1 year ago

I had the same issue with Dockerdesctop 4.21.1 with Docker 24.0.2. In the documentation there was a hint to install rosetta (not mandatory since Dockerdesktop 4.3.0). So I tried: softwareupdate --install-rosetta

After starting with an empty folder, cloning the latest version of kuard and change in the Dockerfile amd64 to arm64 docker build and run worked es described in the readme file.

cristisulighetean commented 1 year ago

The issue has been solved in the last post of #30