2025-07-06 21:59:52 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
# Example usage: ./build.sh v4.8.1 15
|
|
|
|
|
|
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
|
2025-07-11 17:26:51 +02:00
|
|
|
docker build --build-arg P2POOL_VERSION=$1 --build-arg GCC_VERSION=$2 -t p2pool_compiler_test_gcc_$1_$2 .
|
2025-07-06 21:59:52 +02:00
|
|
|
|
2025-07-11 17:26:51 +02:00
|
|
|
docker create --name p2pool_compiler_test_gcc_$1_$2_container p2pool_compiler_test_gcc_$1_$2:latest
|
2025-07-24 16:07:11 +02:00
|
|
|
docker cp p2pool_compiler_test_gcc_$1_$2_container:/p2pool/output.log gcc_$2_output.log
|
2025-07-11 17:26:51 +02:00
|
|
|
docker rm p2pool_compiler_test_gcc_$1_$2_container
|
2025-07-06 21:59:52 +02:00
|
|
|
|
2025-07-11 17:26:51 +02:00
|
|
|
docker image rm -f p2pool_compiler_test_gcc_$1_$2
|