-
Notifications
You must be signed in to change notification settings - Fork 24
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
Create smaller devcontainer #89
Comments
I have already started to try to fetch the dependencies to an Alpine image (just to see if it has a big effect when using one of the smallest available images). In general, it works to install the most stuff in alpine (But, I am not 100% finished). It does not mean that the final image must built on top of alpine base image. The microsoft devcontainer base image just with Rust installed takes 2.97GB (that is too much for a base image). |
I think first we need to analyze the disk usage of the dev container to find out the biggest chunks. ncdu -x / There we can see for
and
and
and
We can try to install all the things we need based on |
The base and the dev containers can also be build within the CI/CD pipeline. Take a look here for some inspiration: #116 |
The |
I have tested quickly with a different and smaller base image |
I addition to the size, our devcontainer also lacks flexibility to install different Rust versions. Currently we use |
Closing as completed. |
Description
The devcontainer has been grown a lot:
This devcontainer is pulled in CI/CD pipeline and also local builds are running very long.
The most dependencies are installed in the Dockerfile.base (the devcontainer base image https://github.com/eclipse-ankaios/ankaios/blob/main/.devcontainer/Dockerfile.base). This is getting to big.
Goals
Having a slim devcontainer image.
Final result
Summary
To be filled when the final solution is sketched.
Tasks
The text was updated successfully, but these errors were encountered: