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

Mark GCP & AWS terraform experimental #522

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ resource "aws_instance" "build_nativelink_instance" {
sudo docker rm $(sudo docker ps -a -q) &&
sudo docker rmi $(sudo docker images -q) &&
`` &&
sudo mv /tmp/nativelink/deployment-examples/terraform/AWS/scripts/scheduler.json /root/scheduler.json &&
sudo mv /tmp/nativelink/deployment-examples/terraform/AWS/scripts/cas.json /root/cas.json &&
sudo mv /tmp/nativelink/deployment-examples/terraform/AWS/scripts/worker.json /root/worker.json &&
sudo mv /tmp/nativelink/deployment-examples/terraform/AWS/scripts/start_nativelink.sh /root/start_nativelink.sh &&
sudo mv /tmp/nativelink/deployment-examples/terraform/experimental_AWS/scripts/scheduler.json /root/scheduler.json &&
sudo mv /tmp/nativelink/deployment-examples/terraform/experimental_AWS/scripts/cas.json /root/cas.json &&
sudo mv /tmp/nativelink/deployment-examples/terraform/experimental_AWS/scripts/worker.json /root/worker.json &&
sudo mv /tmp/nativelink/deployment-examples/terraform/experimental_AWS/scripts/start_nativelink.sh /root/start_nativelink.sh &&
sudo chmod +x /root/start_nativelink.sh &&
sudo mv /tmp/nativelink/deployment-examples/terraform/AWS/scripts/nativelink.service /etc/systemd/system/nativelink.service &&
sudo mv /tmp/nativelink/deployment-examples/terraform/experimental_AWS/scripts/nativelink.service /etc/systemd/system/nativelink.service &&
sudo systemctl enable nativelink &&
sync
EOT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ is Active before moving onto running the dev plan.
PROJECT_ID=example-sandbox
DNS_ZONE=example-sandbox.example.com

cd deployment-examples/terraform/GCP/deployments/global
cd deployment-examples/terraform/experimental_GCP/deployments/global
terraform init
terraform apply -var gcp_project_id=$PROJECT_ID -var gcp_dns_zone=$DNS_ZONE
# Print google name servers, ex: ns-cloud-XX.googledomains.com.
Expand All @@ -51,14 +51,14 @@ Setup and deploy the `native-link` servers and dependencies. The general
configuration is laid out similar to
[Native Link AWS Terraform Diagram](https://user-images.githubusercontent.com/1831202/176286845-ff683266-3f23-489c-b58a-3eda49e484be.png)
from
[AWS deployment example](https://github.com/TraceMachina/native-link/blob/main/deployment-examples/terraform/AWS/README.md).
[AWS deployment example](https://github.com/TraceMachina/native-link/blob/main/deployment-examples/terraform/experimental_AWS/README.md).
Deployment has additional flags in `variables.tf` for controlling machine
type, prefixing resource name space for multiple deployments and other
template parameters.

```sh
PROJECT_ID=example-sandbox
cd deployment-examples/terraform/GCP/deployments/dev
cd deployment-examples/terraform/experimental_GCP/deployments/dev
terraform init
terraform apply -var gcp_project_id=$PROJECT_ID
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ resource "google_compute_instance" "build_instance" {
cargo build --release --bin cas &&
sudo mv /tmp/nativelink/target/release/cas /usr/local/bin/nativelink &&
`` &&
cd /tmp/nativelink/deployment-examples/terraform/GCP/module/scripts &&
cd /tmp/nativelink/deployment-examples/terraform/experimental_GCP/module/scripts &&
sudo mv ./bb_browser_config.json /root/bb_browser_config.json &&
sudo mv ./browser_proxy.json /root/browser_proxy.json &&
sudo mv ./scheduler.json /root/scheduler.json &&
Expand Down
Loading