Skip to content
Snippets Groups Projects
Commit e1aa916b authored by Varatharajah's avatar Varatharajah
Browse files

adding mrgpu dockers files

parent 017e3d33
No related branches found
No related tags found
No related merge requests found
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
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
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"]
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
#!/bin/bash
docker build -t theesan16/tf:mrgpu_yoga -f Dockerfile.yoga.mrgpu .
docker push theesan16/tf:mrgpu_yoga
#!/bin/bash
docker build -t theesan16/matlab:mrnx02_yoga -f DockerfileMatlab.yoga.mrgpu .
docker push theesan16/matlab:mrnx02_yoga
#!/bin/bash
docker build -t theesan16/gen:pome_yoga -f Dockerfile.pome .
docker push theesan16/gen:pome_yoga
#!/bin/bash
echo "export PATH=${PATH}:/opt/conda/bin" >> ~/.bashrc
echo "export PYTHONPATH=/home/m145916/TF/tf_slim_models/research/slim/" >> ~/.bashrc
exec "$@"
#!/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
#!/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
#!/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
#!/bin/bash
cid=`docker ps | grep tf:mrgpu_yoga| awk '{print $1}'`
docker exec -ti $cid /bin/bash
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment