Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM mcr.microsoft.com/dotnet/core/sdk:3.1

# Repo Args
ARG gitUrl
ARG repoTag

ARG fullnodeContainerDir
ARG configFile

RUN git clone ${gitUrl} --branch ${repoTag} --single-branch \
&& cd /blockcore/src/Node/Blockcore.Node \
&& dotnet build

WORKDIR /blockcore/src/Node/Blockcore.Node

RUN apt-get update && apt install -y libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev make g++

RUN git clone https://github.com/facebook/rocksdb.git \
&& cd rocksdb \
&& git checkout tags/v6.2.2 \
&& make shared_lib

WORKDIR /blockcore/src/Node/Blockcore.Node/rocksdb

RUN cp librocksdb.so.6.2.2 ../bin/Debug/netcoreapp3.1/

WORKDIR /blockcore/src/Node/Blockcore.Node/bin/Debug/netcoreapp3.1

RUN ln -fs librocksdb.so.6.2.2 librocksdb.so.6.2
RUN ln -fs librocksdb.so.6.2.2 librocksdb.so.6
RUN ln -fs librocksdb.so.6.2.2 librocksdb.so

WORKDIR /blockcore/src/Node/Blockcore.Node


ENTRYPOINT exec dotnet run --chain="${eTicker}" -dbtype=rocksdb -txindex
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Sergio Test 4:23

### Tipbot for Discord that works with Stratis

The bot is added to the [stratis community discord](https://discord.gg/9tDyfZs). You can check it out there.
Expand Down Expand Up @@ -77,4 +79,4 @@ other options!**

When you see the bot in the online status on your discord server, you are ready to test it.

Type: `@tipbot help`
Type: `@tipbot help`
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: "3.8"
services:
fullnode:
network_mode: host
build:
context: .
args:
- gitUrl
- fullnodeContainerDir
- configFile
- repoTag
environment:
- eTicker=${ticker}
volumes:
- ./chain.conf:${fullnodeContainerDir}/${configFile}
- ${fullnodeHostDir}:${fullnodeContainerDir}
restart: "always"
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
22 changes: 22 additions & 0 deletions docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
echo "Installing Docker daemon..."
apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io -y
docker --version

echo "Docker daemon installed OK!"
echo " "
echo "Installing docker-compose..."
apt-get update
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
echo "Docker-compose installed OK!"