Git Product home page Git Product logo

Comments (6)

trentm avatar trentm commented on May 24, 2024

Thanks. The intention is that it is optional (as cloudapi GetMachine allows). Obviously not tested tho. :)

from node-triton.

bahamas10 avatar bahamas10 commented on May 24, 2024

@trentm It looks like the API docs says that the package name is optional... however when allowing it to go through I get

{ [MissingParameterError: package must be specified]
  message: 'package must be specified',
  statusCode: 409,
  body: 
   { code: 'MissingParameter',
     message: 'package must be specified' },
  restCode: 'MissingParameter',
  name: 'MissingParameterError' }
{ code: 'MissingParameter',
  message: 'package must be specified' }

from node-triton.

trentm avatar trentm commented on May 24, 2024

Yah, wanh wanh. After discussion, we're updating the docs that package is required.

from node-triton.

bahamas10 avatar bahamas10 commented on May 24, 2024

@trentm does it make sense for node-triton to handle having a "default" package then?

from node-triton.

trentm avatar trentm commented on May 24, 2024

@bahamas10 No. At least I don't want to start in on that yet. Let things soak and perhaps we can come up with something like triton-cli-side aliases. For example, if having "defaults" of any sort here I think a user would more want to associate a default package with an image or class of images. E.g. by default my DB image(s) should use the 4G package, but my webheads just 1G or whatever.

from node-triton.

trentm avatar trentm commented on May 24, 2024

With coming change:

$ triton create base-64-lts
triton create: error (Usage): incorrect number of args

Usage:
    triton create-instance [<options>] IMAGE PACKAGE

Options:
    -h, --help                Show this help.

  Create options:
    -n ARG, --name=ARG        Instance name. If not given, a random one will be
                              created.

  Other options:
    --dry-run                 Go through the motions without actually creating
                              an instance.
    -w, --wait                Wait for the creation to complete.
    -q, --quiet               No progress spinner while waiting.
    -j, --json                JSON stream output.

from node-triton.

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.