Skip to content
This repository was archived by the owner on Oct 30, 2019. It is now read-only.
This repository was 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

@jmbelvar81

Description

@jmbelvar81

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions