我想在我的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然后我失去詹金斯(我必须手动安装它) –