alskdjaslkdjas

master
nathan 2 years ago
parent a9bdf22e57
commit bf87ebdb3e

@ -1,10 +1,15 @@
FROM golang:1.18.3-buster FROM golang:1.18.3-buster as builder
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY . . COPY . .
RUN apt-get install -y git RUN apt-get install -y git
RUN go mod tidy -e
RUN go mod vendor
WORKDIR /usr/src/app/vendor/rpi-rgb-led-matrix/ WORKDIR /usr/src/app/vendor/rpi-rgb-led-matrix/
RUN git submodule update --init RUN git submodule update --init
RUN make RUN make
WORKDIR /usr/src/app WORKDIR /usr/src/app
RUN go install -v ./... RUN go install -v ./...
FROM golang:1.18.3-buster
COPY --from=builder /usr/src/app/vendor/rpi-rgb-led-matrix/lib/. /lib

@ -7,7 +7,7 @@ import (
"time" "time"
"github.com/fogleman/gg" "github.com/fogleman/gg"
"github.com/mcuadros/go-rpi-rgb-led-matrix" "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix"
) )
var ( var (

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"image/color" "image/color"
"github.com/mcuadros/go-rpi-rgb-led-matrix" "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix"
) )
var ( var (

@ -6,7 +6,7 @@ import (
"time" "time"
"github.com/disintegration/imaging" "github.com/disintegration/imaging"
"github.com/mcuadros/go-rpi-rgb-led-matrix" "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix"
) )
var ( var (

@ -4,9 +4,8 @@ import (
"flag" "flag"
"os" "os"
"time" "time"
"gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix"
"github.com/mcuadros/go-rpi-rgb-led-matrix" "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix/rpc"
"github.com/mcuadros/go-rpi-rgb-led-matrix/rpc"
) )
var ( var (

@ -2,9 +2,8 @@ package main
import ( import (
"flag" "flag"
"gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix"
"github.com/mcuadros/go-rpi-rgb-led-matrix" "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix/rpc"
"github.com/mcuadros/go-rpi-rgb-led-matrix/rpc"
) )
var ( var (

@ -1,3 +1,3 @@
module gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix.git module gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix
go 1.17 go 1.17

@ -43,7 +43,7 @@ import (
"os" "os"
"unsafe" "unsafe"
"github.com/mcuadros/go-rpi-rgb-led-matrix/emulator" "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix/emulator"
) )
// DefaultConfig default WS281x configuration // DefaultConfig default WS281x configuration

@ -5,7 +5,7 @@ import (
"image/color" "image/color"
"net/rpc" "net/rpc"
"github.com/mcuadros/go-rpi-rgb-led-matrix" "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix"
) )
func init() { func init() {

@ -8,7 +8,7 @@ import (
"net/http" "net/http"
"net/rpc" "net/rpc"
"github.com/mcuadros/go-rpi-rgb-led-matrix" "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix"
) )
type RPCMatrix struct { type RPCMatrix struct {

Loading…
Cancel
Save