Skip to content

Commit

Permalink
Add build instructions to readme
Browse files Browse the repository at this point in the history
Signed-off-by: Muvaffak Onus <[email protected]>
  • Loading branch information
muvaf committed Dec 7, 2020
1 parent 607321a commit b35cee3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ scrape_configs:
- localhost:9233
```
## Docker Build Instructions
Build for both `arm64` and `amd64`:
```
docker build -t fffonion/tplink-plug-exporter:latest-arm64 --platform linux/arm64 --build-arg GOARCH=arm64 .
docker build -t fffonion/tplink-plug-exporter:latest-amd64 --platform linux/amd64 --build-arg GOARCH=arm64 .
```
Merge them in one manifest:
```
docker manifest create fffonion/tplink-plug-exporter:latest --amend fffonion/tplink-plug-exporter:latest-arm64 --amend fffonion/tplink-plug-exporter:latest-amd64
docker push fffonion/tplink-plug-exporter:latest
```
## See also
- Original reverse engineering work: https://github.com/softScheck/tplink-smartplug

0 comments on commit b35cee3

Please sign in to comment.