Skip to content

Commit

Permalink
Merge pull request #2169 from ChrisCarini/ChrisCarini/addArchToSynolo…
Browse files Browse the repository at this point in the history
…gyDSM7

Add ARM architectures to Synology DSM7
  • Loading branch information
joseph-henry authored Jul 25, 2024
2 parents 82b8a4f + 979bca5 commit 24fb1ce
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
5 changes: 5 additions & 0 deletions pkg/synology/dsm7-docker/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## Docker image for Synology's DSM7

Documentation: [docs.zerotier.com/devices/synology](https://docs.zerotier.com/devices/synology)

### Build & Push changes to DockerHub
```shell
./build.sh build
```
22 changes: 10 additions & 12 deletions pkg/synology/dsm7-docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,17 @@
ZTO_VER=$(git describe --tags $(git rev-list --tags --max-count=1))
ZTO_COMMIT=$(git rev-parse HEAD)

build()
{
sudo docker build --load --rm -t zerotier-synology . --build-arg ZTO_COMMIT=${ZTO_COMMIT} --build-arg ZTO_VER=${ZTO_VER}
LATEST_DOCKER_IMAGE_HASH=$(sudo docker images -q zerotier-synology)
sudo docker tag ${LATEST_DOCKER_IMAGE_HASH} zerotier/zerotier-synology:${ZTO_VER}
sudo docker tag ${LATEST_DOCKER_IMAGE_HASH} zerotier/zerotier-synology:latest
}

push()
{
build() {
sudo docker login --username=${DOCKERHUB_USERNAME}
sudo docker push zerotier/zerotier-synology:${ZTO_VER}
sudo docker push zerotier/zerotier-synology:latest

sudo docker buildx build \
--push \
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
--tag zerotier/zerotier-synology:${ZTO_VER} \
--tag zerotier/zerotier-synology:latest \
--build-arg ZTO_COMMIT=${ZTO_COMMIT} \
--build-arg ZTO_VER=${ZTO_VER} \
.
}

"$@"

0 comments on commit 24fb1ce

Please sign in to comment.