Skip to content

Commit

Permalink
Merge pull request #141 from dappnode/v0.2.5
Browse files Browse the repository at this point in the history
v0.2.5 Release
  • Loading branch information
eduadiez authored Apr 21, 2020
2 parents 1873bf3 + 54caff4 commit 6ff540d
Show file tree
Hide file tree
Showing 9 changed files with 246 additions and 263 deletions.
File renamed without changes
383 changes: 189 additions & 194 deletions build/bin/ovpn_genconfig

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
# Save environment
env | sed '/affinity/d' > /etc/env.sh

# Supervisord processes:
supervisord -c supervisord.conf
# Supervisord procs
exec supervisord -c supervisord.conf
4 changes: 2 additions & 2 deletions build/src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"author": "dappLion & vdo",
"license": "ISC",
"dependencies": {
"autobahn": "^19.9.2",
"autobahn": "^19.12.1",
"chalk": "^2.4.2",
"commander": "^3.0.1",
"commander": "^3.0.2",
"ip": "^1.1.5",
"is-ip": "^3.1.0",
"node-fetch": "^2.6.0",
Expand Down
7 changes: 6 additions & 1 deletion build/src/src/getAdminCredentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ console.log(`
Loading VPN parameters... It may take a while, press CTRL + C to skip this process
`);

process.on("SIGINT", function() {
process.exit(128);
});

// Wait for the loginMsg to exist
check();
function check() {
Expand All @@ -26,7 +30,8 @@ function check() {
console.error(`loginMsgFile missing after ${maxAttempts} attempts`);
else setTimeout(check, pauseTime);
} else {
console.log(loginMsg);
if (loginMsg.trim()) console.log(loginMsg);
else setTimeout(check, pauseTime);
}
});
}
6 changes: 3 additions & 3 deletions build/src/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ acorn-jsx@^5.0.2:
integrity sha512-tiNTrP1MP0QrChmD2DdupCr6HWSFeKVw5d/dHTu4Y7rkAkRhU/Dt7dphAfIUyxtHpl/eBVip5uTNSpQJHylpAw==

acorn@^7.0.0:
version "7.1.0"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.1.0.tgz#949d36f2c292535da602283586c2477c57eb2d6c"
integrity sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ==
version "7.1.1"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.1.1.tgz#e35668de0b402f359de515c5482a1ab9f89a69bf"
integrity sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg==

ajv@^6.10.0, ajv@^6.10.2, ajv@^6.5.5:
version "6.10.2"
Expand Down
24 changes: 1 addition & 23 deletions dappnode_package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,8 @@
{
"name": "vpn.dnp.dappnode.eth",
"version": "0.2.4",
"version": "0.2.5",
"description": "Dappnode package responsible for providing the VPN (OpenVPN) connection",
"avatar": "/ipfs/QmdTZF5oA5uVJ3CCJmfoMrjKvpkSLvoTZ2jZqVu9jxCEig",
"type": "dncore",
"image": {
"path": "",
"hash": "",
"size": "",
"volumes": [
"/etc/hostname:/etc/vpnname:ro",
"/lib/modules:/lib/modules:ro",
"/var/run/docker.sock:/var/run/docker.sock",
"/usr/src/dappnode/config:/usr/src/app/config:ro",
"vpndnpdappnodeeth_data:/usr/src/app/secrets",
"vpndnpdappnodeeth_config:/etc/openvpn",
"vpndnpdappnodeeth_shared:/var/spool/openvpn"
],
"ports": [
"1194:1194/udp"
],
"privileged": true,
"restart": "always",
"subnet": "172.33.0.0/16",
"ipv4_address": "172.33.1.4"
},
"author": "DAppNode Association <admin@dappnode.io> (https://github.com/dappnode)",
"contributors": [
"Eduardo Antuña <eduadiez@gmail.com> (https://github.com/eduadiez)",
Expand Down
71 changes: 33 additions & 38 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,36 @@
version: "3.4"

version: '3.4'
networks:
network:
driver: bridge
ipam:
config:
- subnet: 172.33.0.0/16

network:
driver: bridge
ipam:
config:
- subnet: 172.33.0.0/16
volumes:
vpndnpdappnodeeth_data: {}
vpndnpdappnodeeth_config: {}
vpndnpdappnodeeth_shared: {}

vpndnpdappnodeeth_data: {}
vpndnpdappnodeeth_config: {}
vpndnpdappnodeeth_shared: {}
services:
vpn.dnp.dappnode.eth:
build:
context: .
dockerfile: ./build/Dockerfile
image: "vpn.dnp.dappnode.eth:0.2.3"
container_name: DAppNodeCore-vpn.dnp.dappnode.eth
privileged: true
restart: always
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/etc/hostname:/etc/vpnname:ro"
- "/usr/src/dappnode/config:/usr/src/app/config:ro"
- "/lib/modules:/lib/modules:ro"
- "vpndnpdappnodeeth_data:/usr/src/app/secrets"
- "vpndnpdappnodeeth_config:/etc/openvpn"
- "vpndnpdappnodeeth_shared:/var/spool/openvpn"
ports:
- "1194:1194/udp"
dns: 172.33.1.2
networks:
network:
ipv4_address: 172.33.1.4
logging:
options:
max-size: "10m"
max-file: "3"
vpn.dnp.dappnode.eth:
build:
context: .
dockerfile: ./build/Dockerfile
image: 'vpn.dnp.dappnode.eth:0.2.5'
container_name: DAppNodeCore-vpn.dnp.dappnode.eth
privileged: true
restart: always
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- '/etc/hostname:/etc/vpnname:ro'
- '/usr/src/dappnode/config:/usr/src/app/config:ro'
- '/lib/modules:/lib/modules:ro'
- 'vpndnpdappnodeeth_data:/usr/src/app/secrets'
- 'vpndnpdappnodeeth_config:/etc/openvpn'
- 'vpndnpdappnodeeth_shared:/var/spool/openvpn'
ports:
- '1194:1194/udp'
dns: 172.33.1.2
networks:
network:
ipv4_address: 172.33.1.4
logging:
driver: journald
10 changes: 10 additions & 0 deletions releases.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"0.2.4": {
"hash": "/ipfs/QmaP4xFLPXiNzcMCWoSboQZgrDLicrohs7SbfaFcJJMEPD",
"type": "manifest",
"uploadedTo": {
"dappnode": "Tue, 19 Nov 2019 17:32:32 GMT"
},
"link": "http://my.dappnode/#/sdk/publish/r=vpn.dnp.dappnode.eth&v=0.2.4&h=%2Fipfs%2FQmaP4xFLPXiNzcMCWoSboQZgrDLicrohs7SbfaFcJJMEPD"
}
}

0 comments on commit 6ff540d

Please sign in to comment.