forked from btccom/btcpool-ABANDONED
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sserver: log chain name when finding blocks
- Loading branch information
1 parent
18bf00e
commit 0e757b5
Showing
16 changed files
with
312 additions
and
18 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
DOCKER_COMPOSE="docker-compose --no-ansi" | ||
|
||
BUILD_ARGS="--build-arg BUILD_JOBS=$(nproc) --build-arg BUILD_TESTING=ON" | ||
if [ "$APT_MIRROR_URL" != "" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --build-arg APT_MIRROR_URL=$APT_MIRROR_URL" | ||
fi | ||
if [ "$NO_CACHE" = "1" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --no-cache" | ||
fi | ||
|
||
if [ "$BUILD_BASE_IMAGE" != "" ]; then | ||
echo "build base image..." | ||
cd "$BASE_DIR/../../base-image" | ||
docker build -t $BASE_IMAGE -f Dockerfile.btc $BUILD_ARGS . | tee -a $STDOUT | ||
echo "done" | ||
fi | ||
|
||
if [ "$DEBUG" = "1" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --build-arg BUILD_TYPE=Debug" | ||
fi | ||
|
||
echo "build btcpool-$TEST_SUITE image..." | ||
cd "$BASE_DIR/.." | ||
echo "build args: $BUILD_ARGS" | ||
docker build -t btccom/btcpool-$TEST_SUITE -f Dockerfile $BUILD_ARGS --build-arg BASE_IMAGE=$BASE_IMAGE ../../.. | tee -a $STDOUT | ||
echo "done" | ||
|
||
if [ -f "$BASE_DIR/docker-compose.yml" ]; then | ||
echo "build docker compose..." | ||
cd "$BASE_DIR" | ||
$DOCKER_COMPOSE build | tee -a $STDOUT | ||
echo "done" | ||
|
||
echo "clear old docker compose..." | ||
$DOCKER_COMPOSE down | tee -a $STDOUT | ||
echo "done" | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
docker run --rm btccom/btcpool-${TEST_SUITE} unittest |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
DOCKER_COMPOSE="docker-compose --no-ansi" | ||
|
||
BUILD_ARGS="--build-arg BUILD_JOBS=$(nproc) --build-arg BUILD_TESTING=ON" | ||
if [ "$APT_MIRROR_URL" != "" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --build-arg APT_MIRROR_URL=$APT_MIRROR_URL" | ||
fi | ||
if [ "$NO_CACHE" = "1" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --no-cache" | ||
fi | ||
|
||
if [ "$BUILD_BASE_IMAGE" != "" ]; then | ||
echo "build base image..." | ||
cd "$BASE_DIR/../../base-image" | ||
docker build -t $BASE_IMAGE -f Dockerfile.btc $BUILD_ARGS . | tee -a $STDOUT | ||
echo "done" | ||
fi | ||
|
||
if [ "$DEBUG" = "1" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --build-arg BUILD_TYPE=Debug" | ||
fi | ||
|
||
echo "build btcpool-$TEST_SUITE image..." | ||
cd "$BASE_DIR/.." | ||
echo "build args: $BUILD_ARGS" | ||
docker build -t btccom/btcpool-$TEST_SUITE -f Dockerfile $BUILD_ARGS --build-arg BASE_IMAGE=$BASE_IMAGE ../../.. | tee -a $STDOUT | ||
echo "done" | ||
|
||
if [ -f "$BASE_DIR/docker-compose.yml" ]; then | ||
echo "build docker compose..." | ||
cd "$BASE_DIR" | ||
$DOCKER_COMPOSE build | tee -a $STDOUT | ||
echo "done" | ||
|
||
echo "clear old docker compose..." | ||
$DOCKER_COMPOSE down | tee -a $STDOUT | ||
echo "done" | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
docker run --rm btccom/btcpool-${TEST_SUITE} unittest |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
DOCKER_COMPOSE="docker-compose --no-ansi" | ||
|
||
BUILD_ARGS="--build-arg BUILD_JOBS=$(nproc) --build-arg BUILD_TESTING=ON" | ||
if [ "$APT_MIRROR_URL" != "" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --build-arg APT_MIRROR_URL=$APT_MIRROR_URL" | ||
fi | ||
if [ "$NO_CACHE" = "1" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --no-cache" | ||
fi | ||
|
||
if [ "$BUILD_BASE_IMAGE" != "" ]; then | ||
echo "build base image..." | ||
cd "$BASE_DIR/../../base-image" | ||
docker build -t $BASE_IMAGE -f Dockerfile.btc $BUILD_ARGS . | tee -a $STDOUT | ||
echo "done" | ||
fi | ||
|
||
if [ "$DEBUG" = "1" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --build-arg BUILD_TYPE=Debug" | ||
fi | ||
|
||
echo "build btcpool-$TEST_SUITE image..." | ||
cd "$BASE_DIR/.." | ||
echo "build args: $BUILD_ARGS" | ||
docker build -t btccom/btcpool-$TEST_SUITE -f Dockerfile $BUILD_ARGS --build-arg BASE_IMAGE=$BASE_IMAGE ../../.. | tee -a $STDOUT | ||
echo "done" | ||
|
||
if [ -f "$BASE_DIR/docker-compose.yml" ]; then | ||
echo "build docker compose..." | ||
cd "$BASE_DIR" | ||
$DOCKER_COMPOSE build | tee -a $STDOUT | ||
echo "done" | ||
|
||
echo "clear old docker compose..." | ||
$DOCKER_COMPOSE down | tee -a $STDOUT | ||
echo "done" | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
docker run --rm btccom/btcpool-${TEST_SUITE} unittest |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
DOCKER_COMPOSE="docker-compose --no-ansi" | ||
|
||
BUILD_ARGS="--build-arg BUILD_JOBS=$(nproc) --build-arg BUILD_TESTING=ON" | ||
if [ "$APT_MIRROR_URL" != "" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --build-arg APT_MIRROR_URL=$APT_MIRROR_URL" | ||
fi | ||
if [ "$NO_CACHE" = "1" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --no-cache" | ||
fi | ||
|
||
if [ "$BUILD_BASE_IMAGE" != "" ]; then | ||
echo "build base image..." | ||
cd "$BASE_DIR/../../base-image" | ||
docker build -t $BASE_IMAGE -f Dockerfile.btc $BUILD_ARGS . | tee -a $STDOUT | ||
echo "done" | ||
fi | ||
|
||
if [ "$DEBUG" = "1" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --build-arg BUILD_TYPE=Debug" | ||
fi | ||
|
||
echo "build btcpool-$TEST_SUITE image..." | ||
cd "$BASE_DIR/.." | ||
echo "build args: $BUILD_ARGS" | ||
docker build -t btccom/btcpool-$TEST_SUITE -f Dockerfile $BUILD_ARGS --build-arg BASE_IMAGE=$BASE_IMAGE ../../.. | tee -a $STDOUT | ||
echo "done" | ||
|
||
if [ -f "$BASE_DIR/docker-compose.yml" ]; then | ||
echo "build docker compose..." | ||
cd "$BASE_DIR" | ||
$DOCKER_COMPOSE build | tee -a $STDOUT | ||
echo "done" | ||
|
||
echo "clear old docker compose..." | ||
$DOCKER_COMPOSE down | tee -a $STDOUT | ||
echo "done" | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
docker run --rm btccom/btcpool-${TEST_SUITE} unittest |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
DOCKER_COMPOSE="docker-compose --no-ansi" | ||
|
||
BUILD_ARGS="--build-arg BUILD_JOBS=$(nproc) --build-arg BUILD_TESTING=ON" | ||
if [ "$APT_MIRROR_URL" != "" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --build-arg APT_MIRROR_URL=$APT_MIRROR_URL" | ||
fi | ||
if [ "$NO_CACHE" = "1" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --no-cache" | ||
fi | ||
|
||
if [ "$BUILD_BASE_IMAGE" != "" ]; then | ||
echo "build base image..." | ||
cd "$BASE_DIR/../../base-image" | ||
docker build -t $BASE_IMAGE -f Dockerfile.btc $BUILD_ARGS . | tee -a $STDOUT | ||
echo "done" | ||
fi | ||
|
||
if [ "$DEBUG" = "1" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --build-arg BUILD_TYPE=Debug" | ||
fi | ||
|
||
echo "build btcpool-$TEST_SUITE image..." | ||
cd "$BASE_DIR/.." | ||
echo "build args: $BUILD_ARGS" | ||
docker build -t btccom/btcpool-$TEST_SUITE -f Dockerfile $BUILD_ARGS --build-arg BASE_IMAGE=$BASE_IMAGE ../../.. | tee -a $STDOUT | ||
echo "done" | ||
|
||
if [ -f "$BASE_DIR/docker-compose.yml" ]; then | ||
echo "build docker compose..." | ||
cd "$BASE_DIR" | ||
$DOCKER_COMPOSE build | tee -a $STDOUT | ||
echo "done" | ||
|
||
echo "clear old docker compose..." | ||
$DOCKER_COMPOSE down | tee -a $STDOUT | ||
echo "done" | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
docker run --rm btccom/btcpool-${TEST_SUITE} unittest |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
DOCKER_COMPOSE="docker-compose --no-ansi" | ||
|
||
BUILD_ARGS="--build-arg BUILD_JOBS=$(nproc) --build-arg BUILD_TESTING=ON" | ||
if [ "$APT_MIRROR_URL" != "" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --build-arg APT_MIRROR_URL=$APT_MIRROR_URL" | ||
fi | ||
if [ "$NO_CACHE" = "1" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --no-cache" | ||
fi | ||
|
||
if [ "$BUILD_BASE_IMAGE" != "" ]; then | ||
echo "build base image..." | ||
cd "$BASE_DIR/../../base-image" | ||
docker build -t $BASE_IMAGE -f Dockerfile.btc $BUILD_ARGS . | tee -a $STDOUT | ||
echo "done" | ||
fi | ||
|
||
if [ "$DEBUG" = "1" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --build-arg BUILD_TYPE=Debug" | ||
fi | ||
|
||
echo "build btcpool-$TEST_SUITE image..." | ||
cd "$BASE_DIR/.." | ||
echo "build args: $BUILD_ARGS" | ||
docker build -t btccom/btcpool-$TEST_SUITE -f Dockerfile $BUILD_ARGS --build-arg BASE_IMAGE=$BASE_IMAGE ../../.. | tee -a $STDOUT | ||
echo "done" | ||
|
||
if [ -f "$BASE_DIR/docker-compose.yml" ]; then | ||
echo "build docker compose..." | ||
cd "$BASE_DIR" | ||
$DOCKER_COMPOSE build | tee -a $STDOUT | ||
echo "done" | ||
|
||
echo "clear old docker compose..." | ||
$DOCKER_COMPOSE down | tee -a $STDOUT | ||
echo "done" | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
docker run --rm btccom/btcpool-${TEST_SUITE} unittest |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
DOCKER_COMPOSE="docker-compose --no-ansi" | ||
|
||
BUILD_ARGS="--build-arg BUILD_JOBS=$(nproc) --build-arg BUILD_TESTING=ON" | ||
if [ "$APT_MIRROR_URL" != "" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --build-arg APT_MIRROR_URL=$APT_MIRROR_URL" | ||
fi | ||
if [ "$NO_CACHE" = "1" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --no-cache" | ||
fi | ||
|
||
if [ "$BUILD_BASE_IMAGE" != "" ]; then | ||
echo "build base image..." | ||
cd "$BASE_DIR/../../base-image" | ||
docker build -t $BASE_IMAGE -f Dockerfile.btc $BUILD_ARGS . | tee -a $STDOUT | ||
echo "done" | ||
fi | ||
|
||
if [ "$DEBUG" = "1" ]; then | ||
BUILD_ARGS="$BUILD_ARGS --build-arg BUILD_TYPE=Debug" | ||
fi | ||
|
||
echo "build btcpool-$TEST_SUITE image..." | ||
cd "$BASE_DIR/.." | ||
echo "build args: $BUILD_ARGS" | ||
docker build -t btccom/btcpool-$TEST_SUITE -f Dockerfile $BUILD_ARGS --build-arg BASE_IMAGE=$BASE_IMAGE ../../.. | tee -a $STDOUT | ||
echo "done" | ||
|
||
if [ -f "$BASE_DIR/docker-compose.yml" ]; then | ||
echo "build docker compose..." | ||
cd "$BASE_DIR" | ||
$DOCKER_COMPOSE build | tee -a $STDOUT | ||
echo "done" | ||
|
||
echo "clear old docker compose..." | ||
$DOCKER_COMPOSE down | tee -a $STDOUT | ||
echo "done" | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
docker run --rm btccom/btcpool-${TEST_SUITE} unittest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters