Skip to content

Commit

Permalink
Merge pull request #12 from juraph-dev/deps_bump
Browse files Browse the repository at this point in the history
Deps bump. Add a few scripts.
  • Loading branch information
juraph-dev authored Apr 23, 2024
2 parents 76700bb + b4db9e6 commit 896e998
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ros:humble-ros-base

# Add ornis user
RUN useradd -ms /bin/bash ornis
WORKDIR /home/ornis
WORKDIR /home/ornis/ornis_ws/ornis/

RUN apt-get update \
&& apt-get upgrade -y \
Expand Down
2 changes: 2 additions & 0 deletions docker/docker_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env sh
docker build -t ornis_docker .
5 changes: 5 additions & 0 deletions docker/docker_launch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh

docker container stop ornis_docker
docker container rm ornis_docker
docker run --network=host --ipc=host --pid=host --privileged --ulimit nofile=1024:2056 --env="DISPLAY" -it -v /dev/shm:/dev/shm -v ~/ros2_ws/ornis_ws:/home/ornis/ornis_ws:Z --name ornis_docker ornis_docker
17 changes: 17 additions & 0 deletions tools/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

if [[ -z "$PREFIX" ]]; then
PREFIX="/usr/local"
# $var is empty, do what you want
fi


echo "Installing ornis to $PREFIX/bin"

cd "$(dirname "$0")"

if ./compile.sh ; then
echo "Copying file"
sudo cp ../../build/ornis/ornis $PREFIX/bin
fi
echo "Installation complete!"

0 comments on commit 896e998

Please sign in to comment.