From d08d7d953ae088ffaa815e049f624c6014301d35 Mon Sep 17 00:00:00 2001 From: David Wilkie Date: Fri, 20 Oct 2023 17:45:05 +0700 Subject: [PATCH] WIP --- components/gateway/Dockerfile | 4 ++-- components/testing/Dockerfile | 2 +- docker-compose.yml | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/components/gateway/Dockerfile b/components/gateway/Dockerfile index 296dad5c2..51c49ed25 100644 --- a/components/gateway/Dockerfile +++ b/components/gateway/Dockerfile @@ -1,6 +1,6 @@ # https://apt.opensips.org/packages.php?os=bookworm -FROM debian:bookworm-slim AS bootstrap +FROM public.ecr.aws/debian/debian:bookworm-slim AS bootstrap USER root @@ -30,7 +30,7 @@ CMD ["create_db"] # Build -FROM debian:bookworm-slim AS build +FROM public.ecr.aws/debian/debian:bookworm-slim AS build USER root diff --git a/components/testing/Dockerfile b/components/testing/Dockerfile index 031264c77..f14b70f54 100644 --- a/components/testing/Dockerfile +++ b/components/testing/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:latest +FROM public.ecr.aws/debian/alpine:latest RUN apk update && apk upgrade && apk add --update --no-cache sipp curl postgresql-client bind-tools diff --git a/docker-compose.yml b/docker-compose.yml index 6d07140bf..ebfcc19a4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,6 +16,7 @@ services: context: components/gateway target: bootstrap image: gateway:bootstrap + platform: linux/amd64 environment: DATABASE_USERNAME: "postgres" DATABASE_PASSWORD: @@ -30,6 +31,7 @@ services: context: components/gateway target: public_gateway image: public_gateway:latest + platform: linux/amd64 environment: DATABASE_URL: "postgres://postgres:@host.docker.internal:5432/opensips_public_gateway_test" FIFO_NAME: /opensips/fifo/public_gateway @@ -51,6 +53,7 @@ services: context: components/gateway target: client_gateway image: client_gateway:latest + platform: linux/amd64 environment: DATABASE_URL: "postgres://postgres:@host.docker.internal:5432/opensips_client_gateway_test" FIFO_NAME: /opensips/fifo/client_gateway @@ -70,6 +73,7 @@ services: build: context: components/media_proxy image: media_proxy:latest + platform: linux/amd64 extra_hosts: - "host.docker.internal:host-gateway" healthcheck: @@ -84,6 +88,7 @@ services: build: context: components/freeswitch image: freeswitch:latest + platform: linux/amd64 environment: FS_EXTERNAL_RTP_IP: "13.250.230.15" FS_ALTERNATIVE_RTP_IP: "18.141.245.230" @@ -103,6 +108,7 @@ services: build: context: components/app image: switch-app:latest + platform: linux/amd64 environment: AHN_CORE_HOST: freeswitch CALL_PLATFORM_STUB_RESPONSES: "true"