Skip to content

Commit

Permalink
Add support for arm64 (Fixes #22)
Browse files Browse the repository at this point in the history
  • Loading branch information
sahilph committed May 29, 2018
1 parent 3cd21c4 commit e084018
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .travis/deploy_docker_rpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ build_message Build V211 image started...
deploy_v211
build_message Build V211 image finished, check build result!

build_message Build V171 arm64 image started...
deploy_v171_arm64
build_message Build V171 arm64 image finished, check build result!

build_message Build V211 arm64 image started...
deploy_v211_arm64
build_message Build V211 arm64 image finished, check build result!

build_message Preparing to Push multi-arch manifest to Docker Cloud ..
deploy_multiarch

6 changes: 5 additions & 1 deletion .travis/multiarch_manifests/multiarch_manifest_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ manifests:
platform:
architecture: arm
os: linux
-
image: treehouses/arm64-rpi-couchdb:2.1.1
platform:
architecture: arm64
os: linux
-
image: amd64/couchdb:2.1.1
platform:
architecture: amd64
os: linux

5 changes: 5 additions & 0 deletions .travis/multiarch_manifests/multiarch_manifest_v1.7.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ manifests:
platform:
architecture: arm
os: linux
-
image: treehouses/arm64-rpi-couchdb:1.7.1
platform:
architecture: arm64
os: linux
-
image: amd64/couchdb:1.7.1
platform:
Expand Down
5 changes: 5 additions & 0 deletions .travis/multiarch_manifests/multiarch_manifest_v2.1.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ manifests:
platform:
architecture: arm
os: linux
-
image: treehouses/arm64-rpi-couchdb:2.1.1
platform:
architecture: arm64
os: linux
-
image: amd64/couchdb:2.1.1
platform:
Expand Down
18 changes: 18 additions & 0 deletions .travis/travis_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,24 @@ deploy_v211(){
push_v211
}

deploy_v171_arm64(){
login_docker
sed -i -e "s/\(resin\/rpi-raspbian\)/resin\/aarch64-debian/" 1.7.1/Dockerfile
$V171_DOCKER_NAME_LATEST="arm64-$V171_DOCKER_NAME_LATEST"
$V171_DOCKER_NAME="arm64-$V171_DOCKER_NAME"
package_v171
push_v171
}

deploy_v211_arm64(){
login_docker
sed -i -e "s/\(resin\/rpi-raspbian\)/resin\/aarch64-debian/" 2.1.1/Dockerfile
$V211_DOCKER_NAME_LATEST="arm64-$V211_DOCKER_NAME_LATEST"
$V211_DOCKER_NAME="arm64-$V211_DOCKER_NAME"
package_v211
push_v211
}

deploy_multiarch(){
if [ "$BRANCH" = "master" ]
then
Expand Down

0 comments on commit e084018

Please sign in to comment.