Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Update docker setup #2444

Merged
merged 1 commit into from
Dec 19, 2020
Merged

Update docker setup #2444

merged 1 commit into from
Dec 19, 2020

Conversation

jgrund
Copy link
Member

@jgrund jgrund commented Dec 18, 2020

Update the IML docker setup to not print output while starting.

In addition, use a container that becomes stable earlier to copy
settings to the host.

Signed-off-by: Joe Grund jgrund@whamcloud.io


This change is Reviewable

Update the IML docker setup to not print output while starting.

In addition, use a container that becomes stable earlier to copy
settings to the host.

Signed-off-by: Joe Grund <jgrund@whamcloud.io>
@jgrund jgrund self-assigned this Dec 18, 2020
@jgrund jgrund requested a review from a team December 19, 2020 16:29
until /usr/bin/docker exec $service.1.$trailer /bin/bash -c 'until [ -f /var/lib/chroma/iml-settings.conf ]; do echo "Waiting for settings."; sleep 1; done'; do
echo "Waiting for container"
sleep 1
until /usr/bin/docker exec $service.1.$trailer sh -c 'until [ -f /var/lib/chroma/iml-settings.conf ]; do echo "copy-embedded-settings: Waiting for EMF container settings..."; sleep 1; done' 2>/dev/null; do
Copy link
Contributor

Choose a reason for hiding this comment

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

I think being explicit about what shell to use is a good thing. sh is usually bash, but not always

Copy link
Member Author

Choose a reason for hiding this comment

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

In this case, bash does not exist, only sh exists in this container.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's weird enough that it merits a comment, I think

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, I can add in a follow-on

@jgrund jgrund requested a review from beevans December 19, 2020 16:34
@jgrund jgrund merged commit dcc9067 into master Dec 19, 2020
@jgrund jgrund deleted the update-docker-startup branch December 19, 2020 17:02
utopiabound pushed a commit that referenced this pull request Apr 5, 2021
Update the IML docker setup to not print output while starting.

In addition, use a container that becomes stable earlier to copy
settings to the host.

Signed-off-by: Joe Grund <jgrund@whamcloud.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants