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

fix(docker): Nuke ingestion containers when calling docker/nuke.sh #2459

Merged
merged 5 commits into from
Apr 26, 2021

Conversation

dexter-mh-lee
Copy link
Contributor

Current nuke.sh only destroys the containers created by the main docker-compose.yml files. Because ingestion uses a separate docker-compose.yml, these containers are not destroyed. As a result, when we bring up the containers again after nuking, the ingestion script fails as the container points to an old network instance. This change makes sure the ingestion containers are also nuked so that the above issue does not happen.

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable)

docker/nuke.sh Outdated
@@ -6,3 +6,7 @@ cd $DIR
# Tear down and clean up all DataHub-related containers, volumes, and network
docker-compose -p datahub down -v
docker-compose rm -f -v

# Tear down ingestion container
cd ingestion
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe (cd ingestion && docker-compose -p datahub down -v) ?

That way the script ends in the same directory?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

Copy link
Contributor

@shirshanka shirshanka left a comment

Choose a reason for hiding this comment

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

LGTM!

@shirshanka shirshanka merged commit 6554f15 into datahub-project:master Apr 26, 2021
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.

2 participants