Skip to content

Commit

Permalink
Merge pull request sighmon#21 from mt-inside/mt-docker-cross-compile
Browse files Browse the repository at this point in the history
Enable and document docker cross-compiles
  • Loading branch information
tijmenvandenbrink committed Jul 23, 2022
2 parents 75ef142 + 57762a5 commit 8b26866
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM ubuntu:20.04
ARG ARCH=
FROM ${ARCH}ubuntu:20.04

RUN ln -fs /usr/share/zoneinfo/Europe/London /etc/localtime

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ There is a Dockerfile available if you'd like to run as a docker container.

```docker run -d enviroplus-exporter -d -p 8000:8000 --device=/dev/i2c-1 --device=/dev/gpiomem --device=/dev/ttyAMA0 enviroplus-exporter```

Using [BuildKit](https://docs.docker.com/develop/develop-images/build_enhancements/) you can build Raspberry Pi compatible images on an amd64.

```docker buildx build --platform linux/arm/v7,linux/arm64/v8 .```

<!-- ROADMAP -->
## Roadmap

Expand Down

0 comments on commit 8b26866

Please sign in to comment.