我想在我的Jenkins圖像中安裝Ansible(this way)。這是我的Dockerfile:嘗試在Jenkins圖像中安裝Ansible時出錯
FROM jenkins
USER root
RUN apt-get install -y software-properties-common
RUN apt-add-repository ppa:ansible/ansible
RUN apt-get update
RUN apt-get install -y ansible
USER jenkins
但是當我建立的形象,我得到這個錯誤:
W: Failed to fetch http://ppa.launchpad.net/ansible/ansible/ubuntu/dists/jessie/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. Thet have been ignored, or old ones used instead.
我已經意識到, http://ppa.launchpad.net/ansible/ansible/ubuntu/dists/jessie
不存在。
感謝
該指南使用Ubuntu作爲操作系統的基礎上,嘗試使用的操作系統是Ubuntu的,所以編輯泊塢窗:從Ubuntu的:14.04 –
做'apt-get的update'第一 – user2915097
@ThanhNguyenVan然後我失去詹金斯(我必須手動安裝它) –