-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix security issue: "Arguments in long RUN instructions should be sor… #4402
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 security issue: "Arguments in long RUN instructions should be sor… #4402
Conversation
|
|
||
| RUN apt-get update && apt-get install -y librados2 curl fuse procps iputils-ping strace iproute2 net-tools tcpdump lsof librados-dev libcephfs-dev librbd-dev && \ | ||
| RUN apt-get update && \ | ||
| apt-get install -y curl fuse iproute2 iputils-ping librados2 librados-dev librbd-dev libcephfs-dev lsof net-tools procps strace tcpdump && \ |
Check notice
Code scanning / SonarCloud
Arguments in long RUN instructions should be sorted
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.
libcephfs-dev librados-dev librados2 librbd-dev
| RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories | ||
| RUN apk --update add fuse alpine-sdk automake autoconf libxml2-dev fuse-dev curl-dev pkgconf | ||
| RUN apk update && \ | ||
| apk add alpine-sdk automake autoconf curl-dev fuse fuse-dev libxml2-dev pkgconf |
Check notice
Code scanning / SonarCloud
Arguments in long RUN instructions should be sorted
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.
The correct order should be autoconf automake.
| RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories | ||
| RUN apk --update add fuse curl libxml2 openssl libstdc++ libgcc python3 inotify-tools bash coreutils tini && rm -rf /var/cache/apk/* | ||
| RUN apk update && \ | ||
| apk add bash curl coreutils fuse inotify-tools libgcc libstdc++ libxml2 openssl python3 tini && \ |
Check notice
Code scanning / SonarCloud
Arguments in long RUN instructions should be sorted
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.
should be coreutils curl
…ted" Signed-off-by: jiuyu <guotongyu.gty@alibaba-inc.com>
87368d9 to
0cb472e
Compare
|
cheyang
left a comment
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.
/lgtm
/approve
cheyang
left a comment
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.
/lgtm
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheyang The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |



fix
Arguments in long RUN instructions should be sorted