Skip to content

Test Containers

Joe Abraham edited this page May 18, 2025 · 7 revisions

Extension of test containers

Build Command

./mvnw clean install -DskipTests -Pdocker-build -Ddocker.verbose=true

Build docker manually

Coordinator

cd $PRESTO_TOP/docker
cp ../presto-server/target/presto-server-0.292-SNAPSHOT.tar.gz .
cp ../presto-cli/target/presto-cli-0.292-SNAPSHOT-executable.jar .
docker build -t "presto-coordinator:latest" --build-arg "PRESTO_VERSION=0.292-SNAPSHOT" .

Native Dependency

cd $PRESTO_TOP/presto-native-execution
make clean
docker build -t presto-native-dependency:latest -f \
scripts/dockerfiles/ubuntu-22.04-dependency.dockerfile . \
--progress=plain

Worker

cd $PRESTO_TOP/presto-native-execution
make clean
docker build -t "presto-worker:latest" \
  --build-arg BUILD_TYPE="Release" \
  --build-arg DEPENDENCY_IMAGE="presto-native-dependency:latest" \
  --build-arg EXTRA_CMAKE_FLAGS="-DPRESTO_ENABLE_TESTING=OFF -DPRESTO_ENABLE_PARQUET=ON -DPRESTO_ENABLE_S3=ON" \
  --build-arg NUM_THREADS=2 \
  --build-arg BASE_IMAGE="ubuntu:22.04" \
  --build-arg OSNAME=ubuntu \
  -f scripts/dockerfiles/prestissimo-runtime.dockerfile . \
  --progress=plain

Removing dangling images

docker rmi -f $(docker images -f "dangling=true" -q)

Podman machine creation

podman machine init --cpus 8 --memory 8192 --disk-size 100
podman machine init --cpus 8 --memory 16384 --disk-size 100
podman machine init --cpus 16 --memory 16384 --disk-size 100

Clone this wiki locally