Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Jun 27, 2024
1 parent 5e6cd39 commit 1859619
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 56 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/switch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ jobs:
build-args:
signalwire_token=${{ secrets.SIGNALWIRE_TOKEN }}
push: true
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
cache-from: type=gha,scope=${{ matrix.identifier }}-freeswitch
cache-to: type=gha,mode=max,scope=${{ matrix.identifier }}-freeswitch
tags: |
Expand All @@ -171,7 +171,7 @@ jobs:
with:
context: components/freeswitch_event_logger
push: true
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
cache-from: type=gha,scope=${{ matrix.identifier }}-freeswitch-event-logger
cache-to: type=gha,mode=max,scope=${{ matrix.identifier }}-freeswitch-event-logger
tags: |
Expand All @@ -184,7 +184,7 @@ jobs:
with:
context: components/app
push: true
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
cache-from: type=gha,scope=${{ matrix.identifier }}
cache-to: type=gha,mode=max,scope=${{ matrix.identifier }}
tags: |
Expand Down
2 changes: 1 addition & 1 deletion components/freeswitch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN cmake ..
RUN make
RUN make install

FROM public.ecr.aws/aws-cli/aws-cli:latest as aws-cli
FROM public.ecr.aws/aws-cli/aws-cli as aws-cli

FROM public.ecr.aws/docker/library/debian:bookworm-slim

Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ services:
build:
context: components/freeswitch
image: freeswitch:latest
platform: linux/amd64
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
Expand Down Expand Up @@ -127,6 +128,7 @@ services:
build:
context: components/app
image: switch-app:latest
platform: linux/amd64
depends_on:
redis:
condition: service_healthy
Expand Down
2 changes: 0 additions & 2 deletions infrastructure/modules/somleng_switch/switch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ module "switch_container_instances" {

app_identifier = var.switch_identifier
vpc = var.vpc
architecture = "arm64"
instance_type = "t4g.small"
instance_subnets = var.vpc.private_subnets
cluster_name = aws_ecs_cluster.cluster.name
max_capacity = var.switch_max_tasks * 2
Expand Down
5 changes: 1 addition & 4 deletions infrastructure/modules/somleng_switch/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@ terraform {
local = {
source = "hashicorp/local"
}
template = {
source = "hashicorp/template"
}
tls = {
source = "hashicorp/tls"
}
docker = {
source = "kreuzwerker/docker"
source = "kreuzwerker/docker"
}
}
required_version = ">= 0.13"
Expand Down
77 changes: 31 additions & 46 deletions infrastructure/staging/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1859619

Please sign in to comment.