remove static docker folder

This commit is contained in:
altafan
2019-03-28 21:21:45 +01:00
parent 45e07b895e
commit 92139bb3ad
12 changed files with 0 additions and 235 deletions

View File

@@ -1,23 +0,0 @@
# bitcoin-box docker image
FROM ubuntu:18.04
# add bitcoind from the official PPA
# install bitcoind (from PPA) and make
RUN apt-get update && \
apt-get install --yes clang cmake jq software-properties-common && \
add-apt-repository --yes ppa:bitcoin/bitcoin && \
apt-get update && \
apt-get install --yes bitcoind
RUN mkdir -p /config /script
# copy the box files into the image
ADD bitcoin/config /config
ADD bitcoin/run /script
WORKDIR /script
# expose two rpc ports for the nodes to allow outside container access
EXPOSE 19001
STOPSIGNAL SIGINT
CMD ["./run"]

View File

@@ -1,23 +0,0 @@
# testnet-box functionality
regtest=1
testnet=0
dnsseed=0
upnp=0
[regtest]
# listen on different ports than default testnet
port=19000
rpcport=19001
# always run a server, even with bitcoin-qt
server=1
txindex=0
# enable to allow non-localhost RPC connections
# recommended to change to a subnet, such as your LAN
rpcallowip=0.0.0.0/0
rpcuser=admin1
rpcpassword=123

View File

@@ -1,17 +0,0 @@
#!/bin/bash
set -ex
b1="bitcoin-cli -datadir=/config"
function clean {
$b1 stop
}
trap clean SIGINT
bitcoind -datadir=/config &
sleep 10
$b1 generate 200
wait $!

View File

@@ -1,10 +0,0 @@
FROM ubuntu:18.04
WORKDIR /build
COPY chopsticks/nigiri-chopsticks-linux-amd64.tar.gz /build
RUN ls
RUN tar -xzf nigiri-chopsticks-linux-amd64.tar.gz && rm -rf *.tar.gz
EXPOSE 3000
CMD ["./nigiri-chopsticks-linux-amd64", "--addr", "0.0.0.0:3000", "--electrs-addr", "10.10.0.12:3002", "--rpc-addr", "10.10.0.10:19001", "--use-logger", "true"]

View File

@@ -1,50 +0,0 @@
version: '3'
services:
bitcoin:
build:
context: .
dockerfile: bitcoin/Dockerfile
networks:
local:
ipv4_address: 10.10.0.10
volumes:
- bitcoin-config:/config
liquid:
build:
context: .
dockerfile: liquid/Dockerfile
networks:
local:
ipv4_address: 10.10.0.11
volumes:
- liquid-config:/config
electrs:
build:
context: .
dockerfile: electrs/Dockerfile
networks:
local:
ipv4_address: 10.10.0.12
volumes:
- bitcoin-config:/config
- liquid-config:/liquidconfig
chopsticks:
build:
context: .
dockerfile: chopsticks/Dockerfile
ports:
- 3000:3000
networks:
local:
ipv4_address: 10.10.0.13
networks:
local:
driver: bridge
ipam:
config:
- subnet: 10.10.0.0/24
volumes:
bitcoin-config:
liquid-config:

View File

@@ -1,16 +0,0 @@
FROM ubuntu:18.04
RUN apt-get update && apt-get install --yes wget
WORKDIR /build
RUN wget -qO- https://github.com/vulpemventures/electrs/releases/download/v0.4.1-bin/electrs.tar.gz | tar -xvz && rm -rf electrs.tar.gz
# RUN cargo build --release
WORKDIR /scripts
ADD electrs/run /scripts
# Electrum REST
EXPOSE 3002
STOPSIGNAL SIGINT
CMD ["./run"]

View File

@@ -1,10 +0,0 @@
#!/bin/bash
set -e
function clean {
kill -9 $(pidof electrs)
}
trap clean SIGINT
/build/electrs -vvvv --network regtest --daemon-dir /config --daemon-rpc-addr="10.10.0.10:19001" --cookie="admin1:123" --http-addr="0.0.0.0:3002" &
wait $!

View File

@@ -1,17 +0,0 @@
FROM ubuntu:18.04
RUN apt-get update && apt-get install --yes curl wget
RUN mkdir -p /tmp /config /script
ADD liquid/config /config
ADD liquid/script /script
WORKDIR /script
RUN /script/install
EXPOSE 18884
STOPSIGNAL SIGINT
CMD ["./run"]

View File

@@ -1,46 +0,0 @@
# Standard bitcoind stuff
rpcuser=user1
rpcpassword=password1
rpcport=18884
port=18886
# Over p2p we will only connect to local other liquidd
# connect=localhost:18887
regtest=1
# Make sure you set listen after -connect, otherwise neither
# will accept incoming connections!
listen=1
# Just for looking at random txs
txindex=0
# enable to allow non-localhost RPC connections
# recommended to change to a subnet, such as your LAN
rpcallowip=0.0.0.0/0
# This is the script that controls pegged in funds in Bitcoin network
# Users will be pegging into a P2SH of this, and the "watchmen"
# can then recover these funds and send them to users who desire to peg out.
# This template is 1-of-1 checkmultisig
#fedpegscript=5121<pubkey>51ae
# This is the script that controls how blocks are made
# We have to supply a signature that satisfies this to create
# a valid block.
#signblockscript=5121<pubkey2>51ae
# We want to validate pegins by checking with bitcoind if header exists
# in best known chain, and how deep. We combine this with pegin
# proof included in the pegin to get full security.
validatepegin=0
# If in the same datadir and using standard ports, these are unneeded
# thanks to cookie auth. If not, like in our situation, liquidd needs
# more info to connect to bitcoind:
mainchainrpcport=19001
mainchainrpchost=10.10.0.10
mainchainrpcuser=admin1
mainchainrpcpassword=123
# Free money to make testing easier
initialfreecoins=10000000000

View File

@@ -1,13 +0,0 @@
#!/bin/bash
set -e
LATEST_VERSION=$(curl --silent "https://api.github.com/repos/blockstream/liquid/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
VERSION_NAME=$(echo $LATEST_VERSION | sed '1,/\./s/\./\-/')
wget -qO- https://github.com/Blockstream/liquid/releases/download/$LATEST_VERSION/$VERSION_NAME-x86_64-linux-gnu.tar.gz | tar xvz -C /tmp
mv /tmp/$VERSION_NAME/bin/liquidd /usr/bin/liquidd
mv /tmp/$VERSION_NAME/bin/liquid-cli /usr/bin/liquid-cli
mv /tmp/$VERSION_NAME/bin/liquid-tx /usr/bin/liquid-tx
rm -rf /tmp

View File

@@ -1,10 +0,0 @@
#!/bin/bash
set -e
function clean {
kill -9 $(pidof liquidd)
}
trap clean SIGINT
liquidd -datadir=/config &
wait $!