Skip to content

Instantly share code, notes, and snippets.

View ZekunZh's full-sized avatar

Zekun ZHANG ZekunZh

  • Gleamer.ai
  • PARIS, FRANCE
  • 04:09 (UTC +02:00)
View GitHub Profile

Install docker

sudo apt-get update

sudo apt-get install \
    ca-certificates \
    curl \
    gnupg \
 lsb-release

Create EC2 instances

AmazonEC2FullAccess
AWSQuickSightListIAM
AmazonS3FullAccess
IAMUserChangePassword
AmazonRoute53FullAccess
curl -L https://aka.ms/InstallAzureCli | bash

Source

Need to add file:// before the local folder path

pip install mypackage --no-index --find-links file:///your/local/folder

Install SDKManager on Ubuntu Host

Download sdkmanager from https://developer.nvidia.com/nvidia-sdk-manager

sudo apt install ./sdkmanager-[version].deb
sdkmanager --query noninteractive --logintype devzone
sdkmanager --cli install --logintype devzone --product Jetson --host --target P2888-0001 --targetos Linux --version 4.4 --flash all
sudo -S apt-get update && sudo -S apt-get check
sudo umount /data/gleamer_blobs_premium

Careful ! The command is umount, not unmount !

az storage blob upload-batch -d tmp --account-name glmaidata -s /home/ubuntu/prod_zekun/ai-gleamer/ai-mapping

There are three ways to install current BV image to Jetson’s internal storage:

  1. store docker tar in external storage (like USB disk), load the tar directly to internal storage with

docker load --input /path/to/gleamer_BV.tar

  1. store docker tar on the network (local or public) and generate a URL to download the tar. Then stream the tar and load on the fly. Here is a demo:

curl "https://url/to/ubuntu.tar" | docker load

If your docker file looks like this:

FROM yourbase
....
ENTRYPOINT ["python", <yourScript>]

Then you can just run the script by running the container itself: