Skip to content

Commit

Permalink
Remove old ECR public repositories (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie authored Sep 18, 2024
1 parent 022e4a5 commit a56eb7c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 74 deletions.
69 changes: 0 additions & 69 deletions infrastructure/core/ecr.tf
Original file line number Diff line number Diff line change
@@ -1,72 +1,3 @@
resource "aws_ecrpublic_repository" "public_gateway" {
repository_name = "public-gateway"
provider = aws.us-east-1

catalog_data {
about_text = "Somleng Public Gateway"
architectures = ["Linux"]
}
}

resource "aws_ecrpublic_repository" "client_gateway" {
repository_name = "client-gateway"
provider = aws.us-east-1

catalog_data {
about_text = "Somleng Client Gateway"
architectures = ["Linux"]
}
}

resource "aws_ecrpublic_repository" "media_proxy" {
repository_name = "media-proxy"
provider = aws.us-east-1

catalog_data {
about_text = "Somleng Media Proxy"
architectures = ["Linux"]
}
}

resource "aws_ecrpublic_repository" "opensips_scheduler" {
repository_name = "opensips-scheduler"
provider = aws.us-east-1

catalog_data {
about_text = "Somleng OpenSIPS Scheduler"
architectures = ["Linux"]
}
}

resource "aws_ecrpublic_repository" "gateway" {
repository_name = "gateway"
provider = aws.us-east-1

catalog_data {
about_text = "Somleng Gateway"
architectures = ["Linux"]

usage_text = <<EOF
# How to use this image
## Boostrap the Database
### Create a new OpenSIPS database for the specified gatewaay
```
$ docker run --rm -e PGPASSWORD="password" -e DATABASE_HOST="host.docker.internal" -e DATABASE_USERNAME="postgres" -e DATABASE_PASSWORD="password" -e DATABASE_PORT=5432 -e DATABASE_NAME="opensips_public_gateway" public.ecr.aws/somleng/gateway:bootstrap create_db public_gateway
$ docker run --rm -e PGPASSWORD="password" -e DATABASE_HOST="host.docker.internal" -e DATABASE_USERNAME="postgres" -e DATABASE_PASSWORD="password" -e DATABASE_PORT=5432 -e DATABASE_NAME="opensips_client_gateway" public.ecr.aws/somleng/gateway:bootstrap create_db client_gateway
```
### Add a new module
```
$ docker run --rm -e PGPASSWORD="password" -e DATABASE_HOST="host.docker.internal" -e DATABASE_USERNAME="postgres" -e DATABASE_PASSWORD="password" -e DATABASE_PORT=5432 -e DATABASE_NAME="opensips" -e DATABASE_MODULES="rtpproxy" public.ecr.aws/somleng/gateway:bootstrap add_module
```
EOF
}
}

module "public_gateway_ecr_repository" {
source = "../modules/ecr_repository"
name = "public-gateway"
Expand Down
5 changes: 0 additions & 5 deletions infrastructure/core/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,3 @@ terraform {
provider "aws" {
region = var.aws_region
}

provider "aws" {
region = "us-east-1"
alias = "us-east-1"
}

0 comments on commit a56eb7c

Please sign in to comment.