dockerfile에서 프로젝트를 만들고 싶습니다. 첫째, github에서 프레임 워크를 복제하고 설치해야합니다. 내 Dockerfile
I가 다음 instrutions에서 는 :"dockerfile"텍스트 파일 사용 중
RUN git clone https://github.com/simgrid/project.git
WORKDIR "/project"
RUN cmake option1 options2 .
RUN sudo make
RUN sudo make install
내가 가진 이미지 구축 :
docker build -t "myimage" .
을하지만 text file busy
에 대한 오류가 있습니다. 어떻게 그것을 극복 할 수 있습니까?
make[2]: execvp: /simgrid/tools/sg_unit_extractor.pl: Text file busy
make[2]: *** [src/cunit_unit.cpp] Error 127
CMakeFiles/testall.dir/build.make:69: recipe for target 'src/cunit_unit.cpp' failed
CMakeFiles/Makefile2:616: recipe for target 'CMakeFiles/testall.dir/all' failed
make[1]: *** [CMakeFiles/testall.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
The command '/bin/sh -c sudo make' returned a non-zero code: 2
내 Dockerfile 내용은 다음과 같습니다
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y \
sudo \
git \
build-essential \
cmake \
libboost-dev \
libboost-all-dev \
doxygen \
python3
RUN git clone https://github.com/simgrid/simgrid.git
WORKDIR "/simgrid"
RUN cmake -Denable_documentation=OFF -Denable_coverage=OFF -Denable_java=OFF -Denable_model-checking=OFF \
-Denable_lua=OFF -Denable_compile_optimizations=OFF -Denable_smpi=OFF -Denable_smpi_MPICH3_testsuite=OFF -Denable_compile_warnings=OFF .
RUN sudo make
RUN sudo make install
문제를 재현 할 수있을 정도로 자세하게 기재하십시오. 예 : 전체 Dockerfile과 유효한 공개 git repo. – BMitch
@BMitch 여기 내 도커 파일 https://github.com/kenenbek/travisci/blob/master/Dockerfile –
외부 리소스 (귀하의 경우 Dockerfile)에 * 연결하지 * 마십시오 *. 대신 * 완전한 최소 예를 게시하십시오 ([MCVE] 참조). –