Skip to content

Commit

Permalink
Make a fits CR deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed May 17, 2024
1 parent 149180e commit 3216a60
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,27 @@ module "hypercube" {
}
}

module "fits" {
source = "./modules/cloudrun"

name = "fits"
project = var.project
containers = tolist([
{
name = "fits",
image = "us-docker.pkg.dev/${var.project}/shared/harvard-fits:main",
memory = "2Gi"
cpu = "2000m"
}
])

providers = {
google = google.default
docker = docker.local
}
}


module "crayfits" {
source = "./modules/cloudrun"

Expand All @@ -101,14 +122,7 @@ module "crayfits" {
{
name = "crayfits",
image = "us-docker.pkg.dev/${var.project}/shared/fits:main",
port = 8888
liveness_probe = "/healthcheck"
},
{
name = "harvard-fits",
image = "us-docker.pkg.dev/${var.project}/shared/harvard-fits:main",
memory = "2Gi"
cpu = "2000m"
}
])
addl_env_vars = tolist([
Expand All @@ -125,7 +139,7 @@ cmdByMimeType:
- "POST"
- "-F"
- "datafile=@-"
- "http://localhost:8080/fits/examine"
- "https://fits-us-west1-byfdfb32sq-uw.a.run.app/fits/examine"
EOT
}
])
Expand Down

0 comments on commit 3216a60

Please sign in to comment.