2016-03-18 31 views
0

我將在我的Travis-CI版本中切換到基於容器的基礎架構。所以 我在Dockerfile寫下下面的命令,圖像被成功構建:我的文件存在於Docker鏡像中的位置?

RUN apt-get install software-properties-common -y 
RUN add-apt-repository ppa:ubuntu-toolchain-r/test -y 
RUN apt-get update 
RUN apt-get install gcc-4.9 -y 
RUN apt-get install build-essential perl python git -y 
RUN apt-get install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev -y 
RUN apt-get install libedit-dev -y 
RUN apt-get install flex bison gperf libicu-dev libxslt-dev -y 

RUN git clone git://code.qt.io/qt/qt5.git qt5 
RUN cd qt5 && perl init-repository 

RUN unset QTDIR 
RUN export PATH="$PWD/qtbase/bin:$PWD/qtrepotools/bin:$PATH" 
RUN cd qt5 && ./configure -developer-build -opensource -confirm-license -nomake examples -nomake tests 
RUN cd qt5 && make 
RUN cd qt5 && make install 

RUN git clone git://code.qt.io/qt-creator/qt-creator.git qt-creator 
RUN mkdir qt-creator-build 
RUN cd qt-creator-build 
RUN ../qt5/qtbase/bin/qmake -r ../qt-creator/qtcreator.pro 
RUN make -j5 

之前,我把它推到碼頭工人集線器我需要知道哪裏是我的東西被形象造的。我需要像我的文件的地圖從Travis-CI獲取訪問權限。請幫我理解。謝謝

UPD:實際上,我只需要一個絕對路徑qt-creator-build文件夾。

回答

1

根據您的指令,到qt-creator-build文件夾的絕對路徑應該是/qt-creator-build,作爲根目錄/是默認爲泊塢窗命令工作目錄。

這就是說,命令RUN make -j5大概應該是RUN cd qt-creator-build && make -j5,但只有,如果你真的想運行make -j5qt-creator-build,這就是我從你的代碼的理解。

從碼頭工人的docs,你可以使用WORKDIR命令更改德的工作目錄,如:

WORKDIR qt-creator-build 
相關問題