Git Product home page Git Product logo

Comments (3)

sritchie avatar sritchie commented on May 2, 2024

@hamelsmu , there is! I have a task on my list to add docs to caliban.readthedocs.io, but the CHANGELOG should provide enough of an example to get you started. Here's the relevant entry:

  • Custom base image support (#39), thanks
    to #20 from @sagravat.
    .calibanconfig.json now supports a "base_image" key. For the value, can
    supply:

    • a Docker base image of your own
    • a dict of the form {"cpu": "base_image", "gpu": "base_image"} with both
      entries optional, of course.

    Two more cool features.

    First, if you use a format string, like "my_image-{}:latest", the format
    block {} will be filled in with either cpu or gpu, depending on the mode
    Caliban is using.

How to use

To be more clear than the above:

  • Create a file called .calibanconfig.json in your project, with contents that look like
{"base_image": "ubuntu:18.04"}

or

{
    "base_image": {
        "cpu": "cpu_base_image",
        "gpu": "gpu_base_image"
    }
}

In the first case, GPU and CPU mode will use the same base image. In the latter case you can configure separate custom base images for each mode. THe CHANGELOG references a format string trick too, if you want to use that.

Hope this helps, @hamelsmu !

from caliban.

sritchie avatar sritchie commented on May 2, 2024

@hamelsmu also please let me know if you run into any trouble, or have any more questions. Awesome that you're giving Caliban a try.

from caliban.

hamelsmu avatar hamelsmu commented on May 2, 2024

Thanks so much for your guidance @sritchie ❤️

One more question. What I am trying to do is:

  1. Assume I have a docker image with Jupityer installed with jupyter server running as the entrypoint
  2. I want to spin up a VM on GCP with this docker container started, with the correct ports open to allow me to access the running Jupyter server
  3. I would love to optionally get a URL back so that I can access this directly that is https:// (so I don't get the ugly chrome warning when trying to access).

I see that this tool allows me to run workloads in the cloud what about Jupyter Notebook in the cloud with the Docker Image, is this Caliban the right tool doing this on GCP, you think?

My use case is that I want to create a GitHub Action that is automatically triggered when a repo is forked and optionally spins up a Jupyter Notebook automatically for users on GCP, when someone inputs their credentials. I was trying to use a really high-level abstraction like this one to start with, but it could be that perhaps I'm thinking about it the wrong way. BTW: my apologies if this is more of a GCP question and not a caliban question as my intention is not to abuse this as a forum for GCP questions, so will be happy to redirect my question if this is not appropriate to ask in this issue.

Thanks again for your help. Either way I am going to definitely try to use this as it is super cool

from caliban.

Related Issues (20)

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.