Public Repository

Last pushed: 2 years ago
Short Description
Torch Image For Running Deep Learning on EC2
Full Description

Dockerfile

Torch/iTorch

FROM ubuntu:14.04

RUN apt-get -y update
RUN apt-get -y install curl vim bash git ipython

RUN curl -sk https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash
RUN git clone https://github.com/torch/distro.git /opt/torch --recursive
RUN cd /opt/torch ; /opt/torch/install.sh -b

ENV PATH /opt/toch/bin:$PATH
ENV PATH /opt/torch/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

RUN th -h
RUN luarocks install itorch
RUN luarocks install cunn
RUN apt-get install wget

A docker container with the Nvidia kernel module and CUDA drivers installed

ENV CUDA_RUN http://developer.download.nvidia.com/compute/cuda/6_5/rel/installers/cuda_6.5.14_linux_64.run

RUN apt-get update && apt-get install -q -y \
wget \
build-essential

RUN cd /opt && \
wget $CUDA_RUN && \
chmod +x *.run && \
mkdir nvidia_installers && \
./cuda_6.5.14_linux_64.run -extract=pwd/nvidia_installers && \
cd nvidia_installers && \
./NVIDIA-Linux-x86_64-340.29.run -s -N --no-kernel-module

RUN cd /opt/nvidia_installers && \
./cuda-linux64-rel-6.5.14-18749181.run -noprompt

Docker Pull Command
Owner
alexwchen

Comments (0)