-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbefede
commit 725522d
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
FROM arm32v7/python:3.7 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
COPY qemu-arm-static /usr/bin | ||
|
||
# Requirements have to be pulled and installed here, otherwise caching won't work | ||
COPY requirements.txt requirements.txt | ||
COPY requirements-dev.txt requirements-dev.txt | ||
RUN pip install -r requirements-dev.txt | ||
RUN pip install -r requirements.txt | ||
|
||
WORKDIR /bot | ||
|
||
COPY . /bot/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
# downloads a local copy of qemu on docker-hub build machines | ||
curl -L https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-arm.tar.gz | tar zxvf - -C . && mv qemu-3.0.0+resin-arm/qemu-arm-static . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
# Register qemu-*-static for all supported processors except the | ||
# current one, but also remove all registered binfmt_misc before | ||
docker run --rm --privileged multiarch/qemu-user-static:register --reset |