-
Notifications
You must be signed in to change notification settings - Fork 53
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
Fix semicolon error masking #3457
Conversation
|
@@ -46,7 +46,8 @@ RUN \ | |||
/bin/bash scripts/install_narrative_docker.sh && \ | |||
cd /tmp && \ | |||
mkdir /tmp/narrative && \ | |||
chown -R nobody:www-data /tmp/narrative /kb/dev_container/narrative ; find / -xdev \( -perm -4000 \) -type f -print -exec rm {} \; | |||
chown -R nobody:www-data /tmp/narrative /kb/dev_container/narrative && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With a semicolon, the find
command would execute regardless of whether any of the previous steps errored out, so it was possible to create a narrative image where none of the JS or Python stuff was installed. 😱
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -46,7 +46,8 @@ RUN \ | |||
/bin/bash scripts/install_narrative_docker.sh && \ | |||
cd /tmp && \ | |||
mkdir /tmp/narrative && \ | |||
chown -R nobody:www-data /tmp/narrative /kb/dev_container/narrative ; find / -xdev \( -perm -4000 \) -type f -print -exec rm {} \; | |||
chown -R nobody:www-data /tmp/narrative /kb/dev_container/narrative && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops.
Description of PR purpose/changes
A misplaced semicolon in some shell script in the Dockerfile was masking errors that might have occurred in commands earlier in the script.
Jira Ticket / Issue
Related Jira ticket: https://kbase-jira.atlassian.net/browse/DATAUP-X
DATAUP-69 Adds a PR template
)Testing Instructions
Dev Checklist:
Updating Version and Release Notes (if applicable)