-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile_noetic_3dmr
49 lines (38 loc) · 1.25 KB
/
Dockerfile_noetic_3dmr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# first build a local noetic as detailed in the README
FROM noetic
# from https://varhowto.com/install-ros-noetic-docker/
#FROM ros:noetic-robot
# Arguments
ARG user
ARG uid
ARG home
ARG workspace
ARG shell
ARG nvidia_driver_version
ARG container_name
ARG timezone=Etc/UTC
LABEL maintainer="[email protected]"
ENV TZ=${timezone}
################################
# switch to root
USER root
RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get install -y keyboard-configuration
RUN apt-get install -y git curl wget ca-certificates
# Switch to user
USER "${user}"
# Install and configure git
RUN sudo mkdir -p /home/${user}/.ssh && sudo chmod 0777 -R /home/${user}
RUN touch ~/.gitconfig && touch ~/.ssh/known_hosts
#RUN ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
RUN git config --global user.name "${user}"
RUN git config --global user.email "${user}@${user}.com"
RUN git config --global http.proxy ""
RUN sudo git config --system --add safe.directory '*' # to avoid "detected dubious ownership" error
# Install 3dmr
WORKDIR /tmp
RUN git clone https://github.com/luigifreda/3dmr.git
# the following to inform we are inside docker at build time
RUN sudo touch /.dockerenv
RUN cd 3dmr && ./install.sh
RUN rm -Rf 3dmr
WORKDIR ${home}