-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update deps and go version. Move to embed from pkger * More updates. Fix build process * tidy * update circle * Pin debian version * build in circle * use cimg golang * fix circle * update cirlce * update circle * remove apk * Verify experimental features * update docker * fix help command * armv6 * Disable build in circle
- Loading branch information
Andrew Suderman
committed
Nov 13, 2021
1 parent
fc184da
commit efae8fa
Showing
10 changed files
with
109 additions
and
94 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
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,16 +1,26 @@ | ||
FROM balenalib/raspberry-pi-golang:1.12-build AS builder | ||
RUN [ "cross-build-start" ] | ||
WORKDIR /tmp | ||
ENV GO111MODULE=on | ||
RUN apt-get update -y && apt-get install -y scons | ||
RUN git clone https://github.com/jgarff/rpi_ws281x.git && \ | ||
cd rpi_ws281x && \ | ||
scons | ||
RUN [ "cross-build-end" ] | ||
# Stage 0 : Build the C library | ||
|
||
FROM balenalib/raspberry-pi-golang:1.12 | ||
RUN [ "cross-build-start" ] | ||
ENV GO111MODULE=on | ||
COPY --from=builder /tmp/rpi_ws281x/*.a /usr/local/lib/ | ||
COPY --from=builder /tmp/rpi_ws281x/*.h /usr/local/include/ | ||
RUN [ "cross-build-end" ] | ||
FROM debian:bullseye AS lib_builder | ||
|
||
WORKDIR /foundry | ||
|
||
RUN apt-get update -y && apt-get install -y \ | ||
build-essential \ | ||
cmake \ | ||
git | ||
|
||
RUN git clone https://github.com/jgarff/rpi_ws281x.git \ | ||
&& cd rpi_ws281x \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake -D BUILD_SHARED=OFF -D BUILD_TEST=OFF .. \ | ||
&& cmake --build . \ | ||
&& make install | ||
|
||
# Stage 1 : Build a go image with the rpi_ws281x C library and the go wrapper | ||
|
||
FROM golang:1.17 | ||
COPY --from=lib_builder /usr/local/lib/libws2811.a /usr/local/lib/ | ||
COPY --from=lib_builder /usr/local/include/ws2811 /usr/local/include/ws2811 | ||
|
||
RUN go get github.com/rpi-ws281x/rpi-ws281x-go |
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
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
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,25 +1,35 @@ | ||
module github.com/sudermanjr/led-controller | ||
|
||
go 1.13 | ||
go 1.17 | ||
|
||
require ( | ||
github.com/brutella/hc v1.2.0 | ||
github.com/google/go-cmp v0.4.0 // indirect | ||
github.com/gorilla/mux v1.7.3 | ||
github.com/lucasb-eyer/go-colorful v1.0.3 | ||
github.com/markbates/pkger v0.14.0 | ||
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 | ||
github.com/rpi-ws281x/rpi-ws281x-go v1.0.5 | ||
github.com/rpi-ws281x/rpi-ws281x-go v1.0.8 | ||
github.com/satori/go.uuid v1.2.0 | ||
github.com/spf13/cobra v0.0.5 | ||
github.com/spf13/pflag v1.0.5 | ||
github.com/stretchr/testify v1.4.0 | ||
golang.org/x/crypto v0.0.0-20190621222207-cc06ce4a13d4 // indirect | ||
golang.org/x/image v0.0.0-20200119044424-58c23975cae1 | ||
k8s.io/klog v1.0.0 | ||
periph.io/x/periph v3.6.2+incompatible | ||
) | ||
|
||
require ( | ||
github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412 // indirect | ||
github.com/brutella/dnssd v1.1.0 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/gosexy/to v0.0.0-20141221203644-c20e083e3123 // indirect | ||
github.com/inconshreveable/mousetrap v1.0.0 // indirect | ||
github.com/miekg/dns v1.1.4 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/tadglines/go-pkgs v0.0.0-20140924210655-1f86682992f1 // indirect | ||
golang.org/x/crypto v0.0.0-20190621222207-cc06ce4a13d4 // indirect | ||
golang.org/x/net v0.0.0-20191004110552-13f9640d40b9 // indirect | ||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect | ||
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456 // indirect | ||
gotest.tools v2.2.0+incompatible | ||
k8s.io/klog v1.0.0 | ||
periph.io/x/periph v3.6.2+incompatible | ||
gopkg.in/yaml.v2 v2.2.7 // indirect | ||
) |
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
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
Oops, something went wrong.