Skip to content

Commit

Permalink
Removed flag --ffast-math from Dockerfile (#36)
Browse files Browse the repository at this point in the history
feat: added colcon and git completition to .bashrc file
  • Loading branch information
dfbakin authored Jul 9, 2024
1 parent b89b867 commit 403635c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ENV CUDA_HOME="/usr/local/cuda"
ENV PATH="/usr/local/cuda/bin:${PATH}"
ENV LD_LIBRARY_PATH="/usr/local/cuda/lib64:${LD_LIBRARY_PATH}"

ENV FLAGS="-O3 -ffast-math -Wall -march=armv8.2-a+simd+crypto+predres -mtune=cortex-a57"
ENV FLAGS="-O3 -Wall -march=armv8.2-a+simd+crypto+predres -mtune=cortex-a57"

RUN apt-get update -q \
&& apt-get install -yq --no-install-recommends \
Expand All @@ -29,7 +29,7 @@ RUN apt-get update -q \

FROM --platform=linux/amd64 ubuntu:20.04 AS handy-base-amd64

ENV FLAGS="-O3 -ffast-math -Wall"
ENV FLAGS="-O3 -Wall"

FROM handy-base-${TARGETARCH} AS handy-common

Expand Down Expand Up @@ -352,8 +352,13 @@ RUN printf "export CC='${CC}'\n" >> ${HOME}/.bashrc \
&& printf "export CXXFLAGS='${CXXFLAGS}'\n" >> ${HOME}/.bashrc \
&& printf "export RCUTILS_LOGGING_BUFFERED_STREAM=1\n" >> ${HOME}/.bashrc \
&& printf "export RCUTILS_CONSOLE_OUTPUT_FORMAT='[{severity}:{time}] {message}'\n" >> ${HOME}/.bashrc \
&& printf "source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash\n" >> ${HOME}/.bashrc \
&& printf "source /usr/share/bash-completion/completions/git\n" >> ${HOME}/.bashrc \
&& ln -sf /usr/bin/clang-format-${CLANG_VERSION} /usr/bin/clang-format


### SETUP ENTRYPOINT

WORKDIR /handy
ENTRYPOINT ["/bin/bash", "-l", "-c"]
CMD ["trap : TERM INT; sleep infinity & wait"]
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
services:
handy:
image: "registry.robotics-lab.ru/handy:0.7.2"
image: "registry.robotics-lab.ru/handy:0.7.3"
container_name: "${CONTAINER_NAME:-handy-${USER}}"
networks: [default]
privileged: true
ports:
- "${FOXGLOVE_PORT:-8765}:8765"
volumes:
- "${PWD}:/handy"
- "/home/bakind/handy:/handy"
- "/dev:/dev"

build:
Expand Down

0 comments on commit 403635c

Please sign in to comment.