Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mob ros local build script #29

Open
MithunKinarullathil opened this issue Aug 31, 2022 · 0 comments
Open

Update mob ros local build script #29

MithunKinarullathil opened this issue Aug 31, 2022 · 0 comments
Assignees

Comments

@MithunKinarullathil
Copy link
Contributor

The local build script for mobros in the aws is old. Please update. The below one is an updated version I've received from @diasdm.

I've added a how-to on the confluence with a warning. Please remove the warning and attached script once you have updated the aws copy.

#!/bin/bash

set -e

ROS_DISTRO="noetic"
ROS_BUILDTOOLS_DOCKER_IMAGE="registry.cloud.mov.ai/devops/ros-buildtools-${ROS_DISTRO}:latest"
#making sure its in the working directory despite where its being called from.
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
cd "$SCRIPT_DIR"

IN_CONTAINER_MOUNT_POINT="/__w/workspace/src"

container_id=$(docker run -td -v "$(pwd)":$IN_CONTAINER_MOUNT_POINT "$ROS_BUILDTOOLS_DOCKER_IMAGE" sh)
echo "running in $container_id"
docker exec -t "$container_id" bash -c "\
set -e
python3 -m pip install mobros==1.0.1.22 --ignore-installed
python3 -m pip install \
  -i https://artifacts.cloud.mov.ai/repository/pypi-integration/simple --extra-index-url https://pypi.org/simple \
  mobtest==0.0.2.2 --ignore-installed
mkdir /opt/mov.ai/user/cache/ros/src/
ln -s /__w/workspace/src/* /opt/mov.ai/user/cache/ros/src/
export PYLOGLEVEL=DEBUG

export MOVAI_OUTPUT_DIR=/__w/workspace/src/packages
export PATH=/opt/mov.ai/.local/bin:$PATH

mobtest repo \"/__w/workspace/src\"
mobros raise --workspace=\"/__w/workspace/src\"
mobros build 
mobros pack --workspace=\"/__w/workspace/src\" 

" || true

echo "deleting container: $container_id"
docker rm -f "$container_id"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants