DEVX-2039: Microservices Orders demo fails on Ubuntu 18.04 #774
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem 1: elasticsearch container exits with a bootstrap check failure. Easy fix: set discovery.type: "single-node".
Problem 2: getting a permission denied writing to the logs folder in
run-services.sh
. This one comes down to different permissions for bind mounts in Docker on Linux and macOS. More on the way macOS docker works here.On MacOS the
streams
user is the owner:On Linux the host user's id is the owner:
Including a step to change the ownership of the logs folder on the host would fix it i.e.
I've also added a test to the
run-services.sh
to check permissions and send logs to/tmp
if needed. These two commits will get the demo working on Linux. Thechown 999 logs
change to the instructions is up for debate.Was an interesting thing to dig into! This will happen anywhere we have a non-root user container trying to write to a bind mount. We hit the same issue in training with the UBI containers.