Skip to content

Build for linux in ubuntu 20.04 container #2152

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

Merged
merged 7 commits into from
Mar 14, 2025

Conversation

RebeccaMahany
Copy link
Contributor

@RebeccaMahany RebeccaMahany commented Mar 14, 2025

Resolves #952.

We need to continue to build for linux on Ubuntu 20.04, but the ubuntu-20.04 runners have been EOL'ed. When researching the linked issue, I found that using an ubuntu:20.04 container was widely regarded as the easiest solution. Accordingly, this PR updates to use an ubuntu:20.04 container for the linux build.

I think ideally we'd maintain a docker image that has the build dependencies (build-essential ca-certificates openssl git zstd) pre-installed, instead of pulling the image and apt-get installing the small handful of deps we need. This would allow us to skip the extra install steps on each build. Plus, we currently can't run the container as the runner user because we aren't allowed to apt-get install as the runner user -- but if the dependencies were pre-installed in the image, we could run the container as the runner user and thereby avoid the Ignore dubious ownership workaround I had to add. However, I think the implementation in this PR is okay for the time being.

@RebeccaMahany RebeccaMahany added the component:build&packaging Build and Package label Mar 14, 2025
@RebeccaMahany RebeccaMahany force-pushed the becca/gh-container branch 2 times, most recently from 3b55ece to adc47cb Compare March 14, 2025 18:03
@RebeccaMahany RebeccaMahany force-pushed the becca/gh-container branch 2 times, most recently from bb79202 to d0b5c4b Compare March 14, 2025 18:11
@RebeccaMahany RebeccaMahany changed the title Run GH actions in ubuntu 20.04 container Build for linux in ubuntu 20.04 container Mar 14, 2025
@RebeccaMahany RebeccaMahany marked this pull request as ready for review March 14, 2025 19:55
@RebeccaMahany RebeccaMahany added this pull request to the merge queue Mar 14, 2025
Merged via the queue into kolide:main with commit ce03c86 Mar 14, 2025
32 checks passed
@RebeccaMahany RebeccaMahany deleted the becca/gh-container branch March 14, 2025 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:build&packaging Build and Package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot build for ubuntu 20.04 using ubuntu-latest runner image
3 participants