This repository was archived by the owner on Apr 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Fix compile issues #85
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
f3e41b3
clean go download
johnoloughlin 7bda577
making changes to the go vpp api
johnoloughlin 6c94c74
updating govpp api 0.7
johnoloughlin ea8e9b8
updating go mods
johnoloughlin 5cba966
update static scan tool settings
johnoloughlin 73f83a6
adding Dockerfile
johnoloughlin 9fdff5a
update github action
johnoloughlin 20864a0
updating go test vpp links
johnoloughlin 7d2e525
update github action hadolint
johnoloughlin beba4d1
go mod tidy & githubtool updates
johnoloughlin 9960eae
api updates
johnoloughlin f37a69d
update addip section to work with new api
johnoloughlin 957c06e
Adding copy command to userspace dockerfile
johnoloughlin bb51497
fix find bridge function
johnoloughlin 7d958fb
tidy vpp memif
johnoloughlin 89af761
bump go version
johnoloughlin 3ff5cd3
increase timeout for github action
johnoloughlin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -12,11 +12,21 @@ jobs: | |
egress-policy: audit | ||
|
||
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 | ||
- name: remove deployer container from dockerfile | ||
run: sed -ie '/End of builder/,+5d' ./docker/userspacecni/Dockerfile | ||
- name: Build the Docker image | ||
run: docker build . -f ./docker/userspacecni/Dockerfile -t userspacecni:latest | ||
- name: run container | ||
run: docker run --name userspacecni -itd userspacecni:latest bash | ||
- name: docker copy generated bin api files | ||
run: docker cp userspacecni:/root/userspace-cni-network-plugin/cnivpp ./ | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018 # v2.5.2 | ||
with: | ||
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. | ||
version: v1.52.2 | ||
args: --timeout=20m | ||
|
||
shellcheck: | ||
name: Shellcheck | ||
|
@@ -30,6 +40,7 @@ jobs: | |
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 | ||
- name: Run ShellCheck | ||
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # master | ||
|
||
hadolint: | ||
runs-on: ubuntu-latest | ||
name: Hadolint | ||
|
@@ -39,11 +50,12 @@ jobs: | |
with: | ||
egress-policy: audit | ||
|
||
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 | ||
- uses: brpaz/hadolint-action@7e374b112fd3e7e6ea346131c40e17c7254f64bf # v1.2.1 | ||
- uses: actions/checkout@v3 | ||
- uses: hadolint/hadolint-action@v3.1.0 | ||
name: Run Hadolint | ||
with: | ||
dockerfile: Dockerfile | ||
dockerfile: ./docker/userspacecni/Dockerfile | ||
ignore: DL3008,DL3059 | ||
|
||
go-check: | ||
runs-on: ubuntu-latest | ||
|
@@ -55,15 +67,26 @@ jobs: | |
|
||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | ||
|
||
- name: remove deployer container from dockerfile | ||
run: sed -ie '/End of builder/,+5d' ./docker/userspacecni/Dockerfile | ||
- name: Build the Docker image | ||
run: docker build . -f ./docker/userspacecni/Dockerfile -t userspacecni:latest | ||
- name: run container | ||
run: docker run --name userspacecni -itd userspacecni:latest bash | ||
- name: docker copy generated bin api files | ||
run: docker cp userspacecni:/root/userspace-cni-network-plugin/cnivpp ./ | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 | ||
with: | ||
go-version: 1.18.x | ||
go-version: 1.20.1 | ||
|
||
- name: checkout dockerfile to avoid false diff | ||
run: git checkout ./docker/userspacecni/Dockerfile | ||
# if this fails, run go mod tidy | ||
- name: Check if module files are consistent with code | ||
run: go mod tidy && git diff --exit-code | ||
run: go mod tidy && go get go.fd.io/govpp/binapigen/[email protected] && git diff --exit-code #need package for bin api but not working with tidy | ||
|
||
# if this fails, run go mod vendor | ||
- name: Check if vendor directory is consistent with go modules | ||
run: go mod vendor && git diff --exit-code | ||
run: go mod vendor && git diff --exit-code |
This file contains hidden or 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 |
---|---|---|
|
@@ -130,7 +130,7 @@ endif | |
endif | ||
|
||
install: | ||
go get git.fd.io/govpp.git/cmd/[email protected] | ||
go get go.fd.io/govpp/cmd/[email protected] | ||
ifeq ($(VPPINSTALLED),0) | ||
@echo VPP not installed, installing required files. Run *sudo make clean* to remove installed files. | ||
@mkdir -p tmpvpp/ | ||
|
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.