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
f43063f0
Commit
f43063f0
authored
1 year ago
by
Francesco Tonini
Browse files
Options
Downloads
Patches
Plain Diff
Update docker image
parent
834ea146
No related branches found
No related tags found
1 merge request
!4
Update submodules and add timestamp
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+3
-18
3 additions, 18 deletions
Dockerfile
Dockerfile.jetson
+0
-66
0 additions, 66 deletions
Dockerfile.jetson
with
3 additions
and
84 deletions
Dockerfile
+
3
−
18
View file @
f43063f0
# syntax=docker/dockerfile:1
FROM
nvcr.io/nvidia/pytorch:22.12-py3
AS
b
uilder
FROM
nvcr.io/nvidia/pytorch:22.12-py3
AS
b
ase
SHELL
["/bin/bash", "-c"]
WORKDIR
/
RUN
echo
"Setting up timezone..."
&&
\
...
...
@@ -16,26 +16,11 @@ RUN echo "Installing ROS Noetic..." && \
apt-key add -
&&
\
apt-get update
--fix-missing
&&
\
apt-get
install
-y
--no-install-recommends
\
ros-noetic-ros-core ros-noetic-ros-numpy ros-noetic-vision-opencv
&&
\
ros-noetic-ros-core ros-noetic-ros-numpy ros-noetic-vision-opencv
ros-noetic-hri-msgs
&&
\
rm
-rf
/var/lib/apt/lists/
*
&&
\
echo
"source /opt/ros/noetic/setup.bash"
>>
~/.bashrc
FROM
builder
AS
requirements
SHELL
["/bin/bash", "-c"]
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
&&
\
git checkout 656369a06488fee4917a6590f90d2c0549659668
&&
\
mkdir
build
&&
\
cd
build
&&
\
cmake
-DCMAKE_BUILD_TYPE
=
Release
-DCMAKE_INSTALL_PREFIX
=
/opt/ros/noetic ..
&&
\
make
&&
\
make
install
FROM
requirements
AS
compiler
FROM
base
AS
target
SHELL
["/bin/bash", "-c"]
COPY
./entrypoint.sh ./entrypoint.sh
COPY
./ /home/spring_ws/src/wp4_soft_biometrics_estimation
...
...
This diff is collapsed.
Click to expand it.
Dockerfile.jetson
deleted
100644 → 0
+
0
−
66
View file @
834ea146
# # 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