-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix docker-sonic-mgmt reproducible related issue. #9647
Conversation
/azp run |
You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list. |
/azp run Azure.docker-sonic-mgmt |
Azure Pipelines could not run because the pipeline triggers exclude this branch/path. |
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -72,7 +72,7 @@ set_reproducible_mirrors() | |||
|
|||
local mirrors="/etc/apt/sources.list $(find /etc/apt/sources.list.d/ -type f)" | |||
for mirror in $mirrors; do | |||
sed -i "$expression" "$mirror" | |||
sed -i "$expression" "$mirror" || sudo sed -i "$expression" "$mirror" |
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.
Can we change to run the command as root in docker-sonic-mgmt?
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.
how about now?
ae025ef
to
210a23c
Compare
210a23c
to
a5f665d
Compare
SUDO=sudo | ||
else | ||
SUDO='' | ||
fi |
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.
Can be simplified to
[
@liushilongbuaa , we should not need to merge to release branches, right? |
Reproducible build script breaks docker-sonic-mgmt build.
Reproducible build script breaks docker-sonic-mgmt build.
Reproducible build script breaks docker-sonic-mgmt build.
Reproducible build script breaks docker-sonic-mgmt build.
Reproducible build script breaks docker-sonic-mgmt build.
Why I did it
when using 'sed -i' the directory must also be writable as sed will create a temporary file in that directory first.
This issue breaks building sonic-mgmt docker image.
we should use sudo to resolve this issue, but sonic-base image haven't installed sudo tool.
So we should use both 'sed -i' and 'sudo sed -i'
How I did it
add retry with sudo.
How to verify it
Which release branch to backport (provide reason below if selected)
Description for the changelog
A picture of a cute animal (not mandatory but encouraged)