Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Windows (Cortex CLI) #715

Closed
deliahu opened this issue Dec 31, 2019 · 0 comments · Fixed by #1476
Closed

Support Windows (Cortex CLI) #715

deliahu opened this issue Dec 31, 2019 · 0 comments · Fixed by #1476
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@deliahu
Copy link
Member

deliahu commented Dec 31, 2019

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants