Closed Ricardicus closed 2 years ago
Hi @Ricardicus,
Thanks for this, but I believe this is happening due to the base image at crops/yocto-dockerfiles not getting updated. This is because travis-ci has started limiting the number of compute cycles available, even for open source projects. In other words, the apt update shouldn't be needed since the base image normally gets updated once a week. https://github.com/crops/yocto-dockerfiles/blob/master/dockerfiles/ubuntu/ubuntu-20.04/ubuntu-20.04-base/Dockerfile#L19
As of now my plan is to move everything over to Github Actions and hopefully the once a week builds will be allowed.
I'm going to hold off on merging this until I get everything moved over and make sure it's not necessary. Sorry I took so long to respond, I do appreciate the pull request.
No worries! I understand; but without this PR, there is a risk that a build still fails 6 days in a row if I understand you correctly. Not including this PR makes the build time shorter I presume, as the update process takes a while so I understand the hesitation from that point of view.
but without this PR, there is a risk that a build still fails 6 days in a row if I understand you correctly.
You are correct. But I'm not concerned with the build time as much as I am the image size. The image is already quite large, especially relative to the typical image, so I want to make sure I understand what the size change would be and how to reduce it if possible.
Ok. Yes it is large. I hope it will be a negligle impact. Also; speaking of size, I wonder the image size shrinks, and still works, if "--no-install-recommends" is passed to apt-get install.
Also; speaking of size, I wonder the image size shrinks, and still works, if "--no-install-recommends" is passed to apt-get install.
It might. But even if it has a noticeable impact on the size, the concern I would have is any expected behavior that people may have based on the recommends getting installed. And the only way we would find out if those exist would be to change it and wait for the unhappy people.
NOTE: The extsdk-container is rebuilt every week, so it should pick up the latest upstream ubuntu-18.04 container. https://hub.docker.com/r/crops/extsdk-container/tags
I failed to build the Docker image so I added a fix and thought that perhaps it would be relevant to include it upstream. The error I got was the following: