From e12c76a1bd8ecb2aa1b1cb94ea003165fab2711a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matev=C5=BE=20Jekovec?= Date: Sat, 21 Sep 2024 02:39:07 +0800 Subject: [PATCH] fix: Fallback sapphire-localnet to glibc --- docker/sapphire-localnet/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker/sapphire-localnet/Dockerfile b/docker/sapphire-localnet/Dockerfile index 3c32daf2..d2441cef 100644 --- a/docker/sapphire-localnet/Dockerfile +++ b/docker/sapphire-localnet/Dockerfile @@ -79,8 +79,12 @@ RUN wget https://github.com/oasisprotocol/${PARATIME_NAME}-paratime/releases/dow # && rm -rf sapphire-paratime-git # Build sapphire-localnet -FROM postgres:16-alpine -RUN apk add --no-cache bash gcompat libseccomp jq binutils curl \ +#FROM postgres:16-alpine +#RUN apk add --no-cache bash gcompat libseccomp jq binutils curl \ +# && su -c "POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres /usr/local/bin/docker-entrypoint.sh postgres &" postgres +# Fallback to Debian-based image. See https://github.com/oasisprotocol/oasis-web3-gateway/issues/622 +FROM postgres:16 +RUN apt update && apt install -y bash libseccomp2 unzip jq binutils curl && apt clean \ && su -c "POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres /usr/local/bin/docker-entrypoint.sh postgres &" postgres # Docker-specific variables