alexis779 commited on
Commit
1f451ad
·
1 Parent(s): 81c7898

upgrade Debian and Genesis

Browse files
Files changed (4) hide show
  1. Dockerfile +18 -8
  2. debian.sources +2 -2
  3. packages.txt +15 -3
  4. requirements.txt +4 -2
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM debian:bookworm
2
 
3
  # add extra debian repos for proprietary packages
4
  COPY debian.sources /etc/apt/sources.list.d/debian.sources
@@ -12,7 +12,7 @@ RUN rm -rf /var/lib/apt/lists/*
12
  RUN apt clean
13
 
14
  # merge platform-specific and common headers from the kernel directories. Run uname -r to get the version
15
- ARG kernel=6.1.0-32
16
 
17
  RUN --mount=target=/tmp/merge_headers.sh,source=merge_headers.sh \
18
  /tmp/merge_headers.sh /usr/src/linux-headers-$kernel-cloud-amd64 /usr/src/linux-headers-$kernel-common /usr/src/linux-headers-$kernel
@@ -32,14 +32,24 @@ RUN ./$script --silent --kernel-source-path /usr/src/linux-headers-$kernel --ski
32
  # create user
33
  RUN useradd -m -s /bin/bash user
34
 
35
- RUN groupadd -g 105 render
36
-
37
  RUN usermod -aG video user
38
  RUN usermod -aG render user
39
 
40
  # next commands will be executed as the user
41
  USER user
42
- RUN python3 -m venv /home/user/venv
 
 
 
 
 
 
 
 
 
 
 
 
43
  RUN echo "cd $HOME" >> /home/user/.bashrc
44
  RUN echo ". /home/user/venv/bin/activate" >> /home/user/.bashrc
45
 
@@ -48,9 +58,6 @@ ENV PATH="/home/user/venv/bin:$PATH"
48
  RUN --mount=target=/tmp/requirements.txt,source=requirements.txt \
49
  pip install --no-cache-dir -r /tmp/requirements.txt
50
 
51
- # deploy application into target directory
52
- COPY --chown=user . /home/user/app
53
-
54
  WORKDIR /home/user/app
55
 
56
  # deploy robot configuration
@@ -58,6 +65,9 @@ RUN git clone -b main https://github.com/google-deepmind/mujoco_menagerie
58
  RUN cp -r mujoco_menagerie/trs_so_arm100 trs_so_arm100
59
  RUN rm -rf mujoco_menagerie
60
 
 
 
 
61
  ENV GRADIO_SERVER_NAME="0.0.0.0"
62
 
63
  CMD [ "python", "sim_gradio_video.py" ]
 
1
+ FROM debian:trixie
2
 
3
  # add extra debian repos for proprietary packages
4
  COPY debian.sources /etc/apt/sources.list.d/debian.sources
 
12
  RUN apt clean
13
 
14
  # merge platform-specific and common headers from the kernel directories. Run uname -r to get the version
15
+ ARG kernel=6.12.20
16
 
17
  RUN --mount=target=/tmp/merge_headers.sh,source=merge_headers.sh \
18
  /tmp/merge_headers.sh /usr/src/linux-headers-$kernel-cloud-amd64 /usr/src/linux-headers-$kernel-common /usr/src/linux-headers-$kernel
 
32
  # create user
33
  RUN useradd -m -s /bin/bash user
34
 
 
 
35
  RUN usermod -aG video user
36
  RUN usermod -aG render user
37
 
38
  # next commands will be executed as the user
39
  USER user
40
+
41
+ ENV HOME=/home/user
42
+ WORKDIR $HOME
43
+
44
+ # python version
45
+ ARG python_version=3.12.9
46
+
47
+ RUN curl https://pyenv.run | bash
48
+ ENV PATH="$HOME/.pyenv/bin:$PATH"
49
+ RUN pyenv install $python_version
50
+ ENV PATH="$HOME/.pyenv/versions/$python_version/bin:$PATH"
51
+
52
+ RUN python -m venv /home/user/venv
53
  RUN echo "cd $HOME" >> /home/user/.bashrc
54
  RUN echo ". /home/user/venv/bin/activate" >> /home/user/.bashrc
55
 
 
58
  RUN --mount=target=/tmp/requirements.txt,source=requirements.txt \
59
  pip install --no-cache-dir -r /tmp/requirements.txt
60
 
 
 
 
61
  WORKDIR /home/user/app
62
 
63
  # deploy robot configuration
 
65
  RUN cp -r mujoco_menagerie/trs_so_arm100 trs_so_arm100
66
  RUN rm -rf mujoco_menagerie
67
 
68
+ # deploy application into target directory
69
+ COPY --chown=user . /home/user/app
70
+
71
  ENV GRADIO_SERVER_NAME="0.0.0.0"
72
 
73
  CMD [ "python", "sim_gradio_video.py" ]
debian.sources CHANGED
@@ -1,13 +1,13 @@
1
  Types: deb
2
  # http://snapshot.debian.org/archive/debian/20250224T000000Z
3
  URIs: http://deb.debian.org/debian
4
- Suites: bookworm bookworm-updates
5
  Components: main non-free non-free-firmware
6
  Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
7
 
8
  Types: deb
9
  # http://snapshot.debian.org/archive/debian-security/20250224T000000Z
10
  URIs: http://deb.debian.org/debian-security
11
- Suites: bookworm-security
12
  Components: main
13
  Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
 
1
  Types: deb
2
  # http://snapshot.debian.org/archive/debian/20250224T000000Z
3
  URIs: http://deb.debian.org/debian
4
+ Suites: trixie trixie-updates
5
  Components: main non-free non-free-firmware
6
  Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
7
 
8
  Types: deb
9
  # http://snapshot.debian.org/archive/debian-security/20250224T000000Z
10
  URIs: http://deb.debian.org/debian-security
11
+ Suites: trixie-security
12
  Components: main
13
  Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
packages.txt CHANGED
@@ -2,8 +2,6 @@ git
2
  wget
3
  curl
4
  vim
5
- python3-pip
6
- python3-venv
7
  gcc
8
  make
9
  kmod
@@ -16,9 +14,23 @@ libxext6
16
  libvulkan-dev
17
  nvidia-vulkan-common
18
  vulkan-tools
 
19
  libxrender1
20
  libglib2.0-0
21
  libgl1
22
  libegl1
23
  ffmpeg
24
- procps
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  wget
3
  curl
4
  vim
 
 
5
  gcc
6
  make
7
  kmod
 
14
  libvulkan-dev
15
  nvidia-vulkan-common
16
  vulkan-tools
17
+ mesa-utils
18
  libxrender1
19
  libglib2.0-0
20
  libgl1
21
  libegl1
22
  ffmpeg
23
+ procps
24
+ build-essential
25
+ libssl-dev
26
+ zlib1g-dev
27
+ libbz2-dev
28
+ libreadline-dev
29
+ libsqlite3-dev
30
+ libncursesw5-dev
31
+ xz-utils
32
+ tk-dev
33
+ libxml2-dev
34
+ libxmlsec1-dev
35
+ libffi-dev
36
+ liblzma-dev
requirements.txt CHANGED
@@ -1,5 +1,7 @@
1
- slobot==0.1.7
2
 
3
- https://github.com/ompl/ompl/releases/download/prerelease/ompl-1.6.0-cp311-cp311-manylinux_2_28_x86_64.whl # should match python version
 
 
4
 
5
  git+https://github.com/huggingface/lerobot.git
 
1
+ slobot==0.1.8
2
 
3
+ git+https://github.com/Genesis-Embodied-AI/Genesis.git
4
+
5
+ https://github.com/ompl/ompl/releases/download/prerelease/ompl-1.6.0-cp312-cp312-manylinux_2_28_x86_64.whl # should match python version
6
 
7
  git+https://github.com/huggingface/lerobot.git