MLH-Fellowship / cinder-benchmarks

Cinder is Meta's internal performance-oriented production version of CPython.
https://trycinder.com
Other
0 stars 0 forks source link

Update Terraform to automate host and server setup #13

Open emilyllim opened 1 year ago

emilyllim commented 1 year ago

Existing Terraform configuration should be updated to automatically install everything the instance needs to be set up as a runner.

Resources

emilyllim commented 1 year ago

Updates added to existing pull request #7

emilyllim commented 1 year ago

Updating the Terraform configuration

Before adding the setup commands, I tested the use of the user_data attribute by creating a test script that just echoes some text to a new file. Then I applied the updated Terraform configuration:

Then I SSH'ed into the instance. At first I was confused as to why I couldn't find the new file, but it was created at the root directory level, not the user (ubuntu) level.

emilyllim commented 1 year ago

Add a self-hosted runner

First, I manually followed the instructions in the GitHub documentation to add a self-hosted runner for the cinder_bench_runner repository:

emilyllim commented 1 year ago

Troubleshooting "Failed to fetch" errors

Check that the runner has been added successfully

Add commands to set up runner in a script

(Optional) removing the runner

emilyllim commented 1 year ago

Next step