Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Error building images when in metadata file is used centos as parameter for "from" field #60

Open
jmbelvar81 opened this issue Jan 11, 2018 · 0 comments

Comments

@jmbelvar81
Copy link

Hello,

Creating the metadata file to build images , if you use Centos as distribution, by example:

cmd: "/usr/sbin/apache2,-DFOREGROUND"
expose: 80
image_name: puppetdocker/apachetest
from: centos

The next error is obtained, the URL to obtain the rpm is incorrect. The #{@context[:os_version]} is "null" and because of this the URL is badly generated:

curl: (22) The requested URL returned error: 404 Not Found
error: skipping https://yum.puppetlabs.com/puppet5/puppet5-release-el-.noarch.rpm - transfer failed

If you define the tag for your image, the error is solved. By example, next metadata solve the problem:

cmd: "/usr/sbin/apache2,-DFOREGROUND"
expose: 80
image_name: puppetdocker/apachetest
from: centos:7

My OS is Ubuntu 17.10 artful and I'm using the 0.7.0 for the puppetlabs-image_build

@jmbelvar81 jmbelvar81 changed the title Error building when in metadata centos is used as parameter for "from" Error building images when in metadata file is used centos as parameter for "from" field Jan 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant