-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from leonnicolas/rm-vendor-update-golang
rm vendor update golang
- Loading branch information
Showing
3,262 changed files
with
232 additions
and
1,180,997 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: test | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
e2e: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- run: | | ||
sudo apt update | ||
sudo apt install libusb-1.0-0-dev -y | ||
- run: docker build -t "nudl:e2e" . | ||
- run: go test . |
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,10 +1,18 @@ | ||
FROM golang:1.22-bullseye as build | ||
FROM golang:1.23-bookworm AS build | ||
|
||
RUN apt-get update && apt-get install libusb-1.0-0-dev -y | ||
COPY . /nudl | ||
|
||
WORKDIR /nudl | ||
|
||
COPY go.mod go.sum /nudl/ | ||
RUN go mod download | ||
|
||
COPY main.go /nudl | ||
RUN ls -la | ||
WORKDIR /nudl | ||
RUN go build --mod=vendor -o nudl | ||
RUN go build -o nudl | ||
|
||
FROM debian:bullseye-slim | ||
FROM debian:bookworm-slim | ||
RUN apt-get update && apt-get install libusb-1.0-0-dev -y | ||
COPY --from=build /nudl/nudl . | ||
ENTRYPOINT ["./nudl"] |
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: nudl | ||
namespace: default | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: nudl | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- nodes | ||
verbs: | ||
- patch | ||
- get | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: nudl | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: nudl | ||
subjects: | ||
- kind: ServiceAccount | ||
name: nudl | ||
namespace: default | ||
--- | ||
kind: DaemonSet | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: nudl | ||
labels: | ||
app.kubernetes.io/name: nudl | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: nudl | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: nudl | ||
spec: | ||
serviceAccountName: nudl | ||
containers: | ||
- name: nudl | ||
image: "nudl:e2e" | ||
imagePullPolicy: IfNotPresent | ||
args: | ||
- --hostname=$(NODE_NAME) | ||
- --no-contain=usb,hub | ||
- --human-readable=false | ||
- --only=test_test | ||
env: | ||
- name: NODE_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
ports: | ||
- name: http | ||
containerPort: 8080 |
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
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.