<p>I'm trying to compile Go for uClibc in Docker, using the base image xdrum/openwrt:15.05. I managed to work around a bunch of errors about obtaining the source (!) to do with HTTPS, SSL, and git support in OpenWrt.</p>
<p>However, the <code>make.bash</code> script presents a strange error that I'm not sure how to resolve.</p>
<p>Dockerfile:</p>
<pre><code>FROM xdrum/openwrt:15.05
RUN opkg update && \
opkg install \
gcc \
git \
wget \
unzip \
ca-certificates && \
wget https://github.com/golang/go/archive/release-branch.go1.4.zip && \
unzip release-branch.go1.4.zip && \
sh -c "cd go-release-branch.go1.4/src && sh make.bash"
</code></pre>
<p>Trace:</p>
<pre><code>$ docker build -t test .
# Building C bootstrap tool.
cmd/dist
go tool dist: mkdtemp(/var/tmp/go-cbuild-SU5ZfI): No such file or directory
</code></pre>
<p>How can we fix the mkdtemp error in Docker?</p>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传