Skip to content

Commit

Permalink
Merge pull request #623 from oasisprotocol/matevz/fix/docker-musl-macos
Browse files Browse the repository at this point in the history
docker: Fallback sapphire-localnet to glibc
  • Loading branch information
matevz authored Sep 20, 2024
2 parents 2332dba + e12c76a commit c41077a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docker/sapphire-localnet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c41077a

Please sign in to comment.