-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add docker file * empty commit * add clone dds to dockerfile * git clone python-dds * make libdds.so
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} . |