Skip to content

Commit 4db6d90

Browse files
Merge branch 'master' into pablo/installer-instructions
2 parents d716242 + 4bf5841 commit 4db6d90

File tree

12 files changed

+96
-133
lines changed

12 files changed

+96
-133
lines changed

.dappnode_profile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
22

33
export BIND_VERSION="${BIND_VERSION:-0.2.6}"
4-
export IPFS_VERSION="${IPFS_VERSION:-0.2.15}"
4+
export IPFS_VERSION="${IPFS_VERSION:-0.2.18}"
55
export VPN_VERSION="${VPN_VERSION:-0.2.8}"
6-
export DAPPMANAGER_VERSION="${DAPPMANAGER_VERSION:-0.2.46}"
6+
export DAPPMANAGER_VERSION="${DAPPMANAGER_VERSION:-0.2.58}"
77
export WIFI_VERSION="${WIFI_VERSION:-0.2.8}"
8-
export WIREGUARD_VERSION="${WIREGUARD_VERSION:-0.1.1}"
9-
export HTTPS_VERSION="${HTTPS:-0.1.3}"
8+
export WIREGUARD_VERSION="${WIREGUARD_VERSION:-0.1.2}"
9+
export HTTPS_VERSION="${HTTPS:-0.1.4}"
1010

1111
export DAPPNODE_DIR="/usr/src/dappnode"
1212
export DAPPNODE_CORE_DIR="${DAPPNODE_DIR}/DNCORE"

.github/CODEOWNERS

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
# These owners will be the default owners for everything in the repo. Unless a later match takes precedence,
2-
# They will be requested for review when someone opens a pull request.
3-
* @dapplion @eduadiez @pablomendezroyo @3alpha @Tropicar
4-
5-
# Order is important; the last matching pattern takes the most precedence. When someone opens a pull request that only
6-
# modifies md files, only md owners and not the global owner(s) will be requested for a review.
7-
*.md @Pol-Lanski @dapplion @eduadiez @pablomendezroyo @3alpha @Tropicar
1+
* @dappnode/core

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,18 @@ jobs:
147147

148148
env:
149149
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
150+
151+
- name: Check git diff
152+
id: git_diff
153+
run: |
154+
git diff --no-index --word-diff-regex=[^[:space:]] --no-patch .dappnode_profile && echo '::set-output name=HAS_CHANGED::true' || echo '::set-output name=HAS_CHANGED::false'
155+
150156
- name: Create Pull Request
157+
if: steps.git_diff.outputs.HAS_CHANGED == 'true'
151158
uses: peter-evans/create-pull-request@v3
152159
with:
153160
add-paths: ".dappnode_profile"
154-
commit-message: "update profile core packages versions"
161+
commit-message: "update core packages versions"
155162
branch: "update-profile"
156-
title: "update profile core packages versions"
163+
title: "update core packages versions"
157164
delete-branch: true

README.md

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
[![Documentation Wiki](https://img.shields.io/badge/Documentation-Wiki-brightgreen.svg)](https://docs.dappnode.io)
55
[![GIVETH Campaign](https://img.shields.io/badge/GIVETH-Campaign-1e083c.svg)](https://beta.giveth.io/campaigns/5b44b198647f33526e67c262)
66
![GitHub All Releases](https://img.shields.io/github/downloads/dappnode/DAppNode/total.svg)
7+
[![GitPOAP Badge](https://public-api.gitpoap.io/v1/repo/dappnode/DAppNode/badge)](https://www.gitpoap.io/gh/dappnode/DAppNode)
78
[![Twitter Follow](https://img.shields.io/twitter/follow/espadrine.svg?style=social&label=Follow)](https://twitter.com/DAppNODE?lang=es)
9+
[![Discord](https://img.shields.io/discord/747647430450741309?logo=discord&style=plastic)](https://discord.gg/dappnode)
10+
11+
812

913
<br/>
1014
<p align="center">
@@ -24,14 +28,14 @@
2428

2529
DAppNode is empowering people by creating a simple, transparent system for hosting P2P clients for DApps, Cryptocurrencies, VPNs, IPFS and more
2630

27-
- Read about our purpose and mission [https://dappnode.io/](https://dappnode.io/)
28-
- Join our community [https://discord.gg/c28an8dA5k](https://discord.gg/c28an8dA5k)
29-
- Check out what we are delivering [https://medium.com/dappnode](https://medium.com/dappnode)
30-
- Share your ideas and support from us [https://discourse.dappnode.io/](https://discourse.dappnode.io/)
31+
- Read about our purpose and mission on [Our Website](https://dappnode.io/)
32+
- Join our community and find support on [Our Discord](https://discord.gg/dappnode)
33+
- Check out what we are up to on [Our Medium](https://medium.com/dappnode)
34+
- Share your ideas and find how to guides on [Our Forum](https://discourse.dappnode.io/)
3135

3236
## Discover DAppNode
3337

34-
DAppNode lowers the barrier of entry for non tech-savy participants. It allows you to deploy, update, and manage P2P clients and nodes without leaving your browser. No terminal or command line interface.
38+
DAppNode lowers the barrier of entry for non tech-savvy participants. It allows you to deploy, update, and manage P2P clients and nodes without leaving your browser. No terminal or command line interface.
3539

3640
<p align="center">
3741
<a href="https://install.dappnode.io">
@@ -41,7 +45,7 @@ DAppNode lowers the barrier of entry for non tech-savy participants. It allows y
4145

4246
## Develop with DAppNode
4347

44-
DAppNode modular architecture allows any team to or project to publish a dockerized application to the DAppNode packages eco-system. Benefit from an enthusiatic crypto savy user based and offer a user interface-only experience to lower onboarding friction.
48+
DAppNode modular architecture allows any team to or project to publish a dockerized application to the DAppNode packages eco-system. Benefit from an enthusiastic crypto savvy user based and offer a user interface-only experience to lower onboarding friction.
4549

4650
Check out the [DAppNodeSDK](https://github.com/dappnode/DAppNodeSDK) to learn how to get started.
4751

@@ -59,7 +63,7 @@ The community and core team members have created many useful packages for users.
5963

6064
### Champions
6165

62-
Champions are community members that are in charge of maintaining packages updated. All packages in this list without a champions are actively looking for a champion. Join our [DAppNode Discord **#champion-process**](https://discord.gg/MhSPBsHryu) to suggest a package to be championed and/or offer to be a champion for a project you care about!
66+
Champions are community members that are in charge of maintaining packages: keeping them updated and working. All packages in this list without a champion are actively looking for a champion. Join our [DAppNode Discord **#champion-process**](https://discord.gg/dappnode) to suggest a package to be championed and/or offer to be a champion for a project you care about!
6367

6468
| Package | Champion |
6569
| ---------------------------------------------------------------------------------------- | ---------------- |
@@ -115,11 +119,11 @@ Champions are community members that are in charge of maintaining packages updat
115119

116120
Get your DAppNode and start contributing to decentralization by running your own nodes.
117121

118-
[Install DAppNode on your host machine](https://docs.dappnode.io/install/) or buy your DAppNode with all the stuff configured and prepared to be used in [DAppNode shop](https://shop.dappnode.io/)
122+
[Install DAppNode on your host machine](https://docs.dappnode.io/get-started/installation/custom-hardware/installation/overview) or buy your DAppNode with all the stuff configured and prepared to be used in [DAppNode shop](https://shop.dappnode.io/)
119123

120124
### Install DAppNode with ISO
121125

122-
DAppNode ISO available in: [latest DAppNode release](https://github.com/dappnode/DAppNode/releases)
126+
DAppNode ISO available is in: [latest DAppNode release](https://github.com/dappnode/DAppNode/releases).
123127

124128
Install DAppNode on your host machine by burning DAppNode ISO to a DVD or creating a bootable USB. Follow the tutorial of your operating system below and come back when you are finished:
125129

@@ -146,13 +150,13 @@ _Note_: ISO could be generated as unattended/attended by editing the env var ava
146150

147151
### Install DAppNode with scripts
148152

149-
Scripts available in: [latest DAppNode release](https://github.com/dappnode/DAppNode/releases)
153+
Scripts are available in: [latest DAppNode release](https://github.com/dappnode/DAppNode/releases).
150154

151-
DAppNode could be also installed on a host machine with an OS already running on it. DAppNode has been developed and configured to be run on debian host machines so is preferably to install DAppNode on Debian or debian based (like Ubuntu) host machines.
155+
DAppNode could be also installed on a host machine with an OS already running on it. DAppNode has been developed and configured to be run on Debian host machines. Therefore, it should work on Debian or Debian based (like Ubuntu) host machines. Minimum recommended Debian version is 11.
152156

153-
**1. Prerrequisites**
157+
**1. Prerequisites**
154158

155-
Before install DAppNode with the script option, make sure you fullfill the requirements by running the following script:
159+
Before installing DAppNode with the script option, make sure you fulfill the requirements by running the following script:
156160

157161
```bash
158162
sudo wget -O - https://prerequisites.dappnode.io | sudo bash
@@ -168,7 +172,7 @@ sudo wget -O - https://installer.dappnode.io | sudo bash
168172

169173
**3. Uninstall DAppNode**
170174

171-
Uinstall DAppNode on your host machine by running the following command:
175+
Uninstall DAppNode from your host machine by running the following command:
172176

173177
```bash
174178
wget -qO - https://uninstaller.dappnode.io | sudo bash
@@ -184,7 +188,7 @@ sudo wget -O - https://installer.dappnode.io | sudo UPDATE=true bash
184188

185189
## Releases
186190

187-
Create releases manually with github actions, the github action to run is: **Pre-release**. Requirements are:
191+
Create releases manually with Github actions, the Github action to run is: **Pre-release**. The requirements are:
188192

189193
- Introduce the core packages versions
190194
- There must exist the corresponding core package release for the specified version
@@ -202,15 +206,15 @@ The release will contain:
202206

203207
## Testing with artifacts
204208

205-
Generate ISOs and test them by running the github action: **Artifacts**. This action will generate an artifacts with the same assets as the release, useful for testing purposes.
209+
Generate ISOs and test them by running the Github action: **Artifacts**. This action will generate an artifacts with the same assets as the release, useful for testing purposes.
206210

207211
## Versioning
208212

209213
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/dappnode/DAppNode/tags).
210214

211215
## Team members
212216

213-
Members of the [White Hat Group (WHG)](https://motherboard.vice.com/en_us/article/qvp5b3/how-ethereum-coders-hacked-back-to-rescue-dollar208-million-in-ethereum) have spent countless hours boostraping and developing DAppNode in 2017. Currently, the project is mantained by a growing multi-disciplary team:
217+
Members of the [White Hat Group (WHG)](https://motherboard.vice.com/en_us/article/qvp5b3/how-ethereum-coders-hacked-back-to-rescue-dollar208-million-in-ethereum) have spent countless hours bootstrapping and developing DAppNode in 2017. Currently, the project is maintained by a growing multi-disciplinary team:
214218

215219
- **Adviser & Instigator:** Jordi Baylina
216220
- **Project Lead:** Eduadiez
@@ -223,3 +227,7 @@ Members of the [White Hat Group (WHG)](https://motherboard.vice.com/en_us/articl
223227
## License
224228

225229
This project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details
230+
231+
## Copyright
232+
233+
Copyright © (2018-2022) [The DAppNode Association](https://dappnode.io)
318 KB
Loading

iso/preseeds/preseed.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ d-i preseed/late_command string \
3535
in-target mkdir -p /usr/src/dappnode; \
3636
cp -ar /cdrom/dappnode/* /target/usr/src/dappnode/; \
3737
cp -a /cdrom/dappnode/scripts/rc.local /target/etc/rc.local; \
38-
cp -a /cdrom/dappnode/bin/docker/docker-compose-Linux-x86_64 /target/usr/local/bin/docker-compose; \
3938
in-target chmod +x /usr/src/dappnode/scripts/dappnode_install_pre.sh; \
4039
in-target chmod +x /usr/src/dappnode/scripts/static_ip.sh; \
41-
in-target chmod +x /usr/local/bin/docker-compose; \
4240
in-target gpasswd -a $(getent passwd "1000" | cut -d: -f1) sudo; \
4341
/target/usr/src/dappnode/scripts/static_ip.sh; \
4442
in-target /usr/src/dappnode/scripts/dappnode_install_pre.sh UPDATE

iso/preseeds/preseed_unattended.cfg

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ d-i netcfg/get_domain string dappnode.eth
1717
d-i netcfg/get_domain seen true
1818

1919
### Account setup
20-
d-i passwd/root-login boolean false # dappnode user will not be in sudo
20+
d-i passwd/root-login boolean false
2121
d-i passwd/user-fullname string DAppNode
2222
d-i passwd/username string dappnode
2323
# Use `mkpasswd -m sha-512` to generate the hash
2424
# Using "dappnode.s0" as default
2525
d-i passwd/user-password-crypted password $6$insecur3$rnEv9Amdjn3ctXxPYOlzj/cwvLT43GjWzkPECIHNqd8Vvza5bMG8QqMwEIBKYqnj609D.4ngi4qlmt29dLE.71
26-
d-i passwd/root-password-crypted password $6$insecur3$rnEv9Amdjn3ctXxPYOlzj/cwvLT43GjWzkPECIHNqd8Vvza5bMG8QqMwEIBKYqnj609D.4ngi4qlmt29dLE.71
26+
# d-i passwd/root-password-crypted password $6$insecur3$rnEv9Amdjn3ctXxPYOlzj/cwvLT43GjWzkPECIHNqd8Vvza5bMG8QqMwEIBKYqnj609D.4ngi4qlmt29dLE.71
2727

2828
### Clock and time zone setup
2929
d-i clock-setup/utc boolean false
@@ -75,9 +75,7 @@ d-i preseed/late_command string \
7575
cp -a /etc/network/interfaces /target/etc/network/interfaces; \
7676
cp -ar /cdrom/dappnode/* /target/usr/src/dappnode/; \
7777
cp -a /cdrom/dappnode/scripts/rc.local /target/etc/rc.local; \
78-
cp -a /cdrom/dappnode/bin/docker/docker-compose-Linux-x86_64 /target/usr/local/bin/docker-compose; \
7978
in-target chmod +x /usr/src/dappnode/scripts/dappnode_install_pre.sh; \
80-
in-target chmod +x /usr/local/bin/docker-compose; \
8179
in-target touch /usr/src/dappnode/.firstboot; \
8280
in-target /usr/src/dappnode/scripts/dappnode_install_pre.sh UPDATE
8381
d-i finish-install/reboot_in_progress note

iso/scripts/download_core.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ source /tmp/vars.sh
88

99
DAPPNODE_CORE_DIR="/images"
1010
DAPPNODE_HASH_FILE="${DAPPNODE_CORE_DIR}/packages-content-hash.csv"
11-
CONTENT_HASH_PKGS=(geth openethereum nethermind)
11+
CONTENT_HASH_PKGS=(geth nethermind erigon prysm teku lighthouse nimbus)
1212
IPFS_ENDPOINT=${IPFS_ENDPOINT:-"http://ipfs.io"}
1313

1414
SWGET="wget -q -O-"
@@ -24,7 +24,7 @@ for comp in "${components[@]}"; do
2424
if [[ ${!ver} == /ipfs/* ]]; then
2525
DOWNLOAD_URL="${IPFS_ENDPOINT}/api/v0/cat?arg=${!ver%:*}"
2626
fi
27-
27+
2828
eval "${comp}_URL=\"${DOWNLOAD_URL}/${comp,,}.dnp.dappnode.eth_${!ver##*:}_linux-amd64.txz\""
2929
eval "${comp}_YML=\"${DOWNLOAD_URL}/docker-compose.yml\""
3030
eval "${comp}_MANIFEST=\"${DOWNLOAD_URL}/dappnode_package.json\""

iso/scripts/generate_ISO.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ dockerd &
55
sleep 5
66

77
if [ "$CLEAN" = true ]; then
8+
rm -f /images/DAppNode*.iso
89
rm -f /images/*.tar.xz
910
rm -f /images/*.yml
1011
rm -f /images/*.json

iso/scripts/generate_dappnode_iso_debian.sh

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
set -e
33

44
# Source = https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/current/amd64/iso-cd/
5-
ISO_NAME=firmware-11.1.0-amd64-netinst.iso
5+
ISO_NAME=firmware-11.5.0-amd64-netinst.iso
66
ISO_PATH="/images/${ISO_NAME}"
7-
ISO_URL=http://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/archive/11.1.0+nonfree/amd64/iso-cd/
8-
SHASUM="baab78aa4dac175511915a20b095da69131ef5c84b73e637a6933c03b561cdfd ${ISO_PATH}"
7+
ISO_URL=https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/11.5.0+nonfree/amd64/iso-cd/
8+
SHASUM="ce1dcd1fa272976ddc387554202013e69ecf1b02b38fba4f8c35c8b12b8f521e ${ISO_PATH}"
99

1010
echo "Downloading debian ISO image: ${ISO_NAME}..."
1111
if [ ! -f ${ISO_PATH} ]; then
@@ -15,7 +15,10 @@ fi
1515
echo "Done!"
1616

1717
echo "Verifying download..."
18-
[[ "$(shasum -a 256 ${ISO_PATH})" != "$SHASUM" ]] && { echo "ERROR: wrong shasum"; exit 1; }
18+
[[ "$(shasum -a 256 ${ISO_PATH})" != "$SHASUM" ]] && {
19+
echo "ERROR: wrong shasum"
20+
exit 1
21+
}
1922

2023
echo "Clean old files..."
2124
rm -rf dappnode-isoº
@@ -35,26 +38,18 @@ echo "Downloading third-party packages..."
3538
sed '1,/^\#\!ISOBUILD/!d' /usr/src/app/scripts/dappnode_install_pre.sh >/tmp/vars.sh
3639
# shellcheck disable=SC1091
3740
source /tmp/vars.sh
38-
mkdir -p /images/bin/docker
39-
cd /images/bin/docker
40-
[ -f "${DOCKER_PKG}" ] || wget "${DOCKER_URL}"
41-
[ -f "${DOCKER_CLI_PKG}" ] || wget "${DOCKER_CLI_URL}"
42-
[ -f "${CONTAINERD_PKG}" ] || wget "${CONTAINERD_URL}"
43-
[ -f docker-compose-Linux-x86_64 ] || wget "${DCMP_URL}"
44-
cd - # /usr/src/app/dappnode-iso
4541

4642
echo "Creating necessary directories and copying files..."
47-
mkdir -p /usr/src/app/dappnode-iso/dappnode
43+
mkdir -p /usr/src/app/dappnode-iso/dappnode
4844
cp -r /usr/src/app/scripts /usr/src/app/dappnode-iso/dappnode
4945
cp -r /usr/src/app/dappnode/* /usr/src/app/dappnode-iso/dappnode
50-
cp -vr /images/bin /usr/src/app/dappnode-iso/dappnode/
5146

5247
echo "Customizing preseed..."
5348
mkdir -p /tmp/makeinitrd
5449
cd install.amd
5550
cp initrd.gz /tmp/makeinitrd/
56-
if [[ ${UNATTENDED} == "true" ]]; then
57-
cp /usr/src/app/iso/preseeds/preseed_unattended.cfg /tmp/makeinitrd/preseed.cfg
51+
if [[ $UNATTENDED == *"true"* ]]; then
52+
cp /usr/src/app/iso/preseeds/preseed_unattended.cfg /tmp/makeinitrd/preseed.cfg
5853
else
5954
cp /usr/src/app/iso/preseeds/preseed.cfg /tmp/makeinitrd/preseed.cfg
6055
fi

0 commit comments

Comments
 (0)