Giter Site home page Giter Site logo

tchan2 / packet-gpu Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 11.55 MB

A first step example of creating an environment that allows for the implementation of deep learning in a GPU supported Packet server using Terraform, Docker, and Jupyter.

HCL 25.04% Shell 74.96%

packet-gpu's People

Contributors

jmarhee avatar tchan2 avatar truongmd avatar

Watchers

 avatar

packet-gpu's Issues

Handling package installation success check

I like that you're handling this:

and while the script will exit if docker isn't in the $PATH (as you intended), I'd recommend just adding some additional handling so when checking the cloudinit output, there can be some more robust messaging, like:

if ! type docker; then echo "Docker not installed..."; exit 1; fi

this also allows you add some retry behavior down the road if you wanted for the other dependencies as well.

Consider making `facility` variable a list

I'd recommend making the facility variable, itself, a list, rather than providing it as a string into a list (now capped at that single value for length):

facilities = ["${var.facility}"]

so something like this:

packet-gpu/variables.tf

Lines 23 to 26 in 3bb40a1

variable "facility" {
description = "The facility your Packet server is in. This information can be found in the 'Location' part of your preferred server's details."
default = "dfw2"
}

could be expressed like:

variable "facility" {
   default = ["dfw2"]
}

and then referenced like:

   facilities = "${var.facility}"

so even if you only plan to use a single facility, this project can scale if there are more GPU-equipped facilities one would like to use.

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.