Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DanielCalvo opened this issue Jul 4, 2018 · 1 comment
Open

Comments

@DanielCalvo
Copy link

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.

@benbalentine
Copy link

I had the same issue and was able to get past the build step using your suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants