Lecture 1 - AWS Academy and Virtulaztion using Docker
September 9, 2023
Note
Credit from Building Cloud Connected Robots (Robots 2021)
Note
Canvas shell
Note
The remote desktop using NICE DCV can be fragile in Firefox, Safari and Edge - please use Google Chrome.
1. Cloud 9 - virtual instance,
2. IAM - user management, role, policy
3. Simple Storage Service (S3)
4. robomaker, etc.
You should have access to AWS Canvas Console.
Better rename a nickname by clicking on ⋮ of the course tile
Note
AWS Academy uses Labrole to manage permission
Need create an EC2 instance
- click on the expansion icon to open a new tab
Docker is an open-source platform that enables developers to build, package, and deploy applications in a lightweight, portable manner. It utilizes containerization technology, allowing for easy isolation and scalability of software components. Docker simplifies the development and deployment process, promoting consistency and efficiency across different computing environments.
sudo apt update
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt install docker.io -y
sudo usermod -aG docker $USER
sudo reboot
Download here - download based on your processor
If you need to update your kernel, try to type the following command in your command window
Note
You may need to sudo apt install docker-compose -y
in build
Note
Follow the instruction on Github(Gan and Bai 2022)
aws ecr create-repository --repository-name mini-pupper-robot | grep repositoryUri
aws ecr create-repository --repository-name mini-pupper-simulation | grep repositoryUri
docker tag mini-pupper-robot:1.0 111122223333.dkr.ecr.your-region.amazonaws.com/mini-pupper-robot:1.0
docker push 111122223333.dkr.ecr.your-region.amazonaws.com/mini-pupper-robot:1.0
docker tag mini-pupper-simulation:1.0 111122223333.dkr.ecr.your-region.amazonaws.com/mini-pupper-simulation:1.0
docker push 111122223333.dkr.ecr.your-region.amazonaws.com/mini-pupper-simulation:1.0
export DISPLAY=:0
source /opt/ros/melodic/setup.bash
source ~/environment/mini-pupper-aws/simulation_ws/install/setup.bash
source ~/environment/mini-pupper-aws/robot_ws/install/setup.bash
# Add meshes to Gazbo paths
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:$(rospack find mini_pupper_simulation)/worlds/meshes
GAZEBO_MASTER_URI=http://ROBOMAKER_SIM_APP_IP:11345
ROS_IP=ROBOMAKER_SIM_APP_IP
ROS_MASTER_URI=http://ROBOMAKER_ROBOT_APP_IP:11311
wget https://raw.githubusercontent.com/lbaitemple/mangdang/main/install-resize.sh
bash ./install-resize.sh
sudo more /etc/fstab
wget https://raw.githubusercontent.com/lbaitemple/mangdang/main/process_swap.sh
sudo bash ./process_swap.sh 8192 /etc/fstab
Li Bai