diff --git a/buildall.dockerfile b/buildall.dockerfile index b6ed47ef..c1378ea1 100644 --- a/buildall.dockerfile +++ b/buildall.dockerfile @@ -2,6 +2,20 @@ ARG PG_VERSION=git ARG SDK_VERSION=3.1.72.3bi FROM electricsql/pglite-builder:${PG_VERSION}_${SDK_VERSION} +ENV NODE_VERSION=20.18.1 +RUN apt update && apt install -y curl git build-essential libreadline-dev zlib1g-dev bison flex file +RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash +ENV NVM_DIR=/root/.nvm +RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION} +RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION} +RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION} +ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}" +RUN node --version +RUN npm --version +RUN corepack enable pnpm + +# RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash - + WORKDIR /workspace COPY . . diff --git a/cibuild/build-without-docker.sh b/cibuild/build-without-docker.sh index ced40089..aaa4a65f 100644 --- a/cibuild/build-without-docker.sh +++ b/cibuild/build-without-docker.sh @@ -12,10 +12,10 @@ if [[ -z "$SDK_VERSION" || -z "$PG_VERSION" ]]; then exit 1 fi -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}" -OBJDUMP=${OBJDUMP:-true} +export IMG_NAME="electricsql/pglite-builder" +export IMG_TAG="${PG_VERSION}_${SDK_VERSION}" +export SDK_ARCHIVE=python3.13-wasm-sdk-Ubuntu-22.04.tar.lz4 +export WASI_SDK_ARCHIVE=python3.13-wasi-sdk-Ubuntu-22.04.tar.lz4 +export OBJDUMP=${OBJDUMP:-true} ./cibuild/build-all.sh \ No newline at end of file