Skip to content

Commit

Permalink
Version 2.0.24
Browse files Browse the repository at this point in the history
  • Loading branch information
kipliklotrika committed Nov 22, 2018
2 parents 7213b2b + ea21937 commit 4f40b3a
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 16 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ COPY testnet/supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# Add files
COPY . /ot-node
RUN echo '{ "database": { "password": "root" }}' > /ot-node/.origintrail_noderc
RUN service arangodb3 start && cd /ot-node && npm install && npm run setup -- --configDir=/ot-node/data

RUN wget https://github.com/papertrail/remote_syslog2/releases/download/v0.20/remote_syslog_linux_amd64.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.development
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ LABEL maintainer="OriginTrail"
ARG targetEnvironment=development

ENV NODE_ENV=$targetEnvironment
ENV GRANAX_USE_SYSTEM_TOR=1

RUN apt-get -qq update && apt-get -qq -y install curl
RUN curl -sL https://deb.nodesource.com/setup_9.x | bash -
Expand All @@ -23,7 +24,6 @@ COPY testnet/supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# Add files
COPY . /ot-node
RUN echo '{ "database": { "password": "root" }}' > /ot-node/.origintrail_noderc
RUN service arangodb3 start && cd /ot-node && npm install && npm run setup -- --configDir=/ot-node/data

RUN wget https://github.com/papertrail/remote_syslog2/releases/download/v0.20/remote_syslog_linux_amd64.tar.gz
Expand Down
1 change: 0 additions & 1 deletion Dockerfile.mariner
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ COPY testnet/supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# Add files
COPY . /ot-node
RUN echo '{ "database": { "password": "root" }}' > /ot-node/.origintrail_noderc
RUN service arangodb3 start && cd /ot-node && npm install && npm run setup -- --configDir=/ot-node/data

RUN wget https://github.com/papertrail/remote_syslog2/releases/download/v0.20/remote_syslog_linux_amd64.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.stable
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ LABEL maintainer="OriginTrail"
ARG targetEnvironment=stable

ENV NODE_ENV=$targetEnvironment
ENV GRANAX_USE_SYSTEM_TOR=1

RUN apt-get -qq update && apt-get -qq -y install curl
RUN curl -sL https://deb.nodesource.com/setup_9.x | bash -
Expand All @@ -23,7 +24,6 @@ COPY testnet/supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# Add files
COPY . /ot-node
RUN echo '{ "database": { "password": "root" }}' > /ot-node/.origintrail_noderc
RUN service arangodb3 start && cd /ot-node && npm install && npm run setup -- --configDir=/ot-node/data

RUN wget https://github.com/papertrail/remote_syslog2/releases/download/v0.20/remote_syslog_linux_amd64.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.staging
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ LABEL maintainer="OriginTrail"
ARG targetEnvironment=staging

ENV NODE_ENV=$targetEnvironment
ENV GRANAX_USE_SYSTEM_TOR=1

RUN apt-get -qq update && apt-get -qq -y install curl
RUN curl -sL https://deb.nodesource.com/setup_9.x | bash -
Expand All @@ -23,7 +24,6 @@ COPY testnet/supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# Add files
COPY . /ot-node
RUN echo '{ "database": { "password": "root" }}' > /ot-node/.origintrail_noderc
RUN service arangodb3 start && cd /ot-node && npm install && npm run setup -- --configDir=/ot-node/data

RUN wget https://github.com/papertrail/remote_syslog2/releases/download/v0.20/remote_syslog_linux_amd64.tar.gz
Expand Down
10 changes: 5 additions & 5 deletions config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"database": {
"provider": "arangodb",
"username": "root",
"password": "",
"password": "root",
"port": 8529,
"database": "origintrail-develop",
"host": "localhost",
Expand Down Expand Up @@ -144,7 +144,7 @@
"database": {
"provider": "arangodb",
"username": "root",
"password": "",
"password": "root",
"port": 8529,
"database": "origintrail-staging",
"host": "localhost",
Expand Down Expand Up @@ -244,7 +244,7 @@
"database": {
"provider": "arangodb",
"username": "root",
"password": "",
"password": "root",
"port": 8529,
"database": "origintrail-stable",
"host": "localhost",
Expand Down Expand Up @@ -344,7 +344,7 @@
"database": {
"provider": "arangodb",
"username": "root",
"password": "",
"password": "root",
"port": 8529,
"database": "origintrail",
"host": "localhost",
Expand Down Expand Up @@ -447,7 +447,7 @@
"database": {
"provider": "arangodb",
"username": "root",
"password": "",
"password": "root",
"port": 8529,
"database": "origintrail",
"host": "localhost",
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "origintrail_node",
"version": "2.0.23",
"version": "2.0.24",
"description": "OriginTrail node",
"main": ".eslintrc.js",
"config": {
Expand Down
16 changes: 12 additions & 4 deletions testnet/register-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,22 @@ function main() {
externalConfig = JSON.parse(fs.readFileSync(localConfigPath, 'utf8'));
}

if (!process.env.NODE_WALLET || !process.env.NODE_PRIVATE_KEY ||
!web3.utils.isAddress(process.env.NODE_WALLET)) {
console.error('Wallet not provided! Please provide valid wallet.');
} else {
// Check for old env variables for the sake of compatibility.
if (process.env.NODE_WALLET) {
externalConfig.node_wallet = process.env.NODE_WALLET;
}
if (process.env.NODE_PRIVATE_KEY) {
externalConfig.node_private_key = process.env.NODE_PRIVATE_KEY;
}

if (!externalConfig.node_wallet ||
!externalConfig.node_private_key ||
!web3.utils.isAddress(externalConfig.node_wallet)) {
console.error('Wallet not provided! Please provide valid wallet.');
process.exit(1);
return;
}

if (process.env.ERC_725_IDENTITY) {
const erc725IdentityFilePath =
path.join(localConfiguration.appDataPath, localConfiguration.erc725_identity_filepath);
Expand Down

0 comments on commit 4f40b3a

Please sign in to comment.