-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
36 lines (29 loc) · 1.44 KB
/
Dockerfile
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
FROM ros:kinetic-ros-base-xenial
MAINTAINER Víctor Mayoral Vilches<[email protected]>
RUN apt-get update && apt-get install -y \
ros-kinetic-robot=1.3.2-0* \
&& rm -rf /var/lib/apt/lists/*
# Install mono
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN apt-get update && apt-get install apt-transport-https
RUN echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" | tee /etc/apt/sources.list.d/mono-official-stable.list
RUN apt-get update && apt-get -y install mono-devel
# RUN certmgr -ssl -m https://go.microsoft.com
# RUN certmgr -ssl -m https://nugetgallery.blob.core.windows.net
# RUN certmgr -ssl -m https://nuget.org
# RUN mozroots --import --sync
# Install a few additional dependencies
RUN apt-get install -y nuget
# Install ROSPenTo
COPY . /root/ROSPenTo
RUN cd /root/ROSPenTo && nuget restore && msbuild
#Copy SSH banner
RUN rm -rf /etc/update-motd.d/* && rm -rf /etc/legal && \
sed -i 's/\#force_color_prompt=yes/force_color_prompt=yes/' /root/.bashrc
COPY motd /etc/motd
RUN echo "cat /etc/motd" >> /root/.bashrc
# Create an alias for ROSPenTo and rospento
RUN echo 'alias ROSPenTo="mono /root/ROSPenTo/RosPenToConsole/bin/Debug/RosPenToConsole.exe"' >> /root/.bashrc
RUN echo 'alias rospento="mono /root/ROSPenTo/RosPenToConsole/bin/Debug/RosPenToConsole.exe"' >> /root/.bashrc
COPY launch_script.bash /root/
ENTRYPOINT ["/root/launch_script.bash"]