Git Product home page Git Product logo

Comments (2)

samruddhikhandale avatar samruddhikhandale commented on June 16, 2024

Hi 👋

So, I tried authoring both a custom base-ubuntu and a custom cpp template. I'm struggling with using base-ubuntu as the base of my cpp template.

Looks like you are trying to create two Templates (ubuntu and cpp) and extend cpp from the ubuntu Template? Unfortunately, the spec currently does not support building a Template on top of another one. All the templates are isolated and are built on top of an image rather than a Template.

In your case, can you create a new ubuntu Docker image and push it to a registry of your choice? Then, you'd be able to reference it in your cpp Template. Let me know if that makes sense, thanks!

Another alternative, create the cpp template whose Dockerfile would also contain the ubuntu contents (ie. which you would ideally put in your ubuntu Template or the contents used to build that image). However, I think the first approach is a bit cleaner.

from template-starter.

meastp avatar meastp commented on June 16, 2024

Another alternative, create the cpp template whose Dockerfile would also contain the ubuntu contents (ie. which you would ideally put in your ubuntu Template or the contents used to build that image). However, I think the first approach is a bit cleaner.

This won't work, because the cpp template (content/script in Dockerfile) depends on some devcontainer features being installed. It does look like devcontainer features are added after the content of the Dockerfile is executed, that's why this needs to be in two images/templates/..

In your case, can you create a new ubuntu Docker image and push it to a registry of your choice? Then, you'd be able to reference it in your cpp Template. Let me know if that makes sense, thanks!

This does make sense, but I'm not sure how to do it. Is it possible to create a github action on the template repository to generate and push docker image(s) for base-ubuntu as well? If it is, could you please explain how? Using the devcontainer ci somehow? devcontainer-ci build command? How does this work with template parameters?
I feel there is some documentation around this missing (or I haven't been able to find it).

Thank you for helping with this! :)

from template-starter.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.