This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making docker image for byzcoin and web
- Loading branch information
Showing
17 changed files
with
422 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Dockerfile* | ||
docker-compose* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
/cached.db | ||
.godocker | ||
.idea | ||
nodes | ||
/nodes/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM node:12 as builder-omniledger | ||
RUN git clone https://github.com/c4dt/omniledger -b archive /omniledger | ||
WORKDIR /omniledger/webapp | ||
RUN npm ci && npm link ../dynacred | ||
RUN npx ng build --prod --base-href /login/ --deploy-url /login/ --aot --output-path www | ||
COPY --from=byzcoin-builder /byzcoin/nodes/config.toml www/assets/ | ||
|
||
FROM node:14 as builder-olexplorer | ||
RUN git clone https://github.com/c4dt/ol-explorer -b archive /ol-explorer | ||
WORKDIR /ol-explorer | ||
RUN npm ci | ||
RUN npx ng build --prod --base-href /ol-explorer/ --deploy-url /ol-explorer/ --output-path www | ||
COPY --from=byzcoin-builder /byzcoin/nodes/config.toml www/assets/config.toml | ||
|
||
FROM node:14 as builder-columbus | ||
RUN git clone https://github.com/c4dt/columbus-united -b archive /columbus | ||
WORKDIR /columbus | ||
RUN npm i | ||
RUN npm run bundle | ||
COPY --from=byzcoin-builder /byzcoin/nodes/config.toml assets/config.toml | ||
|
||
FROM lipanski/docker-static-website:latest as web | ||
#FROM python:latest | ||
COPY httpd.conf . | ||
COPY --from=builder-omniledger /omniledger/webapp/www/ login/ | ||
COPY --from=builder-olexplorer /ol-explorer/www/ ol-explorer/ | ||
COPY --from=builder-columbus /columbus/index.html columbus/ | ||
COPY --from=builder-columbus /columbus/dist/ columbus/dist/ | ||
COPY --from=builder-columbus /columbus/assets/ columbus/assets/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
# Byzcoin node | ||
# Byzcoin node - ARCHIVED | ||
|
||
This repo has been archived and is no longer supporter. | ||
You can however run this as a demo to run on your local machine. | ||
To run the demo, download the repo and run the `docker-compose.yaml` file. | ||
Then point your browser to http://localhost:8080 | ||
The upcoming page gives a short summary of the different tools available | ||
to interact with the byzcoin-blockchain. | ||
The following tools are incorporated: | ||
|
||
- ByzCoin itself, running 4 nodes locally | ||
- [OmniLedger](https://) login tool | ||
|
||
If you have any questions, or remarks, don't hesitate to reach out to | ||
us by [[email protected]](mailto:[email protected]) | ||
|
||
## Description | ||
|
||
Byzcoin is a high-performance permissioned blockchain that can safely run in | ||
public mode, meaning everybody with access tokens can use it. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
version: "3.0" | ||
|
||
services: | ||
byzcoin: | ||
environment: | ||
# ADDRESS_NODE should always be tls:// - tcp:// is insecure and should | ||
# not be used. | ||
- ADDRESS_NODE=tls://byzcoin.c4dt.org:7770 | ||
# ADDRESS_WS can be either http:// or https:// - for most of the use-cases | ||
# you want this to be https://, so that secure webpages can access the node. | ||
- ADDRESS_WS=http://byzcoin.c4dt.org:7771 | ||
# A short description of your node that will be visible to the outside. | ||
- DESCRIPTION=New ByzCoin node | ||
# Whether to use TLS in the conodes. It is tested against 'false'. So | ||
# anything different from 'false' will be interpreted as true. | ||
- USE_TLS=false | ||
# WS_SSL_* is ignored if ADDRESS_WS is http or USE_TLS=false. These files | ||
# need to be in the ~/byzcoin directory before the node is started. | ||
- WS_SSL_CHAIN=fullchain.pem | ||
- WS_SSL_KEY=privkey.pem | ||
# ID of the byzcoin to follow - this corresponds to the DEDIS byzcoin. | ||
- BYZCOIN_ID=9cc36071ccb902a1de7e0d21a2c176d73894b1cf88ae4cc2ba4c95cd76f474f3 | ||
# How much debugging output - 0 is none, 1 is important ones, 2 is | ||
# interesting, 3 is detailed, 4 is lots of details, and 5 is too detailed for | ||
# most purposes. | ||
- DEBUG_LVL=2 | ||
# Whether to niceify the debug outputs. If you put this to `true`, you should | ||
# have a black background in the terminal. | ||
- DEBUG_COLOR=false | ||
# If set to true, adds a timestamp to each log-message | ||
- DEBUG_TIME=true | ||
# Send the logging information to a graylog instance. Optional, can be put to | ||
# "" if not needed. | ||
- GRAYLOG= | ||
# Send tracing information to honeycomb.io. The format is: api_key:dataset. | ||
# If no key is set, tracing is disabled. | ||
- HONEYCOMB_API_KEY= | ||
ports: | ||
- "7770-7771:7770-7771" | ||
image: c4dt/byzcoin:latest | ||
volumes: | ||
# Where the byzcoin data resides on the host. Do not change the :/byzcoin | ||
# part, only the ~/byzcoin. | ||
- ~/byzcoin:/byzcoin | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "10m" | ||
max-file: "4" | ||
restart: unless-stopped | ||
watchtower: | ||
image: containrrr/watchtower:latest | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
command: --interval 3600 --label-enable --cleanup |
Oops, something went wrong.