Skip to content

Commit

Permalink
fix: build supautils from source
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Nov 10, 2023
1 parent 471a260 commit f57c806
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions docker/orioledb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -754,20 +754,18 @@ RUN checkinstall -D --install=no --fstrans=no --backup=no --pakdir=/tmp --nodoc
####################
# internal/supautils.yml
####################
FROM base as supautils
# Download package archive
ARG supautils_release
ADD "https://github.com/supabase/supautils/releases/download/v${supautils_release}/supautils-v${supautils_release}-pg${postgresql_major}-${TARGETARCH}-linux-gnu.deb" \
/tmp/supautils.deb

FROM base as supautils-source
FROM ccache as supautils-source
ARG supautils_release
ARG supautils_release_checksum
ADD --checksum=${supautils_release_checksum} \
"https://github.com/supabase/supautils/archive/refs/tags/v${supautils_release}.tar.gz" \
/tmp/supautils.tar.gz
RUN tar -xvf /tmp/supautils.tar.gz -C /tmp && \
rm -rf /tmp/supautils.tar.gz
# Install build dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
libicu-dev \
&& rm -rf /var/lib/apt/lists/*
# Build from source
WORKDIR /tmp/supautils-${supautils_release}
RUN --mount=type=cache,target=/ccache,from=public.ecr.aws/supabase/postgres:ccache \
Expand Down Expand Up @@ -820,7 +818,7 @@ COPY --from=hypopg-source /tmp/*.deb /tmp/
COPY --from=pg_repack-source /tmp/*.deb /tmp/
COPY --from=pgvector-source /tmp/*.deb /tmp/
COPY --from=pg_tle-source /tmp/*.deb /tmp/
COPY --from=supautils /tmp/*.deb /tmp/
COPY --from=supautils-source /tmp/*.deb /tmp/

####################
# Build final image
Expand Down

0 comments on commit f57c806

Please sign in to comment.