Skip to content

Support Windows (Cortex CLI) #715

@deliahu

Description

@deliahu

The CLI currently gets stuck on user prompts (e.g. unable to input a valid email address). Not sure if it's something as simple as a trailing new line, or more complicated.

Setup

  1. build the CLI for windows, e.g. GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o cortex ./cli
  2. upload the CLI to a public bucket, e.g. aws s3 cp cortex s3://cortex-cli-david/cortex.exe
  3. spin up an instance
    a. use the "Microsoft Windows Server Base with Containers" AMI
    b. at least a "large" instance type
    c. at least 30gb storage
    d. the security group must allow incoming RDP traffic on port 3389
  4. download Microsoft Remote Desktop 10 from the mac app store
  5. once the instance is running, in the EC2 console, click Actions > Connect, then download the remote desktop file, and get the password (by uploading the .pem file for the key used to spin up the instance)
  6. open the rdp file by double-clicking from Finder, and paste the password to log in
  7. click the search icon, type "cmd" and click "Command Prompt"
  8. check docker is running with docker ps (there just be no errors)
  9. set telemetry endpoints
    a. SET CORTEX_TELEMETRY_SENTRY_DSN=https://***@sentry.io/***
    b. SET CORTEX_TELEMETRY_SEGMENT_WRITE_KEY=***
  10. download the CLI, e.g. curl https://cortex-cli-david.s3-us-west-2.amazonaws.com/cortex.exe --output cortex.exe
  11. run cortex.exe -h to check that the CLI runs
  12. run cortex.exe cluster up to spin up a cluster

Old cmd.exe notes

  • md .cortex
  • echo telemetry: false > .cortex/cli.yaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions