Skip to content

Commit

Permalink
#7: Enable ARM build
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Nov 15, 2020
1 parent c2b2c2c commit 727f4bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ jobs:
- name: Release to docker registry (x86)
run: "RKD_COMPAT_SUBPROCESS=true rkd :release:docker:x86 --git-tag=${GITHUB_REF}"

# - name: Release to docker registry (arm)
# run: "rkd :release:docker:x86 --git-tag=${GITHUB_REF}"
- name: Release to docker registry (arm)
run: "rkd :release:docker:x86 --git-tag=${GITHUB_REF}"

- name: Release to PyPI
run: "rkd :release:pypi --token=${{ secrets.PYPI_TOKEN }}"
11 changes: 7 additions & 4 deletions .infrastructure/arm.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM balenalib/armv7hf-alpine:3.9
FROM balenalib/armv7hf-alpine:3.12

RUN [ "cross-build-start" ]
RUN apk --update add python3 bash perl curl wget grep sed docker sudo mysql-client postgresql-client make git supervisor tzdata \
Expand All @@ -17,8 +17,11 @@ RUN cd /infracheck \
# install as a package
&& git remote remove origin || true \
&& git remote add origin https://github.com/riotkit-org/infracheck.git \
&& apk add --update gcc python3-dev musl-dev linux-headers postgresql-dev \
&& make install \
\
&& apk add --no-cache --update --virtual BUILD_DEPS py3-pip gcc python3-dev musl-dev linux-headers postgresql-dev libffi-dev \
&& pip3 install pbr==5.4.5 \
&& pip3 install -r /infracheck/requirements.txt \
&& rkd :install \
# after installing as package extract infrastructural files
\
&& cp -pr /infracheck/entrypoint.sh / \
Expand All @@ -31,7 +34,7 @@ RUN cd /infracheck \
# simple check that application does not crash at the beginning (is correctly packaged)
&& infracheck --help \
\
&& apk del gcc python3-dev musl-dev linux-headers postgresql-dev
&& apk del BUILD_DEPS
RUN [ "cross-build-end" ]

ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit 727f4bf

Please sign in to comment.