Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions pglite/cibuild/build-all.sh

This file was deleted.

22 changes: 13 additions & 9 deletions pglite/cibuild/build-with-docker.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
#!/bin/bash
echo "======== build-with-dockerl.sh : $(pwd) =========="
echo "======== Building all PGlite prerequisites using Docker =========="
echo "======== build-with-docker.sh : $(pwd) =========="

trap 'echo caught interrupt and exiting;' INT
# these are all the elements that can be build as part of this project
ALL="contrib extra node linkweb postgres-pglite-dist"

# this is what we will actually build
WHAT=${*:-$ALL}

echo "======== Building PGlite prerequisites ${WHAT} using Docker =========="

# trap 'echo caught interrupt and exiting;' INT

source ./pglite/.buildconfig

Expand All @@ -12,17 +19,14 @@ if [[ -z "$SDK_VERSION" || -z "$PG_VERSION" ]]; then
exit 1
fi

# we are using a custom emsdk to build pglite wasm
# this is available as a docker image under electricsql/pglite-builder
IMG_NAME="electricsql/pglite-builder"
IMG_TAG="${PG_VERSION}_${SDK_VERSION}"

SDK_ARCHIVE="${SDK_ARCHIVE:-python3.13-wasm-sdk-Ubuntu-22.04.tar.lz4}"
WASI_SDK_ARCHIVE="${WASI_SDK_ARCHIVE:-python3.13-wasi-sdk-Ubuntu-22.04.tar.lz4}"

docker run \
--rm \
-e OBJDUMP=${OBJDUMP:-true} \
-e SDK_ARCHIVE \
-e WASI_SDK_ARCHIVE \
-e PGSRC=/workspace/postgres-src \
-e POSTGRES_PGLITE_OUT=/workspace/dist \
-v ./pglite/cibuild.sh:/workspace/cibuild.sh:rw \
Expand All @@ -34,4 +38,4 @@ docker run \
-v .:/workspace/postgres-src \
-v ./pglite/dist:/workspace/dist \
$IMG_NAME:$IMG_TAG \
bash ./cibuild/build-all.sh
bash /workspace/cibuild.sh $WHAT
38 changes: 0 additions & 38 deletions pglite/cibuild/manual-build-with-docker.sh

This file was deleted.