mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-29 21:29:27 -07:00
docker: init
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -44,3 +44,6 @@ benches
|
|||||||
|
|
||||||
# Snapshots
|
# Snapshots
|
||||||
snapshots*/
|
snapshots*/
|
||||||
|
|
||||||
|
# Docker
|
||||||
|
docker/kibo
|
||||||
10
docker/Dockerfile
Normal file
10
docker/Dockerfile
Normal 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
6
docker/build.sh
Executable 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
11
docker/cmd.sh
Executable 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
10
docker/run.sh
Executable 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
|
||||||
1051
website/script.js
1051
website/script.js
File diff suppressed because it is too large
Load Diff
6
website/types/paths.d.ts
vendored
6
website/types/paths.d.ts
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user