More flexible .devcontainer #650
Replies: 2 comments 10 replies
-
The killer feature I want: NO devcontainer, making documents reasonably editable using just GitHub.dev, but still provide a reasonable feedback loop for authors who are doing simple PreTeXt (e.g. no sageplot) (I almost said no latex-image but we could wire up tikzjax for that). Then we can bring in full PreTeXt at the build/deployment stage. This can only happen if we have a Javascript implementation of enough of PreTeXt though. :-/ |
Beta Was this translation helpful? Give feedback.
-
I don't think the prebuilt codespace will help all that much. It would help if someone wants to quickly try out a codespace the first time (not sure if it persists if they start a new repo from our template), but once they have their own project started, anyone else building a codespace from their repo will have to do the full creation step (unless they have turned on prebuilds themselves). |
Beta Was this translation helpful? Give feedback.
-
What do we think about building in more flexibility into the .devcontainer? I am right now waiting for a new user's repo to spin up a codespace. I am sure it is taking way longer than it needs to given what features the user needs and what is included regardless.
What I propose is that the template repo uses the most minimal .devcontainer. Then, any time that a user tries to build in the presence of latex-image, or tries to build a pdf, we update the .devcontainer to pull the better docker image and prompt them to reload if they are in a codespace. Similarly for the other components.
I don't understand docker enough to know if there is a slick way to pick and choose (or if it makes sense to add them outside the official docker image), but even using our three docker image sizes, I think this would be nice.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions