@@ -3,10 +3,9 @@ FROM $BASE_IMAGE
3
3
4
4
LABEL maintainer=
"Lukas Rustler <[email protected] >"
5
5
6
- # Non-interactive mode
7
- ENV DEBIAN_FRONTEND=' noninteractive'
6
+ # Non-interactive installation mode
7
+ ENV DEBIAN_FRONTEND=noninteractive
8
8
ARG TARGETPLATFORM
9
-
10
9
# Change for other python; 3.11 may be too much right now
11
10
ARG PYTHON_VER=3.11
12
11
@@ -15,27 +14,17 @@ RUN apt update -y && apt install software-properties-common -y && add-apt-reposi
15
14
&& apt update && apt install python$PYTHON_VER wget sudo gedit unzip apt-utils curl \
16
15
python$PYTHON_VER-venv nano mesa-utils curl htop net-tools sshfs python$PYTHON_VER-distutils \
17
16
screen git python$PYTHON_VER-dev libpng-dev libqhull-dev libfreetype6-dev libfreetype6 \
18
- pkg-config python3.8-venv python3.8-dev -y
17
+ pkg-config python3.8-venv python3.8-dev apt-transport-https psmisc tmux gdb gitk autoconf locales gdebi \
18
+ terminator meld dos2unix -y
19
+
20
+ # Set the locale
21
+ RUN locale-gen en_US.UTF-8
19
22
20
23
# Install pips
21
24
# 3.8 is default at Ubuntu 20.04 and is fine for thing that do not work on newer versions
22
25
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python$PYTHON_VER && \
23
26
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.8
24
27
25
- # Default args, that can be changed during build
26
- ARG UID=1000
27
- ARG GID=1000
28
-
29
- # SSH
30
- RUN apt install openssh-server -y && sed -i 's/\( ^Port\) /#\1 /' /etc/ssh/sshd_config && \
31
- echo Port 2222 >> /etc/ssh/sshd_config && service ssh start
32
-
33
- # Add docker user with correct UID and GID; and add him to sudoers
34
- RUN groupadd -g $GID docker_users && useradd -l -u $UID -G $GID -md /home/docker -s /bin/bash docker && \
35
- echo 'docker:docker' | chpasswd && usermod -aG sudo docker && \
36
- sed -i.bkp -e 's/%sudo\s\+ ALL=(ALL\( :ALL\)\? )\s\+ ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers && \
37
- echo "docker ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
38
-
39
28
# VSCode
40
29
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ] ; then \
41
30
wget -O code.deb "https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-arm64" ; \
@@ -45,19 +34,33 @@ RUN if [ "$TARGETPLATFORM" = "linux/arm64" ] ; then \
45
34
46
35
RUN gdebi -n code.deb && rm code.deb
47
36
48
-
49
- # Pycharm
37
+ # PyCharm
50
38
ARG PYCHARM_VER=2024.3.4
51
39
RUN cd /opt && wget https://download.jetbrains.com/python/pycharm-community-$PYCHARM_VER.tar.gz && \
52
40
tar -xvf pycharm-community-$PYCHARM_VER.tar.gz && rm pycharm-community-$PYCHARM_VER.tar.gz && \
53
41
mv pycharm-community-$PYCHARM_VER pycharm && ln -s /opt/pycharm/bin/pycharm.sh /usr/bin/pycharm && chmod +x /usr/bin/pycharm
54
42
43
+
44
+ RUN apt remove python3-psutil -y
45
+ RUN python$PYTHON_VER -m pip install --upgrade pip && python$PYTHON_VER -m pip install "numpy<2" cython psutil open3d pybullet roboticstoolbox-python --ignore-installed --no-cache-dir
46
+
47
+ # Default args, that can be changed during build
48
+ ARG UID=1000
49
+ ARG GID=1000
50
+
51
+ # SSH
52
+ RUN apt install openssh-server -y && sed -i 's/\( ^Port\) /#\1 /' /etc/ssh/sshd_config && \
53
+ echo Port 2222 >> /etc/ssh/sshd_config && service ssh start
54
+
55
+ # Add docker user with correct UID and GID; and add him to sudoers
56
+ RUN groupadd -g $GID docker_users && useradd -l -u $UID -G $GID -md /home/docker -s /bin/bash docker && \
57
+ echo 'docker:docker' | chpasswd && usermod -aG sudo docker && \
58
+ sed -i.bkp -e 's/%sudo\s\+ ALL=(ALL\( :ALL\)\? )\s\+ ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers && \
59
+ echo "docker ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
60
+
55
61
RUN sudo ln -sf /usr/bin/python$PYTHON_VER /usr/local/bin/python && sudo ln -sf /usr/bin/python$PYTHON_VER /usr/local/bin/python3
56
62
RUN echo "export PATH=/usr/local/bin:$PATH" >> /home/docker/.bashrc
57
63
58
- # pybullet, robot_description, numpy, etc.
59
- RUN apt remove python3-psutil -y
60
- RUN python$PYTHON_VER -m pip install --user --upgrade pip && python$PYTHON_VER -m pip install psutil pybullet "numpy<2" scipy cython matplotlib roboticstoolbox-python --ignore-installed --no-cache-dir
61
64
RUN cd /home/docker && git clone https://github.com/rustlluk/pyCub.git && cd pyCub && git checkout dev && python$PYTHON_VER setup.py install --user
62
65
63
66
# Delete thingies from aptitude
0 commit comments