我最近将此Dockerfile提交到Hub
FROM ubuntu:14.04
MAINTAINER Jeyan Oorjitham <jeyoor@gmx.com>
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
git \
libncurses-dev
RUN git clone https://github.com/devosoft/avida.git
RUN ["/bin/bash", "-c", "cd avida; ./build_avida"]
CMD ["/bin/bash"]
旨在从源代码构建Avida。
构建在本地成功,但我从Docker Hub收到以下错误。
[91mc++: internal compiler error: Killed (program cc1plus)
[0m
[91mPlease submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
...
Linking CXX executable ../../../bin/apto-test
...
Built target apto-test
[91mmake[1]: *** [avida-core/CMakeFiles/avida-core.dir/all] Error 2
[0m
[91mmake: [0m
[91m*** [all] Error 2
在尝试将Apto的测试可执行文件链接在一起时,构建似乎失败了。
一些谷歌搜索引导我this thread,这似乎表明在链接大型二进制文件时缺乏记忆......
记忆可能是问题还是我错过了其他的东西?有没有办法让我增加分配给Docker Hub构建的内存?