I recently submitted this Dockerfile to the Hub
FROM ubuntu:14.04 MAINTAINER Jeyan Oorjitham <email@example.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"]
It is intended to build Avida from source.
The build succeeds locally, but I receive the following error from the Docker Hub.
e[91mc++: internal compiler error: Killed (program cc1plus) e[0m e[91mPlease submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions. make: *** [avida-core/CMakeFiles/avida-core.dir/source/analyze/cAnalyze.cc.o] Error 4 make: *** Waiting for unfinished jobs.... e[0m e[91mmake: e[0m e[91m*** [avida-core/CMakeFiles/avida-core.dir/all] Error 2e[0m e[91m e[0m e[91mmake: e[0m e[91m*** [all] Error 2 e[0m
The build seems to be failing around the time it tries to link together the test executable for Apto (a dependency project).
Some Googling led me to this thread which seems to point to a lack of memory when linking large binaries…
Could memory be the problem or am I missing something else? Is there any way for me to increase the memory allocated to the Docker Hub build?