Skip to content

Commit 39a3684

Browse files
Saurav AgarwalSaurav Agarwal
authored andcommitted
cleanup docker env variables
1 parent c5fc712 commit 39a3684

File tree

7 files changed

+6
-9
lines changed

7 files changed

+6
-9
lines changed

utils/docker/base_images/ubuntu22.04/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ RUN mkdir download; \
7171
unzip download/libtorch.zip -d /opt/; \
7272
rm -r download
7373

74+
ENV LD_LIBRARY_PATH="/usr/local/lib:/opt/libtorch/lib"
7475
ENV Torch_DIR=/opt/libtorch/share/cmake/
7576

7677
COPY requirements_cpu.txt /opt/requirements.txt
@@ -80,4 +81,3 @@ RUN /opt/venv/bin/pip install --no-cache-dir -r /opt/requirements.txt
8081
ENV VENV_PATH=/opt/venv
8182

8283
COPY .bashrc /root/.bashrc
83-
RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc

utils/docker/base_images/ubuntu22.04/arm64-ros2.Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ RUN mkdir download; \
7676
unzip download/libtorch.zip -d /opt/; \
7777
rm -r download
7878

79-
RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /etc/environment
79+
ENV LD_LIBRARY_PATH="/usr/local/lib:/opt/libtorch/lib"
8080
ENV Torch_DIR=/opt/libtorch/share/cmake/
8181

8282
COPY requirements_cpu.txt /opt/requirements.txt
@@ -87,4 +87,3 @@ RUN /opt/venv/bin/pip install --no-cache-dir catkin_pkg empy==3.3.4 lark
8787
ENV VENV_PATH=/opt/venv
8888

8989
COPY .ros.humble.bashrc /root/.bashrc
90-
RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc

utils/docker/base_images/ubuntu22.04/cuda-ros2.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ RUN mkdir download; \
7575
unzip download/libtorch.zip -d /opt/; \
7676
rm -r download
7777

78+
ENV LD_LIBRARY_PATH="/usr/local/lib:/opt/libtorch/lib"
7879
ENV Torch_DIR=/opt/libtorch/share/cmake/
7980

8081
COPY requirements.txt /opt/requirements.txt
@@ -85,4 +86,3 @@ RUN /opt/venv/bin/pip install --no-cache-dir catkin_pkg empy==3.3.4 lark tomli
8586
ENV VENV_PATH=/opt/venv
8687

8788
COPY .ros.humble.bashrc /root/.bashrc
88-
RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc

utils/docker/base_images/ubuntu22.04/cuda.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ RUN mkdir download; \
7171
unzip download/libtorch.zip -d /opt/; \
7272
rm -r download
7373

74+
ENV LD_LIBRARY_PATH="/usr/local/lib:/opt/libtorch/lib"
7475
ENV Torch_DIR=/opt/libtorch/share/cmake/
7576

7677
COPY requirements.txt /opt/requirements.txt
@@ -80,4 +81,3 @@ RUN /opt/venv/bin/pip install --no-cache-dir -r /opt/requirements.txt
8081
ENV VENV_PATH=/opt/venv
8182

8283
COPY .bashrc /root/.bashrc
83-
RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc

utils/docker/base_images/ubuntu22.04/ros2.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ RUN mkdir download; \
7676
unzip download/libtorch.zip -d /opt/; \
7777
rm -r download
7878

79+
ENV LD_LIBRARY_PATH="/usr/local/lib:/opt/libtorch/lib"
7980
ENV Torch_DIR=/opt/libtorch/share/cmake/
8081

8182
COPY requirements_cpu.txt /opt/requirements.txt
@@ -86,4 +87,3 @@ RUN /opt/venv/bin/pip install --no-cache-dir catkin_pkg empy==3.3.4 lark tomli
8687
ENV VENV_PATH=/opt/venv
8788

8889
COPY .ros.humble.bashrc /root/.bashrc
89-
RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc

utils/docker/base_images/ubuntu24.04/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,3 @@ RUN /opt/venv/bin/pip install --no-cache-dir -r /opt/requirements.txt
7272
ENV VENV_PATH=/opt/venv
7373

7474
COPY .bashrc /root/.bashrc
75-
RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc

utils/docker/base_images/ubuntu24.04/arm64-ros2.Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ RUN mkdir download; \
7070
unzip download/libtorch.zip -d /opt/; \
7171
rm -r download
7272

73-
RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /etc/environment
73+
ENV LD_LIBRARY_PATH="/usr/local/lib:/opt/libtorch/lib"
7474
ENV Torch_DIR=/opt/libtorch/share/cmake/
7575

7676
COPY requirements_cpu.txt /opt/requirements.txt
@@ -81,4 +81,3 @@ RUN /opt/venv/bin/pip install --no-cache-dir catkin_pkg lark
8181
ENV VENV_PATH=/opt/venv
8282

8383
COPY .ros.jazzy.bashrc /root/.bashrc
84-
RUN echo 'LD_LIBRARY_PATH=/usr/local/lib:/opt/libtorch/lib:${LD_LIBRARY_PATH}' >> /root/.bashrc

0 commit comments

Comments
 (0)