Getting Started
Download the latest ArtiVC in the release page
brew tap infuseai/artivc
brew install artivc
Here we describe how to configure credentials to access the remote backend. The principle of ArtiVC is “Use your tool’s config”. This allows you to access among the toolchains painlessly.
- Configure the
~/.ssh/config
Host myserver HostName myserver.hosts User myname IdentityFile ~/.ssh/id_ed25519
- Check if you can access the SSH server successfully
ssh myserver
For more information, please see the Remote Filesystem (SSH) backend
- Install the AWS CLI
- Configure the AWS CLI
aws configure
- Check current config
aws configure list
For more information, please see the AWS S3 backend
- Install the glcoud CLI
- Login the application default credential
gcloud auth application-default login
- Check the current credential is available
gcloud auth application-default print-access-token
For more information, please see the Google Cloud Storage backend
- Install the Azure CLI
- Login the Azure CLI
az login
- Check the login status
az account show
For more information, please see the Azure Blob Storage
-
Prepare your data. We put data in the folder
/tmp/artivc/workspace
mkdir -p /tmp/artivc/workspace cd /tmp/artivc/workspace
put the first version of data
echo a > a echo b > b echo c > c
-
Select a folder as the repository. Here we use
/tmp/artivc/repo
mkdir -p /tmp/artivc/repo
-
Init the workspace
# in /tmp/artivc/workspace avc init /tmp/artivc/repo
# in /tmp/artivc/workspace avc init <host>:path/to/repo
# in /tmp/artivc/workspace avc init s3://<bucket>/path/to/repo
# in /tmp/artivc/workspace avc init gs://<bucket>/path/to/repo
# in /tmp/artivc/workspace avc init https://<storageaccount>.blob.core.windows.net/<container>/path/to/repo
-
Push the data
avc push
-
See the commit log
avc log
-
Add more data to your repository
echo "hello" > hello avc status
push to the remote
avc push
-
Tag a version
avc tag v0.1.0
See the log
avc log
-
Go to the folder to clone repository
cd /tmp/artivc/ avc clone /tmp/artivc/repo another-workspace
cd /tmp/artivc/ avc clone <host>:path/to/repo
cd /tmp/artivc/ avc clone s3://<bucket>/path/to/repo
cd /tmp/artivc/ avc clone gs://<bucket>/path/to/repo
cd /tmp/artivc/ avc clone https://<storageaccount>.blob.core.windows.net/<container>/path/to/repo
Then the workspace is created, and the data is downloaded.
-
See the commit log
cd another-workspace/ avc log
-
Download the latest version
avc get -o /tmp/artivc/dl-latest /tmp/artivc/repo
avc get -o /tmp/artivc/dl-latest <host>:path/to/repo
avc get -o /tmp/artivc/dl-latest s3://<bucket>/path/to/repo
avc get -o /tmp/artivc/dl-latest gs://<bucket>/path/to/repo
avc get -o /tmp/artivc/dl-latest https://<storageaccount>.blob.core.windows.net/<container>/path/to/repo
check the content
ls /tmp/artivc/dl-latest
-
Or download the specific version
avc get -o /tmp/artivc/dl-v0.1.0 /tmp/artivc/repo@v0.1.0
avc get -o /tmp/artivc/dl-v0.1.0 <host>:path/to/repo@v0.1.0
avc get -o /tmp/artivc/dl-v0.1.0 s3://<bucket>/path/to/repo@v0.1.0
avc get -o /tmp/artivc/dl-v0.1.0 gs://<bucket>/path/to/repo@v0.1.0
avc get -o /tmp/artivc/dl-v0.1.0 https://<storageaccount>.blob.core.windows.net/<container>/path/to/repo@v0.1.0
check the content
ls /tmp/artivc/dl-v0.1.0