Add Ubuntu Pro support #40
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Works by injecting the env var UBUNTU_PRO_TOKEN as a secret into the docker build, and updating the docker-apt-install helper script to use it to add the ESM repos if we are on 20.04, and then removing it.
This should give us security updates on 20.04 images until 2030. This gives us more time to try figure out our actual image deprecation policy.
We could easily extend it to 22.04 if we want once it, once it hits EOL in 2027
Is uses the recommended way to us Pro/ESM in docker containers, and as far as I can tell, this is a valid use of the free Ubuntu Pro tier.
The token we are using is currently tied to my Ubuntu SSO account, and is stored as an org secret, and shared only with the docker repos.
If we land this, then with some small updates to the r and python build process, the images for python:v1 and r:v1 can also install their packages from ESM repos too.