Skip to content

Commit

Permalink
Use arm64 for media proxy (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Feb 22, 2024
1 parent 6c5c613 commit 6a7b17a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/media_proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
push: true
cache-from: type=gha,scope=${{ matrix.identifier }}
cache-to: type=gha,mode=max,scope=${{ matrix.identifier }}
platforms: linux/amd64,linux/arm64
tags: |
${{ env.ECR_REGISTRY }}/media-proxy:${{ matrix.image_tag }}
${{ env.ECR_REGISTRY }}/media-proxy:${{ env.IMAGE_TAG }}
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ services:
build:
context: components/media_proxy
image: media_proxy:latest
platform: linux/amd64
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
Expand Down
2 changes: 2 additions & 0 deletions infrastructure/modules/somleng_switch/media_proxy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ module media_proxy_container_instances {
associate_public_ip_address = true
cluster_name = aws_ecs_cluster.cluster.name
max_capacity = var.media_proxy_max_tasks * 2
architecture = "arm64"
instance_type = "t4g.small"
user_data = var.assign_media_proxy_eips ? [
{
path = "/opt/assign_eip.sh",
Expand Down

0 comments on commit 6a7b17a

Please sign in to comment.