forked from cram2/pycram
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from K3cks/binder_config_update
Binder config setup
- Loading branch information
Showing
17 changed files
with
711 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,40 @@ | ||
FROM intel4coro/base-notebook:20.04-noetic-full-xpra | ||
|
||
# Set environment | ||
ENV PATH=$PATH:/home/user/.local/bin | ||
ENV PYCRAM_WS=/home/${NB_USER}/workspace/ros | ||
WORKDIR ${PYCRAM_WS}/src/ | ||
COPY --chown=${NB_USER}:users . pycram/ | ||
RUN vcs import --input pycram/binder/pycram-http.rosinstall --recursive | ||
|
||
RUN pip install --requirement ${PYCRAM_WS}/src/pycram/requirements.txt --user | ||
|
||
# Remove double numpy version | ||
RUN pip uninstall numpy -y | ||
RUN pip install --upgrade pip | ||
|
||
COPY --chown=${NB_USER}:users binder/me ${PYCRAM_WS}/src/me | ||
|
||
USER root | ||
RUN apt-get update | ||
|
||
# Build pycram workspace | ||
WORKDIR ${PYCRAM_WS} | ||
USER root | ||
RUN rosdep update \ | ||
&& rosdep install -y --ignore-src --from-paths ./ -r \ | ||
&& rosdep fix-permissions | ||
USER ${NB_USER} | ||
RUN catkin build | ||
|
||
RUN pip install service_identity | ||
|
||
# Jupyter Config | ||
COPY --chown=${NB_USER}:users binder/jupyter-config.json /opt/conda/share/jupyter/lab/settings/overrides.json | ||
|
||
WORKDIR ${PYCRAM_WS}/src/pycram | ||
RUN git config --global --add safe.directory ${PWD} | ||
COPY --chown=${NB_USER}:users binder/entrypoint.sh / | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD ["jupyter", "lab", "--allow-root", "--NotebookApp.token=''", "--no-browser", "--ip=0.0.0.0"] | ||
RUN pip install https://raw.githubusercontent.com/yxzhan/jupyterlab-rviz/master/dist/jupyterlab_rviz-0.3.1.tar.gz |
Oops, something went wrong.