diff --git a/mrgpu_scripts/Dockerfile.conda b/mrgpu_scripts/Dockerfile.conda new file mode 100644 index 0000000000000000000000000000000000000000..3fbf9497e8be91f845b8e5b3d4c016ff8f6c8422 --- /dev/null +++ b/mrgpu_scripts/Dockerfile.conda @@ -0,0 +1,4 @@ +FROM continuumio/anaconda +RUN conda create -n env python=3.6 +RUN echo "source activate env" > ~/.bashrc +ENV PATH /opt/conda/envs/env/bin:$PATH diff --git a/mrgpu_scripts/Dockerfile.pome b/mrgpu_scripts/Dockerfile.pome new file mode 100644 index 0000000000000000000000000000000000000000..f48e644e9ede971517efc1937063484702a353d7 --- /dev/null +++ b/mrgpu_scripts/Dockerfile.pome @@ -0,0 +1,31 @@ +FROM continuumio/anaconda3 + +RUN pip install sklearn + +RUN pip install pandas + +RUN pip install nibabel + +RUN /opt/conda/bin/conda install ipython -y + +RUN pip install jupyter + +RUN pip install h5py + +RUN pip install graphviz + +RUN pip install pydot + +RUN pip install keras + +RUN pip install matplotlib + +RUN pip install seaborn + +RUN opt/conda/bin/conda install pomegranate -y + +RUN opt/conda/bin/conda install -c anaconda pygraphviz -y + +RUN apt-get install xdg-utils --fix-missing -y + +RUN useradd m145916 -u 7111 diff --git a/mrgpu_scripts/Dockerfile.yoga.mrgpu b/mrgpu_scripts/Dockerfile.yoga.mrgpu new file mode 100644 index 0000000000000000000000000000000000000000..2af4c3ca5c33f1397dcae34c1f14a5ba6175c21e --- /dev/null +++ b/mrgpu_scripts/Dockerfile.yoga.mrgpu @@ -0,0 +1,66 @@ +FROM nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04 + +RUN apt update && apt -y upgrade && apt upgrade && apt install -y sudo vim curl bzip2 + +RUN curl -O https://repo.continuum.io/archive/Anaconda3-5.2.0-Linux-x86_64.sh + +RUN bash ./Anaconda3-5.2.0-Linux-x86_64.sh -bp /opt/conda + +RUN touch ~/.bashrc && echo "export PATH=${PATH}:/opt/conda/bin" >> ~/.bashrc + +RUN rm ./Anaconda3-5.2.0-Linux-x86_64.sh + +RUN /bin/bash -c "source ~/.bashrc" + +RUN /opt/conda/bin/conda install pomegranate -y + +RUN /opt/conda/bin/conda create -n tensorflow -y python=3.6 + +RUN [ "/bin/bash", "-c", "source /opt/conda/bin/activate tensorflow"] + +RUN /opt/conda/bin/conda install -c conda-forge nibabel -y + +RUN apt update + +RUN apt install -y python3-pip + +RUN echo "source activate tensorflow" >> ~/.bashrc +ENV PATH /opt/conda/envs/tensorflow/bin:$PATH + +RUN pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.12.0-cp36-cp36m-linux_x86_64.whl + +RUN pip install sklearn + +RUN pip install pandas + +RUN pip install nibabel + +RUN apt install -y git-core + +RUN apt install -y protobuf-compiler + +RUN /opt/conda/bin/conda install ipython -y + +RUN pip install jupyter + +RUN pip install h5py + +RUN pip install graphviz + +RUN pip install pydot + +RUN pip install keras + +RUN pip install matplotlib + +RUN pip install seaborn + +RUN useradd m145916 -u 7111 +# USER 7111 +# WORKDIR /home/m14591/TF + +RUN echo "export PYTHONPATH=/home/m145916/TF/tf_slim_models/research/slim/" >> ~/.bashrc + +# COPY ./docker-entrypoint.sh / +# ENTRYPOINT ["/docker-entrypoint.sh"] + diff --git a/mrgpu_scripts/DockerfileMatlab.yoga.mrgpu b/mrgpu_scripts/DockerfileMatlab.yoga.mrgpu new file mode 100644 index 0000000000000000000000000000000000000000..aa341a551bb564e06d3dc8a9371de17203e6f09a --- /dev/null +++ b/mrgpu_scripts/DockerfileMatlab.yoga.mrgpu @@ -0,0 +1,25 @@ +FROM continuumio/anaconda + +RUN conda create -n jmatlab -y python=3.6 jupyter + +RUN apt update + +RUN apt install -y python3-pip --fix-missing + +RUN echo "source activate jmatlab" >> ~/.bashrc +ENV PATH /opt/conda/envs/jmatlab/bin:$PATH + +RUN pip install matlab_kernel + +# CMD ["python -m", "matlab_kernel", "install"] + +# WORKDIR /app + +# COPY /usr/local/MATLAB/R2018a/ /app + +# WORKDIR /app/R2018a/extern/engines/python/ + +# CMD ["python", "setup.py", 'install"] + +RUN useradd m145916 -u 7111 + diff --git a/mrgpu_scripts/compile.sh b/mrgpu_scripts/compile.sh new file mode 100644 index 0000000000000000000000000000000000000000..198f615da06bdcdfbc49daee9a4122c122b2946e --- /dev/null +++ b/mrgpu_scripts/compile.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +docker build -t theesan16/tf:mrgpu_yoga -f Dockerfile.yoga.mrgpu . +docker push theesan16/tf:mrgpu_yoga + diff --git a/mrgpu_scripts/compile_jmatlab.sh b/mrgpu_scripts/compile_jmatlab.sh new file mode 100644 index 0000000000000000000000000000000000000000..98bd0acaafe398e2e2e963b89a4c6591b1aa8f3e --- /dev/null +++ b/mrgpu_scripts/compile_jmatlab.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +docker build -t theesan16/matlab:mrnx02_yoga -f DockerfileMatlab.yoga.mrgpu . +docker push theesan16/matlab:mrnx02_yoga + diff --git a/mrgpu_scripts/compile_pome.sh b/mrgpu_scripts/compile_pome.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c42a49a01b849f74281e94b2747d47eb56a8874 --- /dev/null +++ b/mrgpu_scripts/compile_pome.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +docker build -t theesan16/gen:pome_yoga -f Dockerfile.pome . +docker push theesan16/gen:pome_yoga + diff --git a/mrgpu_scripts/docker-entrypoint.sh b/mrgpu_scripts/docker-entrypoint.sh new file mode 100644 index 0000000000000000000000000000000000000000..a97d5decf07dc564a0d6e22cc37458ece023a660 --- /dev/null +++ b/mrgpu_scripts/docker-entrypoint.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +echo "export PATH=${PATH}:/opt/conda/bin" >> ~/.bashrc + +echo "export PYTHONPATH=/home/m145916/TF/tf_slim_models/research/slim/" >> ~/.bashrc + +exec "$@" diff --git a/mrgpu_scripts/launch_docker.sh b/mrgpu_scripts/launch_docker.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e1e9e5e080aa06f0e151b6a3497e7b65210b7ee --- /dev/null +++ b/mrgpu_scripts/launch_docker.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +nvidia-docker run --runtime=nvidia -v /home/m145916:/home/m145916 -v /nvme/m145916:/nvme/m145916 -u 7111 -w /home/m145916/ -p 7777:7777 -p 6006:6006 -p 6007:6007 -p 6008:6008 -p 6009:6009 -it theesan16/tf:mrgpu_yoga diff --git a/mrgpu_scripts/launch_matlab_docker.sh b/mrgpu_scripts/launch_matlab_docker.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e7b94bf261b4f7af7efa7f4adf59a9d8b62ac53 --- /dev/null +++ b/mrgpu_scripts/launch_matlab_docker.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +docker run -v /home/m145916:/home/m145916 -v /usr/local:/usr/local -v /nvme/m145916:/nvme/m145916 -u 7111 -w /home/m145916/ -p 7888:8888 -it theesan16/matlab:mrnx02_yoga + +# docker run -v /usr/local:/usr/local -p 7888:8888 -it theesan16/matlab:mrnx02_yoga diff --git a/mrgpu_scripts/launch_pome_docker.sh b/mrgpu_scripts/launch_pome_docker.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d369505ff603b0e555e6213cde98fa2ff863265 --- /dev/null +++ b/mrgpu_scripts/launch_pome_docker.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker run -v /home/m145916:/home/m145916 -v /nvme/m145916:/nvme/m145916 -v /mnt/j2/m145916:/mnt/j2/m145916 -u 7111 -w /mnt/j2/m145916/ -p 8888:8888 -it theesan16/gen:pome_yoga diff --git a/mrgpu_scripts/login_docker.sh b/mrgpu_scripts/login_docker.sh new file mode 100644 index 0000000000000000000000000000000000000000..68356b6b271d9108c52c91a703a1c88dc49281e5 --- /dev/null +++ b/mrgpu_scripts/login_docker.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +cid=`docker ps | grep tf:mrgpu_yoga| awk '{print $1}'` + +docker exec -ti $cid /bin/bash +