docker-ansible icon indicating copy to clipboard operation
docker-ansible copied to clipboard

Galaxy from git fails with debian9-onbuild

Open VeselaHouba opened this issue 6 years ago • 0 comments

Using pre-built package williamyeh/ansible:debian9-onbuild

Following line will fail, as the apt cache was removed during docker build.

https://github.com/William-Yeh/docker-ansible/blob/e1cb5d4aec1da7286717bdbe08ce891f53154a47/debian9-onbuild/ansible-playbook-wrapper#L26

export REQUIREMENTS=requirements.yml
/usr/local/bin/ansible-playbook-wrapper
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git

->

apt update
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://deb.debian.org/debian stretch Release [118 kB]
Get:5 http://deb.debian.org/debian stretch Release.gpg [2434 B]
Get:6 http://deb.debian.org/debian stretch-updates/main amd64 Packages [27.4 kB]
Get:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [502 kB]
Get:8 http://deb.debian.org/debian stretch/main amd64 Packages [7082 kB]
Fetched 7918 kB in 2s (3799 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
24 packages can be upgraded. Run 'apt list --upgradable' to see them.

/usr/local/bin/ansible-playbook-wrapper
Reading state information... Done
The following additional packages will be installed:
  git-man less libbsd0 libcurl3-gnutls libedit2 liberror-perl libgdbm3 libgpm2 libncurses5 libperl5.24 libpopt0 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6
  libxmuu1 netbase openssh-client patch perl perl-base perl-modules-5.24 rename rsync xauth 
.........

VeselaHouba avatar Aug 29 '19 13:08 VeselaHouba