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

Add checker for docker-compose up #256

Merged
merged 3 commits into from
Aug 29, 2020
Merged

Conversation

rangerz
Copy link
Contributor

@rangerz rangerz commented Apr 24, 2020

  1. Increase the seconds to ensure containers are started
  2. Add volume files validator for bin/start. Avoiding to generate useless empty folder when there is a lack of volume files. ex: ./src/composer.json, ./src/composer.lock, and ./src/nginx.conf.sample

Copy link
Owner

@markshust markshust left a comment

Choose a reason for hiding this comment

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

@rangerz couple minor comments. Love this update. Let me know what you think.

compose/bin/setup Show resolved Hide resolved
compose/bin/start Outdated Show resolved Hide resolved
@rangerz
Copy link
Contributor Author

rangerz commented May 1, 2020

It rebased to master and merged to one commit

@markshust
Copy link
Owner

@rangerz I apologize for not testing and merging this in already, it must have fell by the wayside. I'll test this and try to get it in very soon.

IS_VALID=false
fi
done
[ $IS_VALID = false ] && echo "Failed to start docker for missing volume files" && exit
Copy link
Owner

Choose a reason for hiding this comment

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

instead of using the IS_VALID variable, I think we can just move this echo/exit line up to line 36 and remove any references to IS_VALID?

Copy link
Owner

Choose a reason for hiding this comment

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

Never mind, just noticed that every file is output to the user first, and then the script should exit. This is wonderful and works great!!

@markshust
Copy link
Owner

@rangerz thank you so much for this, this solves a lot of problems we've been having with those new to this project not properly having files in place for docker to start, causing the empty folder issue. Added a couple comments on the script. Merging it in! THANKS AGAIN!!

@markshust markshust merged commit 843de6c into markshust:master Aug 29, 2020
@rangerz rangerz deleted the start branch December 10, 2022 09:44
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