-
Notifications
You must be signed in to change notification settings - Fork 385
New way to install flow #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
lucfisc
merged 20 commits into
flow-project:master
from
lucfisc:lucfisc-new-installation
Sep 3, 2018
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
b0f5cb5
New way to install flow
lucfisc b321ac5
Update flow_setup.rst
lucfisc d8ff399
Update flow_setup.rst
lucfisc ab60b97
Update flow_setup.rst
lucfisc c97339e
Summary added
lucfisc 2b09452
Update flow_setup.rst
lucfisc d180c33
Update of flow setup with summary
lucfisc 98ce6fa
Merge pull request #2 from lucfisc/lucfisc-patch-v2-INSTALLATION
lucfisc e6140d5
Update flow_setup.rst
lucfisc 617abdc
Update flow_setup.rst
lucfisc e5f90b0
Update flow_setup.rst
lucfisc 8668bc1
Merge pull request #4 from lucfisc/lucfisc-new-installation-v2-1
lucfisc 4d9545a
Dockerfile remote desktop
lucfisc 7c5591c
Delete Dockerfile
lucfisc 6ad96ed
Remote Desktop dockerfile
lucfisc 9657395
Update flow_setup.rst
lucfisc 47bbf7e
TYPO in the text
lucfisc c4d421e
Update flow_setup.rst
lucfisc 60db057
Add word to solve conflict
lucfisc f08c584
Merge branch 'master' into lucfisc-new-installation
eugenevinitsky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,90 @@ | ||
FROM consol/ubuntu-xfce-vnc | ||
|
||
USER 0 | ||
|
||
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 | ||
ENV PATH /opt/conda/bin:$PATH | ||
|
||
RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \ | ||
libglib2.0-0 libxext6 libsm6 libxrender1 \ | ||
git mercurial subversion | ||
|
||
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-4.5.4-Linux-x86_64.sh -O ~/miniconda.sh && \ | ||
/bin/bash ~/miniconda.sh -b -p /opt/conda && \ | ||
rm ~/miniconda.sh && \ | ||
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ | ||
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \ | ||
echo "conda activate base" >> ~/.bashrc | ||
|
||
RUN apt-get install -y curl grep sed dpkg && \ | ||
TINI_VERSION=`curl https://github.com/krallin/tini/releases/latest | grep -o "/v.*\"" | sed 's:^..\(.*\).$:\1:'` && \ | ||
curl -L "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini_${TINI_VERSION}.deb" > tini.deb && \ | ||
dpkg -i tini.deb && \ | ||
rm tini.deb && \ | ||
apt-get clean | ||
|
||
|
||
RUN apt-get update && apt-get upgrade -y | ||
RUN apt-get install -y cmake swig libgtest-dev python-pygame python-scipy autoconf libtool pkg-config libgdal-dev libxerces-c-dev && \ | ||
apt-get install -y libproj-dev libfox-1.6-dev libxml2-dev libxslt1-dev build-essential curl unzip flex bison python python-dev python3-dev | ||
RUN pip install cmake cython | ||
|
||
|
||
|
||
RUN cd ~ && \ | ||
git clone --recursive https://github.com/eclipse/sumo.git && \ | ||
cd sumo && \ | ||
git checkout cbe5b73d781376c939b07c6127803a804c803ed7 && \ | ||
mkdir build/cmake-build | ||
|
||
RUN cd ~/sumo && cd build/cmake-build && \ | ||
cmake ../.. && \ | ||
make && \ | ||
echo 'export SUMO_HOME="$HOME/sumo"' >> ~/.bashrc && \ | ||
echo 'export PATH="$HOME/sumo/bin:$PATH"' >> ~/.bashrc && \ | ||
echo 'export PYTHONPATH="$HOME/sumo/tools:$PYTHONPATH"' >> ~/.bashrc | ||
|
||
|
||
|
||
|
||
|
||
RUN cd ~ && \ | ||
git clone https://github.com/flow-project/flow.git && \ | ||
cd flow && \ | ||
conda env create -f environment.yml | ||
|
||
RUN cd flow && python setup.py develop && \ | ||
echo 'export PYTHONPATH="$HOME/flow:$PYTHONPATH"' >> ~/.bashrc | ||
|
||
RUN cd ~ && \ | ||
git clone https://github.com/cathywu/rllab-multiagent.git && \ | ||
cd rllab-multiagent && \ | ||
conda env create -f environment.yml && \ | ||
python setup.py develop && \ | ||
echo 'export PYTHONPATH="$HOME/rllab-multiagent:$PYTHONPATH"' >> ~/.bashrc | ||
|
||
RUN echo "source activate flow" >> /root/.bashrc | ||
RUN echo "source activate flow" | ||
ENV BASH_ENV /root/.bashrc | ||
|
||
|
||
|
||
|
||
## RAY | ||
RUN apt-get update | ||
|
||
RUN apt-get install -y libboost-dev libboost-test-dev libboost-program-options-dev libboost-filesystem-dev \ | ||
libboost-thread-dev libevent-dev automake libtool flex \ | ||
bison pkg-config g++ libssl-dev | ||
RUN git clone https://github.com/apache/thrift && cd thrift && ./bootstrap.sh && ./configure && make && make install | ||
|
||
#### RAY | ||
RUN cd ~ conda install libgcc jupyter | ||
RUN apt-get update | ||
RUN apt-get install -y cmake pkg-config build-essential autoconf curl libtool libboost-dev libboost-filesystem-dev libboost-system-dev unzip bison openssl | ||
RUN git clone https://github.com/eugenevinitsky/ray | ||
RUN cd ray/python && python setup.py install | ||
RUN echo 'export PYTHONPATH="$HOME/flow:$PYTHONPATH"' >> ~/.bashrc | ||
RUN pip install lz4 gym==0.10.5 | ||
|
||
USER 0 |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so rllib is not installed in a virtual env but rllab is?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eugenevinitsky. Rllib is installed in the root environment and works.
For rllab, I need to enter another environment ( flow-rllab) but I am working on a way to have everything set up in the same environment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, should be good to go after this. Can you add the dockerfile that you used to create the docker image? Would be useful to have in the docker folder as a record if we need to remake it!