Skip to content

Installation

Hayato Mizushima edited this page Sep 17, 2021 · 10 revisions

We introduce to install AutomanTools on local machine with minikube.

In the future, we will show you how to deploy GKE, Amazon EKS and AKS

Spec Recommendation

  • OS: Ubuntu 16.04
  • RAM: 4GB
  • Disk: 30GB

Provision

mkdir ~/kube && cd ~/kube
git clone https://github.com/tier4/AutomanTools.git
cd ~/kube/AutomanTools/setup/vagrant

Local Host

sudo apt update
sudo apt -y install software-properties-common && \
sudo apt-add-repository --yes --update ppa:ansible/ansible && \
sudo apt -y install ansible
ansible-playbook -i localhost automan-labeling.yaml

Vagrant

vagrant plugin install vagrant-disksize
vagrant up
vagrant ssh

Change user

su automan
  • ansible-playbook created new user
  • default password: automan

Prepare Docker Images

mkdir ~/kube && cd ~/kube
git clone https://github.com/tier4/AutomanTools.git
git clone https://github.com/tier4/automan-rosbag-analyzer.git
git clone https://github.com/tier4/automan-rosbag-extractor.git
git clone https://github.com/tier4/automan-rosbag2-analyzer.git
git clone https://github.com/tier4/automan-rosbag2-extractor.git
git clone https://github.com/tier4/automan-annotation-archiver.git

cd ~/kube/AutomanTools
docker build -t automan-labeling-app .
cd ~/kube/automan-rosbag-analyzer
docker build -t automan-rosbag-analyzer .
cd ~/kube/automan-rosbag-extractor
docker build -t automan-rosbag-extractor .
cd ~/kube/automan-rosbag2-analyzer
docker build -t automan-rosbag2-analyzer .
cd ~/kube/automan-rosbag2-extractor
docker build -t automan-rosbag2-extractor .
cd ~/kube/automan-annotation-archiver
docker build -t automan-annotation-archiver .

Launch

Setup dashboard

# Terminal1
sudo minikube start --vm-driver none
sudo minikube dashboard
# Terminal2
kubectl proxy --address=0.0.0.0 --accept-hosts='.*'

Deploy images

# Terminal3
cd ~/kube/AutomanTools/
sh bin/deploy.sh

Access

Automan (labeling tool)

# <AUTOMAN_URL>: vagrant default ip addr is 192.168.33.33
http://<AUTOMAN_URL>:30080/

Kubernetes dashboard

http://<AUTOMAN_URL>:8001/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/