Skip to content

Widlcard formula install through apt-get breaks image build #2

@DanielCalvo

Description

@DanielCalvo

Running the following:

docker build -t salt-master -f salt-master.Dockerfile --build-arg version=latest .

On step 16, formulas are installed with a wildcard:

Step 16/24 : RUN echo "deb http://ppa.launchpad.net/salt-formulas/ppa/ubuntu xenial main" >/etc/apt/sources.list.d/salt-formulas.list && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 39847281B4B4F5E69A9012612B06BC3AFC7315C0 && apt-get -qq update && apt-get install -y salt-formula-* && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

The apt-get install -y salt-formula-* command is not finishing successfully. There's quite a bit of dpkg output complaining about package names, and in the end dpkg finishes with an error code:

(redacted)
dpkg-maintscript-helper: error: dpkg: warning: version 'salt-formula-nova' has bad syntax: version number does not start with digit
dpkg: error while cleaning up:
 subprocess new post-removal script returned error exit status 1
Errors were encountered while processing:
 /tmp/apt-dpkg-install-wdG5PK/000-salt-formula-aodh_0.2+201807020839.b03d93b~xenial1_all.deb
 /tmp/apt-dpkg-install-wdG5PK/018-salt-formula-designate_2016.12.1+201807031126.3147bda~xenial1_all.deb
 /tmp/apt-dpkg-install-wdG5PK/098-salt-formula-ceilometer_2016.12.1+201802271358.abc1b0e-2xenial1_all.deb
 /tmp/apt-dpkg-install-wdG5PK/100-salt-formula-glance_2016.12.1+201806261246.f54ff2b-2xenial1_all.deb
 /tmp/apt-dpkg-install-wdG5PK/101-salt-formula-heat_2016.12.1+201807041337.a556c90-2xenial1_all.deb
 /tmp/apt-dpkg-install-wdG5PK/105-salt-formula-neutron_2016.12.1+201807041419.c419f90-2xenial1_all.deb
 /tmp/apt-dpkg-install-wdG5PK/106-salt-formula-nova_2016.12.1+201803090924.ad91ddb-2xenial1_all.deb

Simply removing apt-get install -y salt-formula-* fixes issue, but I am unsure if you guys have something else in mind to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions