mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

The fix is needed to mitigate consequences of https://github.com/golang/go/issues/29458 "golang breaking change" that causes following test failures on etcd end: --- FAIL: TestCtlV2Set (0.00s) ctl_v2_test.go:552: could not start etcd process cluster (fork/exec ../../bin/etcd: Setctty set but Ctty not valid in child) --- FAIL: TestCtlV2SetQuorum (0.00s) ctl_v2_test.go:552: could not start etcd process cluster (fork/exec ../../bin/etcd: Setctty set but Ctty not valid in child) --- FAIL: TestCtlV2SetClientTLS (0.00s) ctl_v2_test.go:552: could not start etcd process cluster (fork/exec ../../bin/etcd: Setctty set but Ctty not valid in child)
15 lines
490 B
Docker
15 lines
490 B
Docker
FROM golang:1.13
|
|
|
|
# Clone and complie a riscv compatible version of the go compiler.
|
|
RUN git clone https://review.gerrithub.io/riscv/riscv-go /riscv-go
|
|
# riscvdev branch HEAD as of 2019-06-29.
|
|
RUN cd /riscv-go && git checkout 04885fddd096d09d4450726064d06dd107e374bf
|
|
ENV PATH=/riscv-go/misc/riscv:/riscv-go/bin:$PATH
|
|
RUN cd /riscv-go/src && GOROOT_BOOTSTRAP=$(go env GOROOT) ./make.bash
|
|
ENV GOROOT=/riscv-go
|
|
|
|
# Make sure we compile.
|
|
WORKDIR pty
|
|
ADD . .
|
|
RUN GOOS=linux GOARCH=riscv go build
|