Skip to content

Instantly share code, notes, and snippets.

@lazykyama
Last active April 10, 2020 14:05
Show Gist options
  • Save lazykyama/2f2035626c30ed68b65c6d48b283219e to your computer and use it in GitHub Desktop.
Save lazykyama/2f2035626c30ed68b65c6d48b283219e to your computer and use it in GitHub Desktop.
Dockerfile for NEUTRINO on GPU
# Dockerfile for NEUTRINO.
FROM nvcr.io/nvidia/cuda:10.0-cudnn7-runtime-ubuntu18.04
LABEL maintainer="lazykyama"
# Install dependencies.
RUN apt update && \
apt install -y python3 python3-pip curl unzip && \
apt clean && \
rm -rf /var/lib/apt/lists/*
# Not good from here...
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN ln -s /usr/bin/pip3 /usr/bin/pip
# To here...
RUN pip install numpy scipy
# Download NEUTRINO archive and setup tools.
# Note: download script comes from Qiita article below.
# https://qiita.com/namakemono/items/c963e75e0af3f7eed732
WORKDIR /opt
ENV FILE_ID 1yD_b0krxgwV6czPSqpBiWavX1iINJJRj
ENV FILE_NAME NEUTRINO-ALL-Online_v0.200b.zip
RUN curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=${FILE_ID}" > /dev/null && \
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)" && \
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=${FILE_ID}" \
-o ${FILE_NAME}
RUN unzip ${FILE_NAME}
RUN chmod +x ./NEUTRINO/Run.sh \
./NEUTRINO/bin/NEUTRINO ./NEUTRINO/bin/NSF_IO ./NEUTRINO/bin/WORLD ./NEUTRINO/bin/musicXMLtoLabel
RUN chmod +x ./NEUTRINO/NSF/Run.sh ./NEUTRINO/NSF/bin/currennt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment