Skip to content

Commit c8b12fd

Browse files
authored
build image if is not already built (#14)
1 parent eaabddd commit c8b12fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env bash
22

3+
if ! docker images | grep -q "regtest"; then
4+
echo "Image not found. Building image..."
5+
docker build -t regtest docker-bitcoin-core/.
6+
fi
7+
38
echo "Starting container..."
49

510
CONTAINTER_HASH=$(docker run \

0 commit comments

Comments
 (0)