-
Notifications
You must be signed in to change notification settings - Fork 263
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 Node.js deprecated install script #4407
Conversation
5324cf7
to
2d7cde4
Compare
Please rebase to |
apt-get install --no-install-recommends -y git mime-support libxml2 libmariadb3 openssl nodejs && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean all && \ |
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.
Is this line not required?
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.
Same question for the rest of the cleanup lines removed below
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.
We need the rm -rf /tmp/tmp*
. It tries to clean up that directory as the nautobot user later in the python-dependencies
stage and fails
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.
Is this line not required?
It's not necessary, as apt temporary folders are mounted as cache, lines 58, 59
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.
Same question for the rest of the cleanup lines removed below
The same, solved by mounting apt temporary folders to Docker cache.
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.
We need the
rm -rf /tmp/tmp*
. It tries to clean up that directory as the nautobot user later in thepython-dependencies
stage and fails
/mnt
is mounted as a Docker cache at line 77, so the line 78: RUN pip install ...
instruction do not leave any files in /tmp on the image.
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.
This build was failing for me when trying to delete a /tmp/tmp<random string>
file yesterday but seems to be working now. Maybe I had a bad cache.
Merged with the latest develop to include venv removal. |
Closes: NaN
What's Changed
setup_XX.x
deprecated script.Justification
There was 1 minute timeout during container build: