Build scripts: use unique names for temp containers

This commit is contained in:
SChernykh
2025-07-11 17:26:51 +02:00
parent 33b8a500fe
commit 27a0cc9bb1
11 changed files with 55 additions and 55 deletions
+5 -5
View File
@@ -4,10 +4,10 @@
cd "$(dirname "$0")"
docker build --build-arg P2POOL_VERSION=$1 --build-arg GCC_VERSION=$2 -t p2pool_compiler_test_clang_$2 .
docker build --build-arg P2POOL_VERSION=$1 --build-arg GCC_VERSION=$2 -t p2pool_compiler_test_clang_$1_$2 .
docker create --name p2pool_compiler_test_clang_$2_container p2pool_compiler_test_clang_$2:latest
docker cp p2pool_compiler_test_clang_$2_container:/p2pool/logs.tar.gz clang_$2_logs.tar.gz
docker rm p2pool_compiler_test_clang_$2_container
docker create --name p2pool_compiler_test_clang_$1_$2_container p2pool_compiler_test_clang_$1_$2:latest
docker cp p2pool_compiler_test_clang_$1_$2_container:/p2pool/logs.tar.gz clang_$2_logs.tar.gz
docker rm p2pool_compiler_test_clang_$1_$2_container
docker image rm -f p2pool_compiler_test_clang_$2
docker image rm -f p2pool_compiler_test_clang_$1_$2