Closed cchudant closed 2 years ago
Please check on the DCAP VM to do your tests. Do you still have the credentials?
Please check on the DCAP VM to do your tests. Do you still have the credentials?
Yes I have! :)
I forgot to comment but I really like the idea of having a custom dev env
I have ran the tests with the VM, for hardware, hardware-dcsv3. I had to make a minor change (see the last commit 3 days ago), I ran the tests again today, and it works! I'm excited to see how much of an improvement this is for the compressed sizes on dockerhub.
I'll test a bit on my side but this should be merged pretty fast. The version 0.3.0 will hopefully be live this week :D
Description
On dockerhub, the images are very very big:
This is the compressed size, meaning the actual sizes are even bigger
Result of
docker images <image> --format "{{.Size}}"
currently (uncompressed size)This pull request changes the uncompressed sizes to:
I don't have the numbers for the compressed sizes
How is that possible?
Docker works on an overlay filesystem. This means, every time we use an instruction such as
RUN
during the build, it will create a new filesystem layer. The final image is just every layer overlapped on one another. This means that if we install a temporary dependency in aRUN
command, we have to uninstall it in the sameRUN
command, or else, it will still impact the image size after being uninstalled.The way this new Dockerfile works is by creating separate images for building the app and running it. Build images are quite big since they have all the build dependencies, and run images are as slim as possible, and optimized for size.
Docs: Developer environment
This PR introduces a
base-build
stage/image that has almost everything you need for developing on BlindAI server. This is a good opportunity to document how to create a proper dev environment for the server on the docs, using docker and vscode.Something like
What do you think? Where in the docs would that fit?
Related Issue
None
Type of change
How Has This Been Tested?
This has been tested in software mode on my machine. The images compile fine in hardware and hardware-dcsv3 mode, but I will need to test on actual machines to make sure I did not break anything (CI doesn't check hardware and hardware-dcsv3 yet)
This PR is marked as draft until I do these tests.
Checklist: