Skip to content

Instantly share code, notes, and snippets.

@gyu-don
Last active September 17, 2018 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gyu-don/4596cac3786cbf39294bdc535345f54e to your computer and use it in GitHub Desktop.
Save gyu-don/4596cac3786cbf39294bdc535345f54e to your computer and use it in GitHub Desktop.
sqaod Dockerfile

Dockerfile for sqaod

Sqaod can be run on CPU without CUDA, however this Dockerfile requires CUDA device. nvidia-docker is also required to run.

Build

mkdir sqaod-docker
cd sqaod-docker
curl -s -L https://gist.githubusercontent.com/gyu-don/4596cac3786cbf39294bdc535345f54e/raw/240e7d73ee8f35f38ae695a54c2df77ed5371b5e/Dockerfile
docker build -t sqaod .

Run

docker run --runtime=nvidia --rm -it sqaod
FROM nvidia/cuda:9.2-runtime-ubuntu16.04
RUN apt update && \
apt install -y --no-install-recommends apt-transport-https curl python-pip python-setuptools ipython && \
. /etc/lsb-release && \
(echo "deb [arch=amd64] https://shinmorino.github.io/sqaod/ubuntu ${DISTRIB_CODENAME} multiverse" | tee /etc/apt/sources.list.d/sqaod.list) && \
(curl -s -L https://shinmorino.github.io/sqaod/gpgkey | apt-key add -) && \
apt update && apt install -y libsqaodc libsqaodc-dev libsqaodc-cuda-9-2 && pip install sqaod
CMD ipython
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment