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

#67 Detect if containers exist during ws enable #517

Merged
merged 2 commits into from
Jan 22, 2021

Conversation

kierenevans
Copy link
Contributor

If no containers are available for the project but .my127ws/.flag-built still exists, count it as needing to build the project as containers would be brought up without any database volumes.

Fixes #67

@kierenevans kierenevans added enhancement New feature or request harness-php PHP harness harness-akeneo Akeneo harness labels Jan 6, 2021
@kierenevans kierenevans added this to the 0.13.0 milestone Jan 6, 2021
@kierenevans kierenevans self-assigned this Jan 6, 2021
if [ "$IS_BUILT" = "no" ]; then
if [ "$HAS_FLAG" = "no" ]; then
passthru docker-compose down
fi
Copy link

Choose a reason for hiding this comment

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

So if the setup process is halted by something, it would retry the setup from where it stopped instead of removing everything and starting from scratch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the setup process stops, the flag is never created, so would still bring containers down to try again.

Copy link

Choose a reason for hiding this comment

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

ah right, I was thinking about an existing env, where I retry the setup and it stops, but then the retry step would/should have removed the flag, all good 👍

hgajjar
hgajjar previously approved these changes Jan 7, 2021
@kierenevans kierenevans modified the milestones: 0.13.0, 0.12.0 Jan 8, 2021
@kierenevans kierenevans changed the base branch from 0.12.x to 1.0.x January 12, 2021 13:14
@kierenevans kierenevans dismissed hgajjar’s stale review January 12, 2021 13:14

The base branch was changed.

@kierenevans kierenevans modified the milestones: 0.12.0, 1.0 Jan 12, 2021
@kierenevans kierenevans merged commit 9b8cb1e into 1.0.x Jan 22, 2021
@kierenevans kierenevans deleted the feature/67-detect-if-containers-exist branch January 22, 2021 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request harness-akeneo Akeneo harness harness-php PHP harness
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detect if containers have been deleted without deleting .flag-built
2 participants