Skip to content

Commit 79d4363

Browse files
authored
Enable arm docker build (Project-OSRM#6172)
This issue enables dockerX for multi-arch docker image building. Resulting images can be run on x86 and arm processors (for example aws graviton).
1 parent 662a8d0 commit 79d4363

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/osrm-backend-docker.yml

+9-10
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ jobs:
1111
- name: Check out the repo
1212
uses: actions/checkout@v2
1313

14+
- name: Set up QEMU
15+
uses: docker/setup-qemu-action@v1
16+
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v1
1419

1520
- name: Docker meta
1621
id: meta
@@ -34,10 +39,7 @@ jobs:
3439
images: ghcr.io/${{ github.repository }}
3540
flavor: |
3641
latest=true
37-
suffix=-assertions,onlatest=true
38-
39-
40-
42+
suffix=-assertions,onlatest=true
4143
4244
- name: Log in to GitHub Docker Registry
4345
uses: docker/login-action@v1
@@ -46,16 +48,11 @@ jobs:
4648
username: ${{ github.actor }}
4749
password: ${{ secrets.GITHUB_TOKEN }}
4850

49-
50-
51-
52-
53-
54-
5551
- name: Build container image - debug
5652
uses: docker/build-push-action@v2
5753
with:
5854
push: true
55+
platforms: linux/amd64,linux/arm64
5956
file: ./docker/Dockerfile
6057
tags: ${{ steps.metadebug.outputs.tags }}
6158
build-args: |
@@ -66,6 +63,7 @@ jobs:
6663
uses: docker/build-push-action@v2
6764
with:
6865
push: true
66+
platforms: linux/amd64,linux/arm64
6967
file: ./docker/Dockerfile
7068
tags: ${{ steps.metaassertions.outputs.tags }}
7169
build-args: |
@@ -76,6 +74,7 @@ jobs:
7674
uses: docker/build-push-action@v2
7775
with:
7876
push: true
77+
platforms: linux/amd64,linux/arm64
7978
file: ./docker/Dockerfile
8079
tags: ${{ steps.meta.outputs.tags }}
8180
build-args: |

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- FIXED: Run all unit tests in CI [#5248](https://github.com/Project-OSRM/osrm-backend/pull/5248)
1111
- FIXED: Fix installation of Mason CMake and 32 bit CI build [#6170](https://github.com/Project-OSRM/osrm-backend/pull/6170)
1212
- FIXED: Fixed Node docs generation check in CI. [#6058](https://github.com/Project-OSRM/osrm-backend/pull/6058)
13+
- CHANGED: Docker build, enabled arm64 build layer [#6172](https://github.com/Project-OSRM/osrm-backend/pull/6172)
1314
- CHANGED: Docker build, enabled apt-get update/install caching in separate layer for build phase [#6175](https://github.com/Project-OSRM/osrm-backend/pull/6175)
1415

1516
# 5.26.0

0 commit comments

Comments
 (0)