Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Soft Biometrics Estimation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Spring
WP4_Behavior
Soft Biometrics Estimation
Commits
bb41ea75
Commit
bb41ea75
authored
2 years ago
by
Francesco Tonini
Browse files
Options
Downloads
Patches
Plain Diff
Add Dockerfile for Jetson
parent
f982a3ba
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!4
Update submodules and add timestamp
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile.jetson
+66
-0
66 additions, 0 deletions
Dockerfile.jetson
with
66 additions
and
0 deletions
Dockerfile.jetson
0 → 100644
+
66
−
0
View file @
bb41ea75
# syntax=docker/dockerfile:1
FROM ros:noetic-pytorch-l4t-r32.4.3 AS builder
SHELL ["/bin/bash", "-c"]
WORKDIR /
# Install CUDA 10.2 and CuDNN8
RUN apt-get update && apt-get install -y --no-install-recommends gnupg2 ca-certificates && \
wget https://gitlab.com/nvidia/container-images/l4t-base/-/raw/master/jetson-ota-public.key && \
apt-key add jetson-ota-public.key
RUN echo "deb https://repo.download.nvidia.com/jetson/common r32.4 main" >> /etc/apt/sources.list
RUN echo "deb https://repo.download.nvidia.com/jetson/t186 r32.4 main" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -y --no-install-recommends \
cuda-libraries-10-2 \
cuda-nvtx-10-2 \
cuda-libraries-dev-10-2 \
cuda-minimal-build-10-2 \
cuda-license-10-2 \
cuda-command-line-tools-10-2 \
libcudnn8-dev
ENV LIBRARY_PATH /usr/local/cuda/lib64/stubs
RUN echo "Installing pytorch and torchvision..." && \
apt-get update && \
wget https://nvidia.box.com/shared/static/p57jwntv436lfrd78inwl7iml6p13fzh.whl -O torch-1.8.0-cp36-cp36m-linux_aarch64.whl && \
pip3 install torch-1.8.0-cp36-cp36m-linux_aarch64.whl && \
git clone --branch v0.9.0 https://github.com/pytorch/vision torchvision && \
cd torchvision && \
BUILD_VERSION=0.9.0 python3 setup.py install --user
FROM builder AS requirements
SHELL ["/bin/bash", "-c"]
RUN echo "Installing required packages..." && \
apt-get update --fix-missing && \
apt-get install -y --no-install-recommends git
RUN git clone https://github.com/eric-wieser/ros_numpy.git && \
cd ros_numpy/ && \
python setup.py install
RUN echo "Installing hri_msgs from source..." && \
. /opt/ros/noetic/setup.bash && \
mkdir -p /home/spring_ws/src && \
cd /home/spring_ws/src && \
git clone https://github.com/ros4hri/hri_msgs.git && \
cd hri_msgs && \
# https://github.com/ros4hri/hri_msgs/tree/e38e187010e16ed4328c3135e8c9e83e3f10dd96
git checkout e38e187010e16ed4328c3135e8c9e83e3f10dd96 && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/ros/noetic .. && \
make && \
make install
FROM requirements AS compiler
SHELL ["/bin/bash", "-c"]
COPY ./entrypoint.sh ./entrypoint.sh
COPY ./ /home/spring_ws/src/soft-biometrics-estimation
RUN echo "Compiling packages..." && \
chmod +x ./entrypoint.sh && \
. /opt/ros/noetic/setup.bash && cd /home/spring_ws && catkin_make && \
echo "source /home/spring_ws/devel/setup.bash" >> ~/.bashrc
EXPOSE 11311
ENTRYPOINT ["/entrypoint.sh"]
CMD ["run"]
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