Skip to content

Comments

Container improvements#1318

Merged
cxxxr merged 2 commits intolem-project:mainfrom
elken:feat/container-improvements
Mar 1, 2024
Merged

Container improvements#1318
cxxxr merged 2 commits intolem-project:mainfrom
elken:feat/container-improvements

Conversation

@elken
Copy link
Contributor

@elken elken commented Feb 28, 2024

Nothing earth-shattering here, changes documented in the commits but I'll summarize here as well as provide the necessary post-merge setup

Clean up image

The qlot image that this is based on installs qlot to the root user only, which breaks when trying to run the container as a user other than root. The reason for alpine is it produces a smaller image (200MB smaller) and otherwise runs just fine. Happy to revert this commit if needed, the main reason for the PR is the second point

Add support for GHCR

Since it's free, might as well take advantage of hosting an image on github so that users don't have to build their own and deal with the issues associated (like #1271). You can see the result of the build on my fork and the only bit of post-merge setup is go to here and change the below setting to reflect the image
image

Also not sure exactly what logic should determine what triggers a new image deployment, currently it'll run regardless of the CI building/failing but I can have it linked to that if needed; though it seems to be failing...

And to show that it works
image

If preferred, I can also look into pushing to docker hub instead; but I don't think there's much point outside of saving having to type ghcr.io/.

Thanks all!

The qlot image installs as root, making the resultant image only
runnable as root (which is bad in the first place).

Also prefer alpine for a smaller image size (200MB smaller)

We also combine the two build & install commands so the build only runs
if the install completes.
Build and push the image to the Github Container Registry, allowing
users to just pull the image without building.
@cxxxr cxxxr merged commit 3e2396e into lem-project:main Mar 1, 2024
@elken elken deleted the feat/container-improvements branch March 1, 2024 08:50
@elken elken mentioned this pull request Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants