Skip to content

A local-first personal finance app

Add support for armv6l (alpine based images) (#182)

intiplink063d468836d8
diff --git a/.github/workflows/docker-edge.yml b/.github/workflows/docker-edge.yml
index 1fac479d1a..c48445e957 100644
--- a/.github/workflows/docker-edge.yml
+++ b/.github/workflows/docker-edge.yml
@@ -37,6 +37,10 @@ jobs:
strategy:
matrix:
os: [ubuntu, alpine]
+ arch: [amd64, arm64, arm/v7, arm/v6]
+ exclude:
+ - os: ubuntu
+ arch: arm/v6
steps:
- uses: actions/checkout@v3
@@ -76,7 +80,7 @@ jobs:
context: .
push: ${{ github.event_name != 'pull_request' }}
file: docker/edge-${{ matrix.os }}.Dockerfile
- platforms: linux/amd64,linux/arm64,linux/arm/v7
+ platforms: linux/${{ matrix.arch }}
tags: ${{ steps.meta.outputs.tags }}
build-args: |
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml
index e9ae30ced3..02893ce91b 100644
--- a/.github/workflows/docker-release.yml
+++ b/.github/workflows/docker-release.yml
@@ -27,6 +27,13 @@ jobs:
build:
name: Build Docker image
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ os: [ubuntu, alpine]
+ arch: [amd64, arm64, arm/v7, arm/v6]
+ exclude:
+ - os: ubuntu
+ arch: arm/v6
steps:
- uses: actions/checkout@v3
@@ -70,20 +77,11 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- - name: Build and push standard image
+ - name: Build and push image
uses: docker/build-push-action@v4
with:
context: .
push: true
- file: docker/stable-ubuntu.Dockerfile
- platforms: linux/amd64,linux/arm64,linux/arm/v7
+ file: docker/stable-${{ matrix.os }}.Dockerfile
+ platforms: linux/${{ matrix.arch }}
tags: ${{ steps.meta.outputs.tags }}
-
- - name: Build and push Alpine image
- uses: docker/build-push-action@v4
- with:
- context: .
- push: true
- file: docker/stable-alpine.Dockerfile
- platforms: linux/amd64,linux/arm64,linux/arm/v7
- tags: ${{ steps.alpine-meta.outputs.tags }}
diff --git a/docker/edge-alpine.Dockerfile b/docker/edge-alpine.Dockerfile
index ce66c44c3a..9a57023cf0 100644
--- a/docker/edge-alpine.Dockerfile
+++ b/docker/edge-alpine.Dockerfile
@@ -4,6 +4,7 @@ WORKDIR /app
ADD .yarn ./.yarn
ADD yarn.lock package.json .yarnrc.yml ./
RUN yarn workspaces focus --all --production
+RUN if [ "$(uname -m)" = "armv7l" ]; then npm install bcrypt better-sqlite3 --build-from-source; fi
RUN mkdir /public
ADD "https://api.github.com/repos/actualbudget/actual/actions/artifacts?name=actual-web&per_page=100" /tmp/artifacts.json
diff --git a/docker/stable-alpine.Dockerfile b/docker/stable-alpine.Dockerfile
index 191fb94871..fc63a40201 100644
--- a/docker/stable-alpine.Dockerfile
+++ b/docker/stable-alpine.Dockerfile
@@ -4,6 +4,7 @@ WORKDIR /app
ADD .yarn ./.yarn
ADD yarn.lock package.json .yarnrc.yml ./
RUN yarn workspaces focus --all --production
+RUN if [ "$(uname -m)" = "armv7l" ]; then npm install bcrypt better-sqlite3 --build-from-source; fi
FROM alpine:3.17 as prod
RUN apk add --no-cache nodejs tini
diff --git a/upcoming-release-notes/182.md b/upcoming-release-notes/182.md
new file mode 100644
index 0000000000..ef50cee8e3
--- /dev/null
+++ b/upcoming-release-notes/182.md
@@ -0,0 +1,6 @@
+---
+category: Features
+authors: [intiplink]
+---
+
+Add support for armv6l (Alpine-based images only)
\ No newline at end of file