You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RangeError: Index out of range
at Object.slice (buffer.js:585:37)
at Buffer.toString (buffer.js:782:14)
at Object.readFileSync (fs.js:386:41)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:990:22)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)
at internal/main/run_main_module.js:17:11 {
code: 'ERR_OUT_OF_RANGE'
}
The command '/bin/sh -c build/build.sh' returned a non-zero code: 1
The text was updated successfully, but these errors were encountered:
spideyz0r
changed the title
buffer.js:606 slice: (buf, start, end) => buf.utf8Slice(start, end) RangeError: Index out of range
Error building docker image buffer.js:606 slice: (buf, start, end) => buf.utf8Slice(start, end) RangeError: Index out of range
Oct 12, 2020
spideyz0r
changed the title
Error building docker image buffer.js:606 slice: (buf, start, end) => buf.utf8Slice(start, end) RangeError: Index out of range
Error building Dockerfile buffer.js:606 slice: (buf, start, end) => buf.utf8Slice(start, end) RangeError: Index out of range
Oct 12, 2020
Hi,
I am trying to build this image on docker running on a Centos 8, but it is failing.
Env
CentOS Linux release 8.2.2004 (Core)
Docker version 19.03.13, build 4484c46d9d
1 git clone http://github.com/kubernetes-up-and-running/kuard
2 cd kuard
3 docker build -t kuard .
The output:
Sending build context to Docker daemon 3.39MB
Step 1/14 : FROM golang:1.12-alpine AS build
1.12-alpine: Pulling from library/golang
c9b1b535fdd9: Pull complete
cbb0d8da1b30: Pull complete
d909eff28200: Pull complete
665fbbf998e4: Pull complete
4985b1919860: Pull complete
Digest: sha256:3f8e3ad3e7c128d29ac3004ac8314967c5ddbfa5bfa7caa59b0de493fc01686a
Status: Downloaded newer image for golang:1.12-alpine
---> 76bddfb5e55e
Step 2/14 : RUN apk update && apk upgrade && apk add --no-cache git nodejs bash npm
---> Running in fa07a631bfe0
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
v3.11.6-152-g533c9acbc3 [http://dl-cdn.alpinelinux.org/alpine/v3.11/main]
v3.11.6-153-g97339edd5c [http://dl-cdn.alpinelinux.org/alpine/v3.11/community]
OK: 11276 distinct packages available
Upgrading critical system libraries and apk-tools:
(1/1) Upgrading apk-tools (2.10.4-r3 -> 2.10.5-r0)
Executing busybox-1.31.1-r9.trigger
Continuing the upgrade transaction with new apk-tools:
(1/6) Upgrading musl (1.1.24-r0 -> 1.1.24-r2)
(2/6) Upgrading libcrypto1.1 (1.1.1d-r3 -> 1.1.1g-r0)
(3/6) Upgrading libssl1.1 (1.1.1d-r3 -> 1.1.1g-r0)
(4/6) Upgrading ca-certificates-cacert (20191127-r0 -> 20191127-r2)
(5/6) Upgrading ca-certificates (20191127-r0 -> 20191127-r2)
(6/6) Upgrading musl-utils (1.1.24-r0 -> 1.1.24-r2)
Executing busybox-1.31.1-r9.trigger
Executing ca-certificates-20191127-r2.trigger
OK: 6 MiB in 15 packages
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
(1/15) Installing ncurses-terminfo-base (6.1_p20200118-r4)
(2/15) Installing ncurses-libs (6.1_p20200118-r4)
(3/15) Installing readline (8.0.1-r0)
(4/15) Installing bash (5.0.11-r1)
Executing bash-5.0.11-r1.post-install
(5/15) Installing nghttp2-libs (1.40.0-r1)
(6/15) Installing libcurl (7.67.0-r1)
(7/15) Installing expat (2.2.9-r1)
(8/15) Installing pcre2 (10.34-r1)
(9/15) Installing git (2.24.3-r0)
(10/15) Installing c-ares (1.15.0-r0)
(11/15) Installing libgcc (9.3.0-r0)
(12/15) Installing libstdc++ (9.3.0-r0)
(13/15) Installing libuv (1.34.0-r0)
(14/15) Installing nodejs (12.15.0-r1)
(15/15) Installing npm (12.15.0-r1)
Executing busybox-1.31.1-r9.trigger
OK: 81 MiB in 30 packages
Removing intermediate container fa07a631bfe0
---> a742bf474e1a
Step 3/14 : RUN go get -u github.com/jteeuwen/go-bindata/...
---> Running in 188b7ce143b4
Removing intermediate container 188b7ce143b4
---> 1b29233a664c
Step 4/14 : WORKDIR /go/src/github.com/kubernetes-up-and-running/kuard
---> Running in 2ad45a100f35
Removing intermediate container 2ad45a100f35
---> 6d5ee90210db
Step 5/14 : COPY . .
---> b9fc1ee3a5ba
Step 6/14 : ENV VERBOSE=0
---> Running in f91068a0dfee
Removing intermediate container f91068a0dfee
---> 98e3462203d0
Step 7/14 : ENV PKG=github.com/kubernetes-up-and-running/kuard
---> Running in 7debf3657452
Removing intermediate container 7debf3657452
---> 59ef569e8643
Step 8/14 : ENV ARCH=amd64
---> Running in be7ee25cf910
Removing intermediate container be7ee25cf910
---> 7d21b0894113
Step 9/14 : ENV VERSION=test
---> Running in 32dcbb044af5
Removing intermediate container 32dcbb044af5
---> 3fd749607c94
Step 10/14 : RUN build/build.sh
---> Running in fcc07d1aaf1e
Verbose: 0
buffer.js:585
slice: (buf, start, end) => buf.utf8Slice(start, end),
^
RangeError: Index out of range
at Object.slice (buffer.js:585:37)
at Buffer.toString (buffer.js:782:14)
at Object.readFileSync (fs.js:386:41)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:990:22)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)
at internal/main/run_main_module.js:17:11 {
code: 'ERR_OUT_OF_RANGE'
}
The command '/bin/sh -c build/build.sh' returned a non-zero code: 1
The text was updated successfully, but these errors were encountered: