2014-11-25 183 views
0

我完全新的泊塢窗...但我想做到以下幾點..建立一個Ubuntu泊塢窗圖像

1) git clone git_repo 
2) sudo apt-get install dependencies 
3) cd to clone repo and do ./compile --flags=true 
    make 
    make install 
4) Then curl filename -o output folder 
5) tar xvf /path/to/curl_folder/filename.tar 

而且完蛋了。我要去的文檔通,但我還是輸了

回答

1

以下是有關如何克隆從碼頭工人容器私人混帳回購協議的一篇文章:http://slash-dev-blog.me/docker-git.html這將與您的步驟1和2,幫助

要完成步驟3-5,可以將以下添加到您的Dockerfile:

WORKDIR /path/to/clone/repo 
RUN ./compile --flags=true 
RUN make 
RUN make install 
RUN curl filename -o output_folder 
RUN tar xvf /path/to/curl_folder/filename.tar 

一旦你有你Dockerfile準備好了,你可以從Dockerfile建立形象。這裏是從Dockerfile創建圖像的教程,http://docs.docker.com/userguide/dockerimages/#creating-our-own-images

希望這會有所幫助。請讓我知道,如果你需要更多的幫助