Skip to content

Commit b6f0828

Browse files
authored
Add docker file (#1)
* add docker file * empty commit * add clone dds to dockerfile * git clone python-dds * make libdds.so
1 parent 16ef762 commit b6f0828

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

docker/Dockerfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
2+
3+
WORKDIR /workspace
4+
RUN chmod -R a+w /workspace
5+
6+
RUN apt-get update && apt-get install -y --no-install-recommends \
7+
cmake \
8+
curl \
9+
build-essential \
10+
less \
11+
screen \
12+
vim \
13+
git \
14+
htop \
15+
wget \
16+
jq \
17+
tree \
18+
libboost-all-dev
19+
20+
RUN curl -o miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
21+
chmod +x miniconda.sh && \
22+
./miniconda.sh -b -p /opt/conda && rm miniconda.sh && \
23+
/opt/conda/bin/conda install -y numpy pyyaml scipy pandas ipython mkl mkl-include && \
24+
/opt/conda/bin/conda install pytorch=1.2.0 torchvision cudatoolkit=10.0 -c pytorch && \
25+
/opt/conda/bin/conda clean -ya
26+
ENV PATH /opt/conda/bin:$PATH
27+
28+
RUN cd / && git clone https://github.com/dds-bridge/dds && cd /dds && git checkout 9c554cc
29+
RUN cd /dds/src && cp Makefiles/Makefile_linux_shared ./Makefile && make
30+
31+
RUN cd / && git clone https://github.com/Afwas/python-dds && mv /python-dds /python_dds && cd /python_dds && git checkout 653dbd5
32+
RUN cp /dds/src/libdds.so /usr/lib/libdds.so
33+
34+
RUN pip install kiwisolver matplotlib numpy tqdm
35+
36+

docker/build.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
USER_NAME=$1
4+
VERSION=0.0.1
5+
6+
if [ -z ${USER_NAME} ]; then
7+
echo "Please specify docker hub user name"
8+
exit 1
9+
fi
10+
11+
docker build -t ${USER_NAME}/bridge_bidding_env:v${VERSION} .

0 commit comments

Comments
 (0)