Skip to content

Commit f26f387

Browse files
authored
Merge pull request #57 from robinlehrmann/hotfix/support-apple-arm-platform
feat: ARM support
2 parents ee34db9 + 3559edb commit f26f387

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

commands/system/env.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ function system:env() {
1414
echo HELPER_DIR=${HELPER_DIR}
1515
echo NETWORK_NAME=${NETWORK_NAME}
1616
echo DOCKER_BUILDKIT=${DOCKER_BUILDKIT}
17+
echo DOCKER_DEFAULT_PLATFORM=${DOCKER_DEFAULT_PLATFORM}
1718
echo DDE_UID=${DDE_UID}
1819
echo DDE_GID=${DDE_GID}
1920
echo ""

dde.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ NETWORK_NAME=dde
1313
DOCKER_BUILDKIT=1
1414
DDE_UID=$(id -u)
1515
DDE_GID=$(id -g)
16+
DOCKER_DEFAULT_PLATFORM=$(uname -m | sed 's/x86_64/linux\/amd64/; s/arm64/linux\/arm64/')
1617
DDE_BROWSER=
1718
DDE_CONTAINER_SHELL=sh
1819
export DDE_UID
1920
export DDE_GID
2021
export DDE_CONTAINER_SHELL
22+
export DOCKER_DEFAULT_PLATFORM
23+
2124
# If we're running in CI we need to disable TTY allocation for docker-compose
2225
# commands that enable it by default, such as exec and run.
2326
TTY=""

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "3.4"
22

33
services:
44
dnsmasq:
5-
image: andyshinn/dnsmasq
5+
image: 4km3/dnsmasq:2.85-r2
66
restart: unless-stopped
77
cap_add:
88
- NET_ADMIN

0 commit comments

Comments
 (0)