-
Notifications
You must be signed in to change notification settings - Fork 7
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 #919 from chronologic/develop
v1.2.1
- Loading branch information
Showing
13 changed files
with
1,574 additions
and
1,478 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 |
---|---|---|
|
@@ -5,4 +5,5 @@ eth-alarm-clock-dapp** | |
yarn-error.log | ||
electron-builds | ||
yarn.lock | ||
TimeNode.app/ | ||
TimeNode.app/ | ||
dappnode/build_* |
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,5 @@ | ||
const isRunningInDAppNode = () => { | ||
return process.env.DAPPNODE || false; | ||
}; | ||
|
||
export { isRunningInDAppNode }; |
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,12 @@ | ||
# How to release to DAppNode | ||
0. If you haven't already, create your own DAppNode on Heroku and connect to it through a VPN | ||
1. Make sure the DApp version number (e.g. 1.1.6) in the following files matches the one in `package.json` | ||
- `dappnode_package.json` | ||
- `docker-compose.yml` | ||
1. Test the new release: | ||
- `dappnode build` | ||
- Take the IPFS hash that was given to you and install it in your local DAppNode. | ||
- Go to http://my.timenode.public.dappnode.eth/ and test the functionality | ||
2. If everything looks OK, publish it with `dappnode publish` | ||
|
||
Note: If you're having troubles setting up the DAppNode SDK, follow points 1, 2, 4 and 5 of this guide https://github.com/dappnode/DAppNodeSDK/wiki/DAppNode-SDK-tutorial. |
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,14 +1,20 @@ | ||
FROM nginx:alpine | ||
FROM nginx:1.15.6-alpine | ||
|
||
RUN apk update && apk add --no-cache bash git jq nano python alpine-sdk nginx nodejs nodejs-npm | ||
|
||
WORKDIR /usr/src/app | ||
RUN git clone https://github.com/chronologic/eth-alarm-clock-dapp.git . --single-branch -b master | ||
|
||
RUN git clone https://github.com/chronologic/eth-alarm-clock-dapp.git . --single-branch -b develop | ||
|
||
RUN npm install | ||
RUN npm run build | ||
RUN npm run build:dappnode:dev | ||
|
||
RUN rm -rf /usr/share/nginx/html/* | ||
RUN cp -r dist/* /usr/share/nginx/html/ | ||
|
||
# Fixes an error with routing in Nginx | ||
RUN sed -i '11itry_files $uri /index.html;' /etc/nginx/conf.d/default.conf | ||
|
||
RUN rm -rf dist node_modules .git | ||
|
||
EXPOSE 80 |
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,37 @@ | ||
{ | ||
"name": "timenode.public.dappnode.eth", | ||
"version": "1.0.0", | ||
"description": "The TimeNode DApp can be used earn ETH by executing transactions scheduled on the Ethereum Alarm Clock. It also allows the users to schedule a transaction themselves.", | ||
"avatar": "../electron-app/icons/icon.png", | ||
"type": "service", | ||
"image": { | ||
"path": "", | ||
"hash": "", | ||
"size": "", | ||
"restart": "always", | ||
"volumes": [ | ||
"ipfsdnpdappnodeeth_export:/export", | ||
"/home/ipfs_data:/data/ipfs", | ||
"data:/usr/src/app" | ||
], | ||
"ports": [ | ||
"31313:80" | ||
], | ||
"keywords": [ | ||
"ethereum", | ||
"alarm", | ||
"clock", | ||
"scheduling", | ||
"transactions", | ||
"timenode" | ||
] | ||
}, | ||
"author": "Joseph Bagaric, https://github.com/Bagaric", | ||
"homepage": "https://app.chronologic.network", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/chronologic/eth-alarm-clock-dapp.git" | ||
}, | ||
"bugs": "https://github.com/chronologic/eth-alarm-clock-dapp/issues", | ||
"license": "MIT" | ||
} |
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,10 @@ | ||
version: '3.4' | ||
services: | ||
timenode.public.dappnode.eth: | ||
image: 'timenode.public.dappnode.eth:1.0.0' | ||
build: ./build | ||
volumes: | ||
- 'ipfsdnpdappnodeeth_export:/export' | ||
- '/home/ipfs_data:/data/ipfs' | ||
volumes: | ||
ipfsdnpdappnodeeth_export: {} |
Oops, something went wrong.