Giter Club home page Giter Club logo

packer-nvidia-docker's Introduction

packer-nvidia-docker

Version License CircleCI

packer template to build Ubuntu Server AMI (Amazon Machine Image) includes nvidia-docker and NVIDIA graphics driver in Personal Package Archives for Proprietary GPU Drivers.

Requirements

Building Images

To build images, simply run:

$ git clone https://github.com/uchida/packer-nvidia-docker
$ cd packer-nvidia-docker
$ export AWS_ACCESS_KEY_ID=xxx
$ export AWS_SECRET_ACCESS_KEY=xxx
$ packer build template.json

About nvidia-docker, see nvidia-docker repository wiki

Build configuration

To save cost, this build AMI with t2.nano instance and you could launch it with GPU instances, such as g2.2xlarge, g2.8xlarge.

Default this build AMI in ap-northeast-1 region, to build AMI on other region, change "region" and "source_ami" with packer's -var/-var-file options or directly edit them in template.json.

Example usage for nvidia-docker

Use tensorflow

$ sudo nvidia-docker run -it -p 8888:8888 tensorflow/tensorflow:latest-gpu

Use chainer

$ sudo nvidia-docker run -it chainer/chainer /bin/bash

if you want to run nvidia-docker without sudo, run

$ sudo groupadd docker
$ sudo usermod -aG docker $USER

see Post-installation steps for Linux for detail.

License

Contents in this repository are dedicated to [CC0] (https://creativecommons.org/publicdomain/zero/1.0/). No rights reserved.

License for built AMI follows ones of Ubuntu project, nvidia-docker and NVIDIA software license for NVIDIA graphics driver.

packer-nvidia-docker's People

Contributors

shinichy avatar uchida avatar

Watchers

 avatar

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.