Kenobi: Always with you
Kenobi is a helper to set up and change our graphics tools and prerequisites.
It's aimed at being a "fresh system setup" tool first, but will stay in the background to help out with future changes when needed.
First steps
-
Download and Install 1Password from here: https://1password.com/downloads/mac/
-
Get invited to our 1password team by contacting your editor.
-
Set your TR email as your primary email on your github account. Then get added to our TR org Github by completing this form here.
-
Create a personal access token on Github. Follow steps 2 and 3 here.
-
Go into your 1password account, click on the
Kenobi
tag on the left, and download all four private files to your Downloads folder:- reuters-graphics-secrets.json
- reuters-graphics-google.json
- aws-credentials
- aws-config
-
Save the init.sh script from here file to your Downloads folder:
- Click the "Raw" button to open the raw file.
- Press
Cmd + S
and save the file to your Downloads folder
-
Open your terminal and run the init.sh script using this command:
bash ~/Downloads/init.sh
-
The above script will:s
- Install Homebrew
- Install node
- Install n, a node version manager.
- Set your default node version to 14 (which is what our rig uses)
- Install yarn
- Install Kenobi
- Install bluprint
-
Now that you're setup with all Kenobi needs, you can run these commands:
kenobi setup-creds
kenobi setup-rig
Usage
Once you are through the "First steps" above, use the CLI commands as below:
Description
Kenobi: Reuters Graphics helper
Usage
$ kenobi <command> [options]
Available Commands
hello Say hello!
setup-rig Setup our main graphics rig.
update-server-password Update graphics server password
install-app Installs the selected application on your Mac.
setup-creds Setup your credentials for accessing the graphics server and AWS bucket.
For more info, run any command with the `--help` flag
$ kenobi hello --help
$ kenobi setup-rig --help
Options
-v, --version Displays current version
-h, --help Displays this message