-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
chore: Fix condition syntax in Dockerfile #37270
Conversation
WalkthroughThe Dockerfile has been modified to enhance conditional checks for file existence and manage executable permissions for shell scripts. The logical AND operator has been changed from Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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.
Actionable comments posted: 1
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
Dockerfile
(2 hunks)
🔇 Additional comments (1)
Dockerfile (1)
20-23
: LGTM! Correct usage of test operator.
The change from &&
to -a
is appropriate here as it uses the proper POSIX test operator within the [
command.
Description
The
&&
syntax forand
-ing conditions doesn't work with[
command, it only works with[[
expressions. But we can't use[[
expressions, since this isn't bash, it's/bin/sh
. We can't use bash, since doing so is throwing up a whole lot of other errors that I've parked for another day, several months ago.Instead of
&&
, we have to use-a
when using the[
command.Currently, when building the Docker image, we see the following error:
It doesn't seem to have an impact, but it is an error nonetheless.
We're also refactoring to not add the executable permission twice, which is redundant. We're only doing it once now.
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/11718707642
Commit: 6c73943
Cypress dashboard.
Tags:
@tag.Sanity
Spec:
Thu, 07 Nov 2024 09:18:50 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
/test sanity
Summary by CodeRabbit
Summary by CodeRabbit
./editor
and./rts
.