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

Dockerfile Update: Add conditional db seeding to `init.dev.sh` #182

Merged
merged 5 commits into from Oct 9, 2020
Merged

Dockerfile Update: Add conditional db seeding to `init.dev.sh` #182

merged 5 commits into from Oct 9, 2020

Conversation

@neenjaw
Copy link
Collaborator

@neenjaw neenjaw commented Oct 8, 2020

Close #180

@neenjaw neenjaw requested a review from iHiD as a code owner Oct 8, 2020
@iHiD iHiD requested a review from ErikSchierboom Oct 8, 2020
@iHiD
iHiD approved these changes Oct 8, 2020
@iHiD
Copy link
Member

@iHiD iHiD commented Oct 8, 2020

@ErikSchierboom One for you 🙂

docker/dev/init.dev.sh Outdated Show resolved Hide resolved
Co-authored-by: Jeremy Walker <jez.walker@gmail.com>
@neenjaw neenjaw marked this pull request as draft Oct 8, 2020
docker/dev/init.dev.sh Outdated Show resolved Hide resolved
neenjaw added 2 commits Oct 8, 2020
@neenjaw
Copy link
Collaborator Author

@neenjaw neenjaw commented Oct 9, 2020

Ok, this fix is good, but it is written for bash. The docker init.dev.sh script is being run in the sh shell which doesn't support the same syntax.

Script was previously written for bourne again shell (bash)
where the docker image calls `init.dev.sh` using `sh` rather than `bash`
So it was failing at the `if` comparison since `[[ ... ]]` only exists
in `bash`.
@neenjaw
Copy link
Collaborator Author

@neenjaw neenjaw commented Oct 9, 2020

It now seems to work as expected locally for me with this last script change.

@neenjaw neenjaw marked this pull request as ready for review Oct 9, 2020
@neenjaw neenjaw requested a review from iHiD Oct 9, 2020
@iHiD
iHiD approved these changes Oct 9, 2020
@ErikSchierboom ErikSchierboom merged commit 12a3000 into exercism:master Oct 9, 2020
2 checks passed
2 checks passed
rubocop rubocop
Details
test test
Details
@ErikSchierboom
Copy link
Member

@ErikSchierboom ErikSchierboom commented Oct 9, 2020

Thanks @neenjaw!

@neenjaw neenjaw deleted the neenjaw:patch-1 branch Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants