Skip to content

Commit

Permalink
docker build all PoC
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor committed Dec 16, 2024
1 parent bcef3df commit 78c4e86
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
14 changes: 14 additions & 0 deletions buildall.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 . .
Expand Down
10 changes: 5 additions & 5 deletions cibuild/build-without-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 78c4e86

Please sign in to comment.