Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronYoung5 committed Nov 12, 2023
1 parent ff3ae40 commit 7af1cab
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion atk.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ROS_DISTRO=humble

DEFAULT_APT_DEPENDENCIES=" bash vim git git-lfs python3-pip "
DEFAULT_APT_DEPENDENCIES="bash vim git git-lfs python3-pip"
DEFAULT_PIP_REQUIREMENTS=""
4 changes: 2 additions & 2 deletions atk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
USER_UID: "${USER_UID:-1000}"
USER_GID: "${USER_GID:-1000}"
APT_DEPENDENCIES: "${DEFAULT_APT_DEPENDENCIES:-}"
PIP_REQUIREMENTS: "${DEFAULT_APT_REQUIREMENTS:-}"
PIP_REQUIREMENTS: "${DEFAULT_PIP_REQUIREMENTS:-}"
working_dir: "/home/${COMPOSE_PROJECT_NAME}/${COMPOSE_PROJECT_NAME}"
volumes:
- "./:/home/${COMPOSE_PROJECT_NAME}/${COMPOSE_PROJECT_NAME}"
Expand All @@ -53,7 +53,7 @@ services:
IMAGE_TAG: "22.04"
USER_GROUPS: "dialout video"
USER_SHELL_ADD_ONS: ". /home/${COMPOSE_PROJECT_NAME}/${COMPOSE_PROJECT_NAME}/workspace/install/setup.bash"
PIP_REQUIREMENTS: "tensorrt"
PIP_REQUIREMENTS: "${DEFAULT_APT_DEPENDENCIES} tensorrt"
ROSDEP_METAPACKAGE: "art_dev_meta"
working_dir: "/home/${COMPOSE_PROJECT_NAME}/${COMPOSE_PROJECT_NAME}/workspace"
art5:
Expand Down
6 changes: 3 additions & 3 deletions docker/common/common.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
# Install dependencies
ARG APT_DEPENDENCIES=""
RUN apt-get update && \
[[ -z "${APT_DEPENDENCIES// /}" ]] || apt-get install --no-install-recommends -y ${APT_DEPENDENCIES} && \
[ -z "${APT_DEPENDENCIES}" ] || apt-get install --no-install-recommends -y ${APT_DEPENDENCIES} && \
apt-get clean && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*

# Update apt such that it never runs without --no-install-recommends
RUN apt-config dump | grep -we Recommends -e Suggests | sed s/1/0/ | sudo tee /etc/apt/apt.conf.d/999norecommend

# Install python packages
ARG PIP_REQUIREMENTS=""
RUN [[ -z "${PIP_REQUIREMENTS// /}" ]] || pip install --no-cache-dir ${PIP_REQUIREMENTS}
RUN [ -z "${PIP_REQUIREMENTS}" ] || pip install --no-cache-dir ${PIP_REQUIREMENTS}

# Update shell config
ARG DEFAULT_SHELL_ADD_ONS="export TERM=xterm-256color"
ARG USER_SHELL_ADD_ONS=""
RUN echo "${DEFAULT_SHELL_ADD_ONS}" >> ${USERSHELLPROFILE} && \
sed -i 's/#force_color_prompt=yes/force_color_prompt=yes/' ${USERSHELLPROFILE} && \
[[ -z "${USER_SHELL_ADD_ONS// /}" ]] || echo "${USER_SHELL_ADD_ONS}" >> ${USERSHELLPROFILE}
[ -z "${USER_SHELL_ADD_ONS}" ] || echo "${USER_SHELL_ADD_ONS}" >> ${USERSHELLPROFILE}
2 changes: 1 addition & 1 deletion docker/snippets/rosdep.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ COPY ${ROS_WORKSPACE}/src /tmp/workspace/src
RUN . ${ROS_INSTALL_PREFIX}/setup.sh && \
cd /tmp/workspace && \
apt-get update && \
if [[ -z "${ROSDEP_METAPACKAGE}" ]]; then \
if [ -z "${ROSDEP_METAPACKAGE}" ]; then \
ROSDEP_FROM_PATHS="src"; \
else \
ROSDEP_FROM_PATHS=$(colcon list --packages-up-to ${ROSDEP_METAPACKAGE} | awk '{print $2}' | tr '\n' ' '); \
Expand Down

0 comments on commit 7af1cab

Please sign in to comment.