Skip to content

Commit

Permalink
Add docker file (#1)
Browse files Browse the repository at this point in the history
* add docker file

* empty commit

* add clone dds to dockerfile

* git clone python-dds

* make libdds.so
  • Loading branch information
sotetsuk authored Oct 21, 2019
1 parent 16ef762 commit b6f0828
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
36 changes: 36 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04

WORKDIR /workspace
RUN chmod -R a+w /workspace

RUN apt-get update && apt-get install -y --no-install-recommends \
cmake \
curl \
build-essential \
less \
screen \
vim \
git \
htop \
wget \
jq \
tree \
libboost-all-dev

RUN curl -o miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
chmod +x miniconda.sh && \
./miniconda.sh -b -p /opt/conda && rm miniconda.sh && \
/opt/conda/bin/conda install -y numpy pyyaml scipy pandas ipython mkl mkl-include && \
/opt/conda/bin/conda install pytorch=1.2.0 torchvision cudatoolkit=10.0 -c pytorch && \
/opt/conda/bin/conda clean -ya
ENV PATH /opt/conda/bin:$PATH

RUN cd / && git clone https://github.com/dds-bridge/dds && cd /dds && git checkout 9c554cc
RUN cd /dds/src && cp Makefiles/Makefile_linux_shared ./Makefile && make

RUN cd / && git clone https://github.com/Afwas/python-dds && mv /python-dds /python_dds && cd /python_dds && git checkout 653dbd5
RUN cp /dds/src/libdds.so /usr/lib/libdds.so

RUN pip install kiwisolver matplotlib numpy tqdm


11 changes: 11 additions & 0 deletions docker/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

USER_NAME=$1
VERSION=0.0.1

if [ -z ${USER_NAME} ]; then
echo "Please specify docker hub user name"
exit 1
fi

docker build -t ${USER_NAME}/bridge_bidding_env:v${VERSION} .

0 comments on commit b6f0828

Please sign in to comment.