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

[1.X] Do not remove the supervisor container before every start #559

Merged
merged 2 commits into from
Feb 1, 2017

Conversation

pcarranzav
Copy link
Contributor

Instead, we add a start-resin-supervisor script that checks
whether the existing container's image matches the one specified
in supervisor.conf, and just starts that container in that case.
It falls back to the docker run command that creates and starts
the supervisor container.

We also add the container removal in the update-resin-supervisor script,
after stopping the resin-supervisor service.

Connects to #184
Also connects to #280 as it should make the issue appear way less often.

Pablo Carranza Velez added 2 commits February 1, 2017 13:16
…in every start

We add a start-resin-supervisor script that checks
whether the existing container's image matches the one specified
in supervisor.conf, and just starts that container in that case.
It falls back to the docker run command that creates and starts
the supervisor container.

Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
…update script

Also, only write /tmp/supervisor.conf after the image has been successfully pulled and
the old container has been removed.

Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
Copy link
Contributor

@agherzan agherzan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased over current HEAD.

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

Successfully merging this pull request may close these issues.

None yet

2 participants