-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1702 from OriginTrail/v6/develop
OriginTrail 6.0.0-beta.1.20 Testnet Prerelease
- Loading branch information
Showing
53 changed files
with
3,247 additions
and
1,050 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
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
"network": { | ||
}, | ||
"ipWhitelist": [ | ||
"::1", | ||
"127.0.0.1" | ||
] | ||
} |
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,23 @@ | ||
FROM node:14-alpine3.15 | ||
|
||
LABEL maintainer="OriginTrail" | ||
ENV NODE_ENV=testnet | ||
|
||
#Install Papertrail | ||
RUN wget https://github.com/papertrail/remote_syslog2/releases/download/v0.20/remote_syslog_linux_amd64.tar.gz | ||
RUN tar xzf ./remote_syslog_linux_amd64.tar.gz && cd remote_syslog && cp ./remote_syslog /usr/local/bin | ||
|
||
COPY config/papertrail.yml /etc/log_files.yml | ||
|
||
#Install nodemon & forever | ||
RUN npm install forever -g | ||
|
||
WORKDIR /ot-node | ||
|
||
COPY . . | ||
|
||
#Install nppm | ||
RUN npm install | ||
|
||
|
||
|
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,57 @@ | ||
#base image | ||
FROM debian:bullseye | ||
|
||
MAINTAINER OriginTrail | ||
LABEL maintainer="OriginTrail" | ||
ENV NODE_ENV=testnet | ||
|
||
#Install git, nodejs,python | ||
RUN apt-get -qq update && apt-get -qq -y install curl | ||
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - | ||
RUN apt-get -qq update | ||
RUN apt-get -qq -y install wget apt-transport-https | ||
RUN apt-get -qq -y install git nodejs | ||
RUN apt-get -qq -y install make python | ||
|
||
#Install Papertrail | ||
RUN wget https://github.com/papertrail/remote_syslog2/releases/download/v0.20/remote_syslog_linux_amd64.tar.gz | ||
RUN tar xzf ./remote_syslog_linux_amd64.tar.gz && cd remote_syslog && cp ./remote_syslog /usr/local/bin | ||
COPY config/papertrail.yml /etc/log_files.yml | ||
|
||
|
||
|
||
#Mysql-server installation | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
ARG PASSWORD=password | ||
RUN apt-get install -y lsb-release | ||
RUN apt-get install -y wget gnupg curl | ||
RUN curl -LO https://dev.mysql.com/get/mysql-apt-config_0.8.20-1_all.deb | ||
RUN dpkg -i ./mysql-apt-config_0.8.20-1_all.deb | ||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29 | ||
|
||
|
||
RUN { \ | ||
echo mysql-server mysql-server/root_password password $PASSWORD ''; \ | ||
echo mysql-server mysql-server/root_password_again password $PASSWORD ''; \ | ||
} | debconf-set-selections \ | ||
&& apt-get update && apt-get install -y default-mysql-server default-mysql-server-core | ||
|
||
|
||
|
||
#Install nodemon & forever | ||
RUN npm install forever -g | ||
|
||
|
||
|
||
|
||
WORKDIR /ot-node | ||
|
||
COPY . . | ||
|
||
#Install nppm | ||
RUN npm install | ||
|
||
#Mysql intialization | ||
RUN service mariadb start && mysql -u root -e "CREATE DATABASE operationaldb /*\!40100 DEFAULT CHARACTER SET utf8 */; SET PASSWORD FOR root@localhost = PASSWORD(''); FLUSH PRIVILEGES;" && npx sequelize --config=./config/sequelizeConfig.js db:migrate | ||
|
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,41 @@ | ||
#base image | ||
FROM ubuntu:20.04 | ||
|
||
MAINTAINER OriginTrail | ||
LABEL maintainer="OriginTrail" | ||
ENV NODE_ENV=testnet | ||
|
||
#Install git, nodejs, mysql, python | ||
RUN apt-get -qq update && apt-get -qq -y install curl | ||
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - | ||
RUN apt-get -qq update | ||
RUN apt-get -qq -y install wget apt-transport-https | ||
RUN apt-get -qq -y install git nodejs | ||
RUN apt-get -qq -y install mysql-server unzip nano | ||
RUN apt-get -qq -y install make python | ||
|
||
#Install Papertrail | ||
RUN wget https://github.com/papertrail/remote_syslog2/releases/download/v0.20/remote_syslog_linux_amd64.tar.gz | ||
RUN tar xzf ./remote_syslog_linux_amd64.tar.gz && cd remote_syslog && cp ./remote_syslog /usr/local/bin | ||
COPY config/papertrail.yml /etc/log_files.yml | ||
|
||
|
||
|
||
#Install nodemon | ||
RUN npm install -g forever | ||
|
||
|
||
WORKDIR /ot-node | ||
|
||
COPY . . | ||
|
||
|
||
#Install npm | ||
RUN npm install | ||
|
||
|
||
#Intialize mysql | ||
RUN usermod -d /var/lib/mysql/ mysql | ||
RUN echo "disable_log_bin" >> /etc/mysql/mysql.conf.d/mysqld.cnf | ||
RUN service mysql start && mysql -u root -e "CREATE DATABASE operationaldb /*\!40100 DEFAULT CHARACTER SET utf8 */; update mysql.user set plugin = 'mysql_native_password' where User='root'/*\!40100 DEFAULT CHARACTER SET utf8 */; flush privileges;" && npx sequelize --config=./config/sequelizeConfig.js db:migrate | ||
|
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,6 @@ | ||
files: | ||
- /ot-node/complete-node.log | ||
destination: | ||
host: logs4.papertrailapp.com | ||
port: 39178 | ||
protocol: tls |
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,39 @@ | ||
version: '3' | ||
|
||
services: | ||
graphdb: | ||
container_name: graphdb | ||
image: khaller/graphdb-free:latest | ||
network_mode: host | ||
|
||
|
||
mysql: | ||
container_name: mysql | ||
image: mysql:8.0.17 | ||
environment: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: 1 | ||
MYSQL_ROOT_PASSWORD: null | ||
MYSQL_DATABASE: operationaldb | ||
expose: | ||
- 3306 | ||
network_mode: host | ||
|
||
ot-node: | ||
container_name: ot-node | ||
image: origintrail/ot-node:v6.0.0-beta.1-alpine | ||
depends_on: | ||
- graphdb | ||
- mysql | ||
expose: | ||
- 8900 | ||
- 9000 | ||
command: | ||
- '/bin/sh' | ||
- '-c' | ||
- '/bin/sleep 25 && npx sequelize --config=./config/sequelizeConfig.js db:migrate && forever index.js' | ||
|
||
|
||
volumes: | ||
- ${PWD}/.origintrail_noderc:/ot-node/.origintrail_noderc | ||
- ~/certs/:/root/certs/ | ||
network_mode: host |
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,25 @@ | ||
version: '3.8' | ||
services: | ||
graphdb: | ||
container_name: graphdb | ||
image: khaller/graphdb-free:latest | ||
network_mode: host | ||
|
||
ot-node: | ||
container_name: ot-node | ||
image: origintrail/ot-node:v6.0.0-beta.1-debian | ||
depends_on: | ||
- graphdb | ||
expose: | ||
- 8900 | ||
- 9000 | ||
command: > | ||
bash -c " | ||
service mariadb start && | ||
forever index.js | ||
" | ||
volumes: | ||
- ${PWD}/.origintrail_noderc:/ot-node/.origintrail_noderc | ||
- ~/certs/:/root/certs/ | ||
network_mode: host | ||
|
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,25 @@ | ||
version: '3.8' | ||
services: | ||
graphdb: | ||
container_name: graphdb | ||
image: khaller/graphdb-free:latest | ||
network_mode: host | ||
|
||
ot-node: | ||
container_name: ot-node | ||
image: origintrail/ot-node:v6.0.0-beta.1-ubuntu | ||
depends_on: | ||
- graphdb | ||
expose: | ||
- 8900 | ||
- 9000 | ||
command: > | ||
bash -c " | ||
service mysql restart && | ||
forever index.js | ||
" | ||
volumes: | ||
- ${PWD}/.origintrail_noderc:/ot-node/.origintrail_noderc | ||
- ~/certs/:/root/certs/ | ||
network_mode: host | ||
|
Oops, something went wrong.