Skip to content

Examples expect non-existent env vars #199

@teutat3s

Description

@teutat3s

While trying out the examples in this repo I noticed that they depend on TRITON_* environment variables, that don't get exported by node-triton (yet?).

❯ triton --version
Triton CLI 7.15.1
https://github.com/joyent/node-triton
❯ triton env
# triton
export TRITON_PROFILE="dc-1-example"
# docker
export DOCKER_CERT_PATH=/home/teutat3s/.config/triton/docker/example@dc-1_api_example_com
export DOCKER_HOST=tcp://dc-1.docker.example.com:2376
export DOCKER_TLS_VERIFY=1
export COMPOSE_HTTP_TIMEOUT=300
# smartdc
export SDC_URL="https://dc-1.docker.example.com"
export SDC_ACCOUNT="example"
unset SDC_USER
export SDC_KEY_ID="..."
unset SDC_TESTING
# Run this command to configure your shell:
#     eval "$(triton env)"

As one can see, only TRITON_PROFILE gets set here.

Should I create a PR to fix this and change the env vars in the examples to SDC_* variables?
Or am I missing something, maybe the addition of these TRITON_* env vars is still planned?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions