Skip to main content

Cloud Robot Model Sharing Middleware

Project description

CRMS CLI Installation

(0) Preparation

  • (0.1) PIP3 must be prepared.
sudo apt-get update -y
sudo apt-get install python3-pip
  • (0.2) Git must be prepared and configured
sudo apt-get install git
git config --global user.name “Your Name”
git config --global user.email your-email@xxx.com

(1) Install gcloud sdk

tar -xf google-cloud-cli-395.0.0-linux-x86_64.tar.gz
  • (1.3) Add path to .bashrc
./google-cloud-sdk/install.sh
  • (1.4) Setup Google Credential
    • Download Google Credential file (contact administrator of your Google Cloud Project)
      • Access permission of credential may be one of reading or writing (writing permission is necessary for a full test)
      • In case of reading permission, crms push command is not allowed (crms list/desc/pull commands are allowed)
    • Default credential for the reader of google cloud robot project is cloudrobotai-reader-cred.zip
      • unzip cloudrobotai-reader-cred.zip
    • Set GOOGLE_APPLICATION_CREDENTIALS into ~/.bashrc
export GOOGLE_APPLICATION_CREDENTIALS=”/path/to/<google-cloud-project-credential>.json”
  • (1.5) (optional) Set an environment variable (CRMS_META_REPOSITORY) for Google Firestore (Default='croudrobotai')
export CRMS_META_REPOSITORY=your-google-cloud-project

(2) Install crms from Github or PyPi

  • (2.0) pip upgrade is required before install crms
pip3 install --upgrade pip
[reboot if necessary, and try to install again]
  • (2.1) For full test : Download crms from Github and install with pip3
git clone https://github.com/jangcs/crms.git
cd crms
pip3 install .
  • (2.2) For just install (not for test): Install from PyPi
pip3 install crms

(3) Install DVC for Google Cloud Storage

pip3 install dvc[gs]
[reboot if necessary]

(4) Prepare ssh key for github

  • (4.1) SSH key has to be generated for secure connection with github.com
ssh-keygen
ssh-keyscan github.com > ~/.ssh/known_hosts
  • (4.2) And, the generated SSH key has to be registered to github.com in order to push a model
    • Login github.com -> Settings/SSH and GPG keys -> [New SSH Key] Button -> Copy the contents of ~/.ssh/id_rsa.pub to Key box -> [Add SSH Key] Button

(5) Test crms cli

  • (5.1) Modify the line in test.sh, 'crms conf git@github.com:IdToBeReplaced/...' to your github account
sed -i 's/IdToBeReplaced/<your_github_account>/g' test.sh
  • (5.2) Add a repository to github (ex. model_test)

    • Login github.com -> [New] Button -> Create a New Repository -> Enter a repository name(ex. model_test) -> [Create repository] Button
  • (5.3) Execute test.sh with the name of the added github repository

/test.sh model_test

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crms-2023.5.3.1340.tar.gz (5.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crms-2023.5.3.1340-py3-none-any.whl (6.1 MB view details)

Uploaded Python 3

File details

Details for the file crms-2023.5.3.1340.tar.gz.

File metadata

  • Download URL: crms-2023.5.3.1340.tar.gz
  • Upload date:
  • Size: 5.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for crms-2023.5.3.1340.tar.gz
Algorithm Hash digest
SHA256 cc6db081abdc56ee0f7f1d9b4f86e7641e4ed93001f8e3a80ed8173902782809
MD5 4d5e9bb544f386c32ce60a624a44cff1
BLAKE2b-256 abd0418b00d555c59cc02b88034f226d171c219a3c69cf1b773bdf233b15c6ec

See more details on using hashes here.

File details

Details for the file crms-2023.5.3.1340-py3-none-any.whl.

File metadata

  • Download URL: crms-2023.5.3.1340-py3-none-any.whl
  • Upload date:
  • Size: 6.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for crms-2023.5.3.1340-py3-none-any.whl
Algorithm Hash digest
SHA256 897da7224da9e7c910758199fc1c40289286215f37177effc05bd1853a8300f6
MD5 2f67b0f4efb2f0bc4106de217b0620a7
BLAKE2b-256 1cb3896ce9d05271d4eaf2fb0c3590c686befa987e042a518640e060fe41384c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page