docker: init

This commit is contained in:
k
2024-09-23 18:44:55 +02:00
parent 2befa58fce
commit 1a303a9c38
7 changed files with 576 additions and 521 deletions

3
.gitignore vendored
View File

@@ -44,3 +44,6 @@ benches
# Snapshots # Snapshots
snapshots*/ snapshots*/
# Docker
docker/kibo

10
docker/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM rust:1.81
ENV rpcuser=satoshi
ENV rpcpassword=nakamoto
ENV rpcport=8332
WORKDIR /container
COPY . .
CMD ["sh", "-c", "bash cmd.sh ${rpcuser} ${rpcpassword} ${rpcport}"]

6
docker/build.sh Executable file
View File

@@ -0,0 +1,6 @@
# !/usr/bin/env bash
[[ -d "./kibo" ]] && sudo rm -r ./kibo
git clone https://github.com/kibo-money/kibo.git
docker build -t kibo .

11
docker/cmd.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
cd kibo/parser
./run.sh \
--datadir=/bitcoin \
--rpcuser=$1 \
--rpcpassword=$2 \
--rpcport=$3
# cd ../server
# ./run.sh &

10
docker/run.sh Executable file
View File

@@ -0,0 +1,10 @@
docker run \
--env rpcuser=satoshi \
--env rpcpassword=nakamoto \
--env rpcport=8332 \
--volume /tmp/kibo/datasets:/container/kibo/datasets \
--volume /tmp/kibo/price:/container/kibo/price \
--volume /tmp/kibo/outputs:/container/kibo/parser/out \
--volume $HOME/Developer/bitcoin:/bitcoin \
--net=host \
kibo

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long