codewit-us / codewit.us

Website for learning how to code from unique perspectives
MIT License
0 stars 0 forks source link

Build docker images with server boot #35

Open kbuffardi opened 1 week ago

kbuffardi commented 1 week ago

We will have a dedicated docker image for each of the languages supported (i.e. for now, python, java, and c++). When the server starts up, it should go through a list of the languages and for each one, build it's corresponding image.

The docker build command already bypasses up-to-date layers (and/or entire images) so it shouldn't be too harmful for us to give the command to (re)build it on server start even if the server successfully built it upon a previous start. However, we do want to update the container when the Dockerfile has been updated, which build should recognize. The built images should be named codewit_eval_python codewit_eval_java and codewit_eval_cpp respectively.

kbuffardi commented 1 week ago

@KavetiRohith as you start working on this, can you advise on where in the file structure you would like us to place all the Dockerfiles for the different languages? The dockerfiles may come along with accompanying files/folders (such as scripts that run the tests) so we might want to have a dedicated subdirectory for each language.

Then, once we determine that, I'll contribute the dockerfiles (and associated files).