diff --git a/Dockerfile_backend b/Dockerfile_backend new file mode 100644 index 0000000..7b88e6f --- /dev/null +++ b/Dockerfile_backend @@ -0,0 +1,9 @@ +FROM ubuntu:22.04 + +COPY ./deb-files/backend-flo_0.15.1.1-satoshilabs-1_amd64.deb /opt/backend.deb + +RUN apt update && apt install -y /opt/backend.deb +WORKDIR /opt/coins/nodes/flo +RUN sed -i 's/daemon=1/daemon=0/' /opt/coins/nodes/flo/flo.conf + +ENTRYPOINT ["/opt/coins/nodes/flo/bin/flod", "-datadir=/opt/coins/data/flo/backend", "-conf=/opt/coins/nodes/flo/flo.conf", "-pid=/run/flo/flo.pid"] diff --git a/Dockerfile_frontend b/Dockerfile_frontend new file mode 100644 index 0000000..5e687fe --- /dev/null +++ b/Dockerfile_frontend @@ -0,0 +1,8 @@ +FROM ubuntu:22.04 + +COPY ./deb-files/blockbook-flo_0.4.0_amd64.deb /opt/blockbook.deb + +RUN apt update && apt install -y /opt/blockbook.deb +WORKDIR /opt/coins/blockbook/flo + +ENTRYPOINT ["/opt/coins/blockbook/flo/bin/blockbook", "-blockchaincfg=/opt/coins/blockbook/flo/config/blockchaincfg.json", "-datadir=/opt/coins/data/flo/blockbook/db", "-sync", "-internal=:9066", "-public=:9166", "-certfile=/opt/coins/blockbook/flo/cert/blockbook", "-explorer=", "-log_dir=/opt/coins/blockbook/flo/logs", "-dbcache=1073741824"] diff --git a/README.md b/README.md index f0d9e2b..f2b6213 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,31 @@ ## Roadmap for upgrade -[ ] - Create separate images for both backend and blockbook. -[ ] - Attach the same volume to both the running containers of the images. +[X] - Create separate images for both backend and blockbook. +[X] - Attach the same volume to both the running containers of the images. [ ] - Think of how Blockbook container will detect the spots of backend container [ ] - See if creating a new network for both the containers will be a good option. +## Building & running backend image + +``` +docker build -t vivekteega/blockbook-backend:1.0.0 -f Dockerfile_backend . + +docker volume create blockbook + +docker run -it --mount source=blockbook,target=/opt/coins -p vivekteega/blockbook-backend:1.0. + +docker run -d --mount source=blockbook,target=/opt/coins -p 38366:38366 -p 8066:8066 vivekteega/blockbook-backend:1.0.0 +``` + +## Building & running frontend image + +``` +docker build -t vivekteega/blockbook-frontend:1.0.0 -f Dockerfile_frontend . + +docker run -it --mount source=blockbook,target=/opt/coins -p 9166:9166 -p 9066:9066 vivekteega/blockbook-frontend:1.0.0 + +docker run -d --mount source=blockbook,target=/opt/coins -p 9166:9166 -p 9066:9066 vivekteega/blockbook-frontend:1.0.0 +``` + + diff --git a/deb-files/backend-flo_0.15.1.1-satoshilabs-1_amd64.deb b/deb-files/backend-flo_0.15.1.1-satoshilabs-1_amd64.deb new file mode 100644 index 0000000..6e2c170 Binary files /dev/null and b/deb-files/backend-flo_0.15.1.1-satoshilabs-1_amd64.deb differ diff --git a/deb-files/blockbook-flo_0.4.0_amd64.deb b/deb-files/blockbook-flo_0.4.0_amd64.deb new file mode 100644 index 0000000..3b6d98d Binary files /dev/null and b/deb-files/blockbook-flo_0.4.0_amd64.deb differ