-
Notifications
You must be signed in to change notification settings - Fork 6
Building NativeRL
It should take about an hour or two to build the NativeRL library. Please follow the instructions below exactly to get started. If there are any issues, feel free to submit a Github issue.
- A Linux distribution. I'm currently using Rocky Linux which works fine.
- A Docker environment if you don’t have a Linux machine.
Assuming that you are building NativeRL via Docker, follow the commands below exactly.
docker pull rockylinux
Clone the NativeRL Github repository and mount it to your Docker container. Make sure to replace the path below with the path to your local NativeRL directory.
docker run -v /User/usename/Documents/Github/nativerl:/nativerl -it rockylinux:latest
yum install sudo -y
sudo yum install cmake3
sudo yum install make
wget https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh
bash Anaconda3-2019.03-Linux-x86_64.sh
conda install -c conda-forge conda-pack
pip install ray[rllib]==1.3.0
pip install tensorflow
pip install fire
Run the command below and pluck out "nativerl-1.8.1-SNAPSHOT-bin.zip" from the "target" folder (should be in your "nativerl" folder).
mvn clean install -Djavacpp.platform.custom -Djavacpp.platform.linux-x86_64 -Djavacpp.platform.macosx-x86_64 -Djavacpp.platform.windows-x86_64
This will generate a file called "rllibpack.tar.gz". Pluck out this file too as you will need it later.
conda pack -o rllibpack.tar.gz
docker commit [container_id] rockylinux:latest