Closed passionchenjianye closed 7 years ago
镜像需要你自己编译的,我编译的镜像没公开。
我也尝试过自己去编译,但是编译到第六步的时候出现timeout了,会不会是被强了的原因?
$ docker build -t schuckbeta/xunyijia-wiki .
Sending build context to Docker daemon 124.3 MB
Step 1/7 : FROM golang:1.8.1-alpine
---> 32efc118745e
Step 2/7 : RUN apk add --update bash git make gcc
---> Running in 766b5cd5b984
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
(1/23) Installing ncurses-terminfo-base (6.0-r7)
(2/23) Installing ncurses-terminfo (6.0-r7)
(3/23) Installing ncurses-libs (6.0-r7)
(4/23) Installing readline (6.3.008-r4)
(5/23) Installing bash (4.3.46-r5)
Executing bash-4.3.46-r5.post-install
(6/23) Installing binutils-libs (2.27-r1)
(7/23) Installing binutils (2.27-r1)
(8/23) Installing gmp (6.1.1-r0)
(9/23) Installing isl (0.17.1-r0)
(10/23) Installing libgomp (6.2.1-r1)
(11/23) Installing libatomic (6.2.1-r1)
(12/23) Installing pkgconf (1.0.2-r0)
(13/23) Installing libgcc (6.2.1-r1)
(14/23) Installing mpfr3 (3.1.5-r0)
(15/23) Installing mpc1 (1.0.3-r0)
(16/23) Installing libstdc++ (6.2.1-r1)
(17/23) Installing gcc (6.2.1-r1)
(18/23) Installing libssh2 (1.7.0-r2)
(19/23) Installing libcurl (7.52.1-r3)
(20/23) Installing expat (2.2.0-r0)
(21/23) Installing pcre (8.39-r0)
(22/23) Installing git (2.11.2-r0)
(23/23) Installing make (4.2.1-r0)
Executing busybox-1.25.1-r0.trigger
OK: 114 MiB in 35 packages
---> b5f606ea7590
Removing intermediate container 766b5cd5b984
Step 3/7 : ADD . /go/src/github.com/lifei6671/mindoc
---> 40cf1fe3d4a7
Removing intermediate container 932972134fb6
Step 4/7 : WORKDIR /go/src/github.com/lifei6671/mindoc
---> 68d27b25a000
Removing intermediate container b2f401b4d223
Step 5/7 : RUN chmod +x start.sh
---> Running in d03598521380
---> be0278895ae7
Removing intermediate container d03598521380
Step 6/7 : RUN go get -d ./... && go get github.com/mitchellh/gox && gox -os "windows linux darwin" -arch amd64
---> Running in e9353712f264
package golang.org/x/crypto/pbkdf2: unrecognized import path "golang.org/x/crypto/pbkdf2" (https fetch: Get https://golang.org/x/crypto/pbkdf2?go-get=1: dial tcp 61.91.161.217:443: i/o timeout)
麻烦帮忙看下,对go不是太了解,公司让搞个简单的wiki系统存文档,找了很久就觉得你这个比较适合。
是被墙了,你可以直接用daocloud.io提供的平台编译,编译环境选择国外,编译后再拉取。
好的,谢谢啦