10 Commits

Author SHA1 Message Date
914078cd22 Update 'Dockerfile'
Some checks failed
go-rpi-ws2811-lib/pipeline/head Build queued...
rgbarmlib64/pipeline/head Something is wrong with the build of this commit
2023-01-15 03:00:00 +00:00
b2876b8bf6 Update 'Dockerfile'
Some checks failed
rgbarmlib64/pipeline/head There was a failure building this commit
2023-01-15 02:53:46 +00:00
ec25ef0aeb Update 'Dockerfile'
Some checks failed
rgbarmlib64/pipeline/head There was a failure building this commit
2023-01-15 02:51:39 +00:00
cb929d7a28 Update 'Dockerfile'
Some checks failed
rgbarmlib64/pipeline/head There was a failure building this commit
2023-01-15 02:49:06 +00:00
035101fe03 Update 'Dockerfile'
All checks were successful
rgbarmlib64/pipeline/head This commit looks good
2023-01-10 01:30:10 +00:00
0e90d47310 Update 'Dockerfile'
All checks were successful
rgbarmlib64/pipeline/head This commit looks good
2023-01-08 22:28:23 +00:00
bb14cfa66a Update 'Jenkinsfile'
Some checks failed
rgbarmlib64/pipeline/head There was a failure building this commit
2023-01-08 22:18:03 +00:00
fcd7d1e2ce Add 'Jenkinsfil' 2023-01-08 22:17:44 +00:00
Nathan Wagner
ceaa1d7f73 updating readme for me 2022-07-17 16:09:25 -04:00
Nathan Wagner
465475c7a5 updating dockerfile to be real place of creating environment 2022-07-17 16:07:39 -04:00
3 changed files with 44 additions and 6 deletions

View File

@@ -1,15 +1,16 @@
FROM golang:1.18.3-buster as builder #FROM golang:1.18.3-buster as builder
FROM golang:alpine
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY . . COPY . .
RUN apt-get install -y git #RUN apt-get install -y git
RUN apk add git make g++
RUN go mod tidy -e RUN go mod tidy -e
RUN go mod vendor RUN go mod vendor
RUN mkdir -p /usr/local/include
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 ./...
RUN cp /usr/src/app/vendor/rpi-rgb-led-matrix/include/* /usr/local/include
FROM golang:1.18.3-buster RUN cp /usr/src/app/vendor/rpi-rgb-led-matrix/lib/* /usr/local/lib
COPY --from=builder /usr/src/app/vendor/rpi-rgb-led-matrix/lib/. /lib

25
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,25 @@
pipeline {
agent any
stages {
/*stage('GitCheckOut') {
steps{
checkout([$class: 'GitSCM', branches: [[name: "${env.CHECKOUT}"]], extensions: [], userRemoteConfigs: [[credentialsId: 'gitea', url: "$GIT_URL"]]])
}
}*/
stage('buildPush') {
steps{
sh 'docker buildx rm jenkins-agent || echo "none there"'
sh '''#!/bin/bash
docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --driver-opt=\\"image=registry.local/buildkit-wagnerca:stable-3-rootless\\" --use
'''
sh 'docker buildx build . -t registry.local/rgbarm64lib:v0.0.$BUILD_NUMBER --push --platform=linux/arm64,linux/amd64'
sh 'docker buildx build . -t registry.local/rgbarm64lib:latest --push --platform=linux/arm64,linux/amd64'
sh 'docker buildx rm jenkins-agent'
}
}
}
}

View File

@@ -1,3 +1,15 @@
# Nathan readme
sudo docker build . -t registry.local/rgbarm64lib:latest
running this will get the build environment created
go app has to be built in /usr/src/app/subdir directory for now
# go-rpi-rgb-led-matrix [![GoDoc](https://godoc.org/github.com/mcuadros/go-rpi-rgb-led-matrix?status.svg)](https://godoc.org/github.com/mcuadros/go-rpi-rgb-led-matrix) [![Build Status](https://travis-ci.org/mcuadros/go-rpi-rgb-led-matrix.svg?branch=master)](https://travis-ci.org/mcuadros/go-rpi-rgb-led-matrix) # go-rpi-rgb-led-matrix [![GoDoc](https://godoc.org/github.com/mcuadros/go-rpi-rgb-led-matrix?status.svg)](https://godoc.org/github.com/mcuadros/go-rpi-rgb-led-matrix) [![Build Status](https://travis-ci.org/mcuadros/go-rpi-rgb-led-matrix.svg?branch=master)](https://travis-ci.org/mcuadros/go-rpi-rgb-led-matrix)
<img width="250" src="https://cloud.githubusercontent.com/assets/1573114/20248154/c17c1f2e-a9dd-11e6-805b-bf7d8ee73121.gif" align="right" /> <img width="250" src="https://cloud.githubusercontent.com/assets/1573114/20248154/c17c1f2e-a9dd-11e6-805b-bf7d8ee73121.gif" align="right" />