-
Notifications
You must be signed in to change notification settings - Fork 168
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
Remove installation of wgrib from geospatial builds from ubuntu:jammy based images #576
Conversation
Yes, the test failure is nothing to do with this PR. I am only wondering if removing this will not change the behavior on focal based images as well. |
@eitsupi good call. For consistency I agree we should leave wgrib on the Do you have a preferred pattern for checking the release version in a shell script? I think looking at @rdenham could you add a conditional instead of removing the wgrib install such that it only runs on 20.04? (Note that the latest release of this stack and going forward are now all on 22.04, so it's a good time to make a change like this). |
I recommend like this: # shellcheck source=/dev/null
source /etc/os-release
if [ "${UBUNTU_CODENAME}" == "focal" ]; then
/rocker_scripts/install_wgrib2.sh
fi |
Sure. Do you think there is merit in also removing unnecessary files left over from the install as well, or just leave it as is given it will only affect older builds? |
Just replying to myself, to get this over the line, I think we should just use the wgrib install script as is for the focal images, without further modification. |
I think it would be great if you could add a process to delete unnecessary files. |
Gdal handles grib2 files well so no longer seems to be a need to install the
wgrib utility, which
is used to read and write grib2 files.