Docker image not building
ignaciovazquez opened this issue · 0 comments
ignaciovazquez commented
Hi there!
It looks like the Docker build is not working
I tried adding gcc, musl-dev and linux-headers to make the compilation work without luck.
Sending build context to Docker daemon 2.048kB
Step 1/6 : FROM golang:alpine
---> 3289bf11c284
Step 2/6 : RUN apk update && apk add git gcc musl-dev linux-headers
---> Running in 33a80f6ba5fe
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
v3.12.0-138-g44b5946805 [http://dl-cdn.alpinelinux.org/alpine/v3.12/main]
v3.12.0-139-gd0df61068e [http://dl-cdn.alpinelinux.org/alpine/v3.12/community]
OK: 12748 distinct packages available
(1/19) Upgrading musl (1.1.24-r8 -> 1.1.24-r9)
(2/19) Installing libgcc (9.3.0-r2)
(3/19) Installing libstdc++ (9.3.0-r2)
(4/19) Installing binutils (2.34-r1)
(5/19) Installing gmp (6.2.0-r0)
(6/19) Installing isl (0.18-r0)
(7/19) Installing libgomp (9.3.0-r2)
(8/19) Installing libatomic (9.3.0-r2)
(9/19) Installing libgphobos (9.3.0-r2)
(10/19) Installing mpfr4 (4.0.2-r4)
(11/19) Installing mpc1 (1.1.0-r1)
(12/19) Installing gcc (9.3.0-r2)
(13/19) Installing nghttp2-libs (1.41.0-r0)
(14/19) Installing libcurl (7.69.1-r0)
(15/19) Installing expat (2.2.9-r1)
(16/19) Installing pcre2 (10.35-r0)
(17/19) Installing git (2.26.2-r0)
(18/19) Installing linux-headers (5.4.5-r1)
(19/19) Installing musl-dev (1.1.24-r9)
Executing busybox-1.31.1-r16.trigger
OK: 163 MiB in 33 packages
Removing intermediate container 33a80f6ba5fe
---> 6f76eb594f3d
Step 3/6 : RUN go get github.com/alash3al/redix
---> Running in 7d87ffcfc82f
# github.com/alash3al/redix/kvstore/badgerdb
src/github.com/alash3al/redix/kvstore/badgerdb/badgerdb.go:29:6: opts.Dir undefined (type func(string) badger.Options has no field or method Dir)
src/github.com/alash3al/redix/kvstore/badgerdb/badgerdb.go:30:6: opts.ValueDir undefined (type func(string) badger.Options has no field or method ValueDir)
src/github.com/alash3al/redix/kvstore/badgerdb/badgerdb.go:31:6: opts.Truncate undefined (type func(string) badger.Options has no field or method Truncate)
src/github.com/alash3al/redix/kvstore/badgerdb/badgerdb.go:32:6: opts.SyncWrites undefined (type func(string) badger.Options has no field or method SyncWrites)
src/github.com/alash3al/redix/kvstore/badgerdb/badgerdb.go:33:6: opts.TableLoadingMode undefined (type func(string) badger.Options has no field or method TableLoadingMode)
src/github.com/alash3al/redix/kvstore/badgerdb/badgerdb.go:34:6: opts.ValueLogLoadingMode undefined (type func(string) badger.Options has no field or method ValueLogLoadingMode)
src/github.com/alash3al/redix/kvstore/badgerdb/badgerdb.go:35:6: opts.NumMemtables undefined (type func(string) badger.Options has no field or method NumMemtables)
src/github.com/alash3al/redix/kvstore/badgerdb/badgerdb.go:36:6: opts.MaxTableSize undefined (type func(string) badger.Options has no field or method MaxTableSize)
src/github.com/alash3al/redix/kvstore/badgerdb/badgerdb.go:37:6: opts.NumLevelZeroTables undefined (type func(string) badger.Options has no field or method NumLevelZeroTables)
src/github.com/alash3al/redix/kvstore/badgerdb/badgerdb.go:38:6: opts.ValueThreshold undefined (type func(string) badger.Options has no field or method ValueThreshold)
src/github.com/alash3al/redix/kvstore/badgerdb/badgerdb.go:38:6: too many errors