Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
neurips-2021-the-nethack-challenge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nethack
neurips-2021-the-nethack-challenge
Commits
bade7570
Commit
bade7570
authored
3 years ago
by
Eric Hambro
Browse files
Options
Downloads
Patches
Plain Diff
Add Dockerfile for TB baseline.
parent
3e91b07a
No related branches found
No related tags found
1 merge request
!3
Add Dockerfile for TB baseline.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nethack_baselines/torchbeast/Dockerfile
+66
-0
66 additions, 0 deletions
nethack_baselines/torchbeast/Dockerfile
with
66 additions
and
0 deletions
nethack_baselines/torchbeast/Dockerfile
0 → 100644
+
66
−
0
View file @
bade7570
# -*- mode: dockerfile -*-
FROM
nvidia/cuda:11.1.1-cudnn8-devel-ubuntu20.04
ARG
PYTHON_VERSION=3.8
ENV
DEBIAN_FRONTEND=noninteractive
RUN
apt-get update
&&
apt-get
install
-yq
\
bison
\
build-essential
\
cmake
\
curl
\
flex
\
git
\
libbz2-dev
\
ninja-build
\
software-properties-common
\
wget
\
apt-transport-https
\
ca-certificates
\
gnupg
# Install the latest cmake
RUN
wget
-O
- https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add -
RUN
apt-add-repository
'deb https://apt.kitware.com/ubuntu/ focal main'
RUN
apt-get update
&&
apt-get
--allow-unauthenticated
install
-yq
cmake kitware-archive-keyring
# Install Conda
WORKDIR
/opt/conda_setup
RUN
curl
-o
miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
&&
\
chmod
+x miniconda.sh
&&
\
./miniconda.sh
-b
-p
/opt/conda
&&
\
/opt/conda/bin/conda
install
-y
python
=
$PYTHON_VERSION
&&
\
/opt/conda/bin/conda clean
-ya
ENV
PATH /opt/conda/bin:$PATH
# Create Env, Install Torch and Keep Env active
RUN
conda init bash
RUN
conda create
-n
nle
python
=
3.7
RUN
conda
install
-n
nle pytorch torchvision torchaudio
cudatoolkit
=
11.1
-c
pytorch
-c
nvidia
ENV
BASH_ENV ~/.bashrc
SHELL
["conda", "run", "-n", "nle", "/bin/bash" ,"-c"]
RUN
python
-c
'import torch'
# Install TorchBeast
WORKDIR
/opt/
RUN
git clone https://github.com/condnsdmatters/torchbeast.git
--branch
eric/experimental-port
--recursive
WORKDIR
/opt/torchbeast
RUN
pip
install
-r
requirements.txt
RUN
pip
install
./nest
RUN
python setup.py
install
# Create Workspace
WORKDIR
/opt/workspace
RUN
pip
install
nle
\
hydra-core
\
hydra_colorlog \
wandb \
einops
RUN
echo
"conda activate nle"
>>
~/.bashrc
CMD
["/bin/bash"]
# Docker commands:
# docker build -t nle .
# docker run -v current_dir:/opt/workspace -it nle
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment