Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Docker image based on the official Python distro image on Alpine Linux, and VSS-CLI and PyVSS in the latest version.

Usage

If you do not have a Python setup you can try using vss-cli via a container using Docker.

Code Block
languagebash
linenumbersfalse
docker run uofteis/vss-cli

...

Code Block
languagebash
linenumbersfalse
# Uwith access oftoken Tand curl https://gitlab-ee.eis.utoronto.ca/vss/vss-cli/raw/master/docker/docker-vss-cli > vss-cli
chmod +x vss-cli

# Public
curl https://raw.githubusercontent.com/EIS-ITS/vss-cli/main/docker/docker-vss-cli > vss-cli
chmod +x vss-cli

The following example shows how to pass environment variables for pre-configuration:

  • VSS_TOKEN: Already generated and valid access token.

  • VSS_USER: Username to access the API and other related services. (optional)

  • VSS_USER_PASS: Username password. (optional)

  • VSS_OUTPUT: CLI default output. Either yaml, json or table. (optional)

  • VSS_ENDPOINT: API endpoint. (optional)

Code Block
languagebash
linenumbersfalse
export VSS_TOKEN=<long-string>
vss-cli configure ls

ENDPOINT                           USER    PASS      TOKEN                    SOURCE
---------------------------------  ------  --------  -----------------------  -----------
https://cloud-api.eis.utoronto.ca                    eyJhbGciOi..._CZuStX4WE  envpython 3.7.x
docker run -it -v `pwd`:/data -e VSS_API_TOKEN=token_here uofteis/pyvss

# env file containing either VSS_API_USER and VSS_API_USER_PASS or VSS_API_TOKEN
docker run -it -v `pwd`:/data --env-file vss.env uofteis/pyvss