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

Ensure linked services are running before build #138

Open
CQCumbers opened this issue Sep 14, 2019 · 1 comment
Open

Ensure linked services are running before build #138

CQCumbers opened this issue Sep 14, 2019 · 1 comment

Comments

@CQCumbers
Copy link

I was instructed to file an issue here on the dokku slack channel.

If the services linked to a dokku app are not running, building the app will fail with an error of the form Unable to find image 'dokku/myapp:latest' locally. This is because when Docker attempts to run a container, if linked containers are not available, Docker will say that the image is missing, when in fact the linked containers are missing. Manually restarting linked containers will fix the problem, but it could be prevented by a trigger in the datastore plugins that automatically ensures linked services are running before doing a build.

This was referenced Sep 13, 2021
josegonzalez added a commit to dokku/dokku-clickhouse that referenced this issue Sep 13, 2021
This won't _also_ fix issues when an app is deployed as there isn't an exposed hook for it, but it should fix many other issues.

For the app deployment problem, we'll need a new hook upstream.

Refs dokku/dokku-redis#138
josegonzalez added a commit to dokku/dokku-couchdb that referenced this issue Sep 13, 2021
This won't _also_ fix issues when an app is deployed as there isn't an exposed hook for it, but it should fix many other issues.

For the app deployment problem, we'll need a new hook upstream.

Refs dokku/dokku-redis#138
josegonzalez added a commit to dokku/dokku-elasticsearch that referenced this issue Sep 13, 2021
This won't _also_ fix issues when an app is deployed as there isn't an exposed hook for it, but it should fix many other issues.

For the app deployment problem, we'll need a new hook upstream.

Refs dokku/dokku-redis#138
josegonzalez added a commit to dokku/dokku-graphite that referenced this issue Sep 13, 2021
This won't _also_ fix issues when an app is deployed as there isn't an exposed hook for it, but it should fix many other issues.

For the app deployment problem, we'll need a new hook upstream.

Refs dokku/dokku-redis#138
josegonzalez added a commit to dokku/dokku-mariadb that referenced this issue Sep 13, 2021
This won't _also_ fix issues when an app is deployed as there isn't an exposed hook for it, but it should fix many other issues.

For the app deployment problem, we'll need a new hook upstream.

Refs dokku/dokku-redis#138
josegonzalez added a commit to dokku/dokku-memcached that referenced this issue Sep 13, 2021
This won't _also_ fix issues when an app is deployed as there isn't an exposed hook for it, but it should fix many other issues.

For the app deployment problem, we'll need a new hook upstream.

Refs dokku/dokku-redis#138
josegonzalez added a commit to dokku/dokku-mongo that referenced this issue Sep 13, 2021
This won't _also_ fix issues when an app is deployed as there isn't an exposed hook for it, but it should fix many other issues.

For the app deployment problem, we'll need a new hook upstream.

Refs dokku/dokku-redis#138
josegonzalez added a commit to dokku/dokku-mysql that referenced this issue Sep 13, 2021
This won't _also_ fix issues when an app is deployed as there isn't an exposed hook for it, but it should fix many other issues.

For the app deployment problem, we'll need a new hook upstream.

Refs dokku/dokku-redis#138
josegonzalez added a commit to dokku/dokku-nats that referenced this issue Sep 13, 2021
This won't _also_ fix issues when an app is deployed as there isn't an exposed hook for it, but it should fix many other issues.

For the app deployment problem, we'll need a new hook upstream.

Refs dokku/dokku-redis#138
josegonzalez added a commit to dokku/dokku-omnisci that referenced this issue Sep 13, 2021
This won't _also_ fix issues when an app is deployed as there isn't an exposed hook for it, but it should fix many other issues.

For the app deployment problem, we'll need a new hook upstream.

Refs dokku/dokku-redis#138
josegonzalez added a commit to dokku/dokku-postgres that referenced this issue Sep 13, 2021
This won't _also_ fix issues when an app is deployed as there isn't an exposed hook for it, but it should fix many other issues.

For the app deployment problem, we'll need a new hook upstream.

Refs dokku/dokku-redis#138
josegonzalez added a commit to dokku/dokku-pushpin that referenced this issue Sep 13, 2021
This won't _also_ fix issues when an app is deployed as there isn't an exposed hook for it, but it should fix many other issues.

For the app deployment problem, we'll need a new hook upstream.

Refs dokku/dokku-redis#138
josegonzalez added a commit to dokku/dokku-rabbitmq that referenced this issue Sep 13, 2021
This won't _also_ fix issues when an app is deployed as there isn't an exposed hook for it, but it should fix many other issues.

For the app deployment problem, we'll need a new hook upstream.

Refs dokku/dokku-redis#138
josegonzalez added a commit that referenced this issue Sep 13, 2021
This won't _also_ fix issues when an app is deployed as there isn't an exposed hook for it, but it should fix many other issues.

For the app deployment problem, we'll need a new hook upstream.

Refs #138
josegonzalez added a commit to dokku/dokku-rethinkdb that referenced this issue Sep 13, 2021
This won't _also_ fix issues when an app is deployed as there isn't an exposed hook for it, but it should fix many other issues.

For the app deployment problem, we'll need a new hook upstream.

Refs dokku/dokku-redis#138
josegonzalez added a commit to dokku/dokku-solr that referenced this issue Sep 13, 2021
This won't _also_ fix issues when an app is deployed as there isn't an exposed hook for it, but it should fix many other issues.

For the app deployment problem, we'll need a new hook upstream.

Refs dokku/dokku-redis#138
@josegonzalez
Copy link
Member

We'll need a new hook - maybe builder-build-pre $BUILDER_TYPE $APP ? - that we can use to start linked services prior to deploy. There isn't a global one, so if we did this hook by hook (pre-build-dockerfile, pre-build-herokuish, pre-build-pack) then we wouldn't support newer build methods as time goes on. Additionally, adding a new hook each time would be annoying.

That said, this should help with many cases, except for if a datastore crashes and a user deploys afterwards.

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

No branches or pull requests

2 participants