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

Upstart service manager doesn't work #2

Open
noplanman opened this issue Nov 2, 2017 · 4 comments
Open

Upstart service manager doesn't work #2

noplanman opened this issue Nov 2, 2017 · 4 comments

Comments

@noplanman
Copy link

noplanman commented Nov 2, 2017

I'm using your great docker testing setup for some Ansible roles, but am having issues with this Ubuntu 12.04 image.
Upstart doesn't work, because the image has an outdated initctl.

See here for deeper explanation and a possible solution:
https://stackoverflow.com/q/28596795

@bdellegrazie
Copy link

bdellegrazie commented Jun 8, 2018

@geerlingguy any chance of adding:

RUN rm -f /sbin/initctl && dpkg-divert --local --rename --remove /sbin/initctl

as you do in the 14.04 docker image you maintain?
That should solve this problem as well.

@geerlingguy
Copy link
Owner

Sorry, I'm basically in minimal maintenance mode on this image... but if someone can file a PR and get it working better I may be willing to accept it so a new version with the fix is on Docker Hub!

@geerlingguy
Copy link
Owner

Thanks for the PR! I'm looking back at my Ubuntu 14.04 project now (https://github.com/geerlingguy/docker-ubuntu1404-ansible/blob/master/Dockerfile#L24), and forgetting a little about why I needed that 'hack'; it looks fine to me, but is there any chance this could break things for anyone not using Upstart with Ubuntu 12.04?

@bdellegrazie
Copy link

Hi, the only side-effect is an unused upstart process but since this is designed for testing, that should be an acceptable compromise.

I originally did this to make the container work with test-kitchen over ssh (before docker-cli was available) but abandoned that in favour of your simpler (and faster) approach.

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

3 participants