Skip to content

Commit

Permalink
Merge branch 'master' into feature/add-ubuntu-iso-support
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo authored Oct 21, 2024
2 parents 5e3de9a + f2b4ddb commit 1aa41f7
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 15 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ jobs:
run: |
sed -i -e "/BASE_OS/s/ubuntu/debian/" docker-compose.yml
sed -i -e "/UNATTENDED/s/true/false/" docker-compose.yml
docker-compose up --build
docker compose build
docker compose up
- name: Check Debian ISO attended
run: |
Expand All @@ -90,7 +91,8 @@ jobs:
run: |
sed -i -e "/BASE_OS/s/ubuntu/debian/" docker-compose.yml
sed -i -e "/UNATTENDED/s/false/true/" docker-compose.yml
docker-compose up --build
docker compose build
docker compose up
- name: Check Debian ISO unattended
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ jobs:
run: |
sed -i -e "/BASE_OS/s/ubuntu/debian/" docker-compose.yml
sed -i -e "/UNATTENDED/s/true/false/" docker-compose.yml
docker-compose up --build
docker compose build
docker compose up
- name: Check Debian ISO attended
run: |
Expand All @@ -85,7 +86,8 @@ jobs:
- name: Build Debian unattended
run: |
sed -i -e "/UNATTENDED/s/false/true/" docker-compose.yml
docker-compose up --build
docker compose build
docker compose up
- name: Check Debian ISO unattended
run: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ jobs:
uses: actions/checkout@v4
- name: create iso
run: |
docker-compose up --build
docker compose build
docker compose up
ls images/
- name: verify image
run: |
ls -lrt images/Dappnode-*.iso
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ FROM docker:dind
# hadolint ignore=DL3018
RUN apk update && \
apk add --no-cache xorriso git xz curl ca-certificates iptables cpio bash perl-utils \
docker-compose && \
rm -rf /var/cache/apk/*

#RUN apk add -U --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing aufs-util
Expand Down
5 changes: 5 additions & 0 deletions funding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"opRetro": {
"projectId": "0xf839a585342327848d4541a6fcc315404e879537a60a1370f2cd45a94283a1ba"
}
}
4 changes: 2 additions & 2 deletions iso/scripts/generate_dappnode_iso_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ SCRIPTS_DIR=$(dirname "${BASH_SOURCE[0]}")
source ${SCRIPTS_DIR}/common_iso_generation.sh

# Source = https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.5.0-amd64-netinst.iso
BASE_ISO_NAME="debian-12.5.0-amd64-netinst.iso"
BASE_ISO_NAME="debian-12.7.0-amd64-netinst.iso"
BASE_ISO_PATH="/images/${BASE_ISO_NAME}"
BASE_ISO_URL="https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/${BASE_ISO_NAME}"
BASE_ISO_SHASUM="013f5b44670d81280b5b1bc02455842b250df2f0c6763398feb69af1a805a14f ${BASE_ISO_PATH}"
BASE_ISO_SHASUM="8fde79cfc6b20a696200fc5c15219cf6d721e8feb367e9e0e33a79d1cb68fa83 ${BASE_ISO_PATH}"

DAPPNODE_ISO_NAME="${DAPPNODE_ISO_PREFIX}${BASE_ISO_NAME}"
DAPPNODE_ISO_PATH="/images/${DAPPNODE_ISO_NAME}"
Expand Down
7 changes: 0 additions & 7 deletions scripts/dappnode_install_pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,6 @@ else
install_docker 2>&1 | tee -a $LOG_FILE
fi

# Only install docker-compose if needed
if docker-compose -v >/dev/null 2>&1; then
echo -e "\e[32m \n\n docker-compose is already aliased \n\n \e[0m" 2>&1 | tee -a $LOG_FILE
else
alias_docker_compose 2>&1 | tee -a $LOG_FILE
fi

# Only install wireguard-dkms if needed
if modprobe wireguard >/dev/null 2>&1; then
echo -e "\e[32m \n\n wireguard-dkms is already installed \n\n \e[0m" 2>&1 | tee -a $LOG_FILE
Expand Down

0 comments on commit 1aa41f7

Please sign in to comment.