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.
- Loading branch information
kecks
committed
Apr 21, 2024
1 parent
ebed1a3
commit 4c6d2af
Showing
17 changed files
with
725 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,54 @@ | ||
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 | ||
|
||
# === Following step should be replace to === | ||
USER ${NB_USER} | ||
RUN cd pycram \ | ||
&& git submodule update --init \ | ||
&& git clone https://github.com/Tigul/neem_interface_python.git src/neem_interface_python \ | ||
&& cd src/neem_interface_python \ | ||
&& git clone https://github.com/benjaminalt/neem-interface.git src/neem-interface | ||
# === To === | ||
# RUN cd pycram | ||
# && git submodule update --init --recursive | ||
# === When all .gitmodules use https urls === | ||
|
||
RUN pip install --requirement ${PYCRAM_WS}/src/pycram/requirements.txt --user | ||
RUN pip install --requirement ${PYCRAM_WS}/src/pycram/src/neem_interface_python/requirements.txt --user \ | ||
&& pip cache purge | ||
|
||
# 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.