-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sonic-net:main' into dash-config-generator
- Loading branch information
Showing
575 changed files
with
48,664 additions
and
6,650 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
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,57 @@ | ||
name: DASH-DPDK-CI | ||
|
||
on: | ||
push: | ||
branches: [ "**" ] | ||
paths: | ||
- '.gitmodules' | ||
- '.github/workflows/dash-dpdk-ci.yml' | ||
- 'test/**.py' | ||
- 'test/**requirements.txt' | ||
- 'test/**.sh' | ||
- 'test/**.yml' | ||
- 'dash-pipeline/**' | ||
- '!dash-pipeline/dockerfiles/Dockerfile.*' | ||
- 'dash-pipeline/dockerfiles/DOCKER_P4C_DPDK_IMG.env' | ||
- '!dash-pipeline/.dockerignore' | ||
- '!dash-pipeline/**.md' | ||
- '!dash-pipeline/**.svg' | ||
- '!dash-pipeline/**.png' | ||
- '!dash-pipeline/**.txt' | ||
pull_request: | ||
branches: [ "**" ] | ||
paths: | ||
- '.gitmodules' | ||
- '.github/workflows/dash-bmv2-ci.yml' | ||
- 'test/**.py' | ||
- 'test/**requirements.txt' | ||
- 'test/**.sh' | ||
- 'test/**.yml' | ||
- 'dash-pipeline/**' | ||
- '!dash-pipeline/dockerfiles/Dockerfile.*' | ||
- 'dash-pipeline/dockerfiles/DOCKER_P4C_DPDK_IMG.env' | ||
- '!dash-pipeline/.dockerignore' | ||
- '!dash-pipeline/**.md' | ||
- '!dash-pipeline/**.svg' | ||
- '!dash-pipeline/**.png' | ||
- '!dash-pipeline/**.txt' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build DASH Pipeline for P4-DPDK | ||
runs-on: ubuntu-20.04 | ||
env: | ||
docker_fg_flags: --privileged | ||
docker_fg_root_flags: --privileged -u root | ||
docker_bg_flags: -d --privileged | ||
defaults: | ||
run: | ||
working-directory: ./dash-pipeline | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Pull/Build docker p4c-dpdk image | ||
run: make docker-dash-p4c-dpdk | ||
- name: Build P4 software switch (dpdk) and P4Info | ||
run: DOCKER_FLAGS=$docker_fg_flags make p4c-dpdk-pna | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: DASH-docker-p4c-dpdk-build-image | ||
|
||
on: | ||
push: | ||
branches: [ "**" ] | ||
paths: | ||
- '.github/workflows/dash-p4c-dpdk-docker.yml' | ||
- 'dash-pipeline/dockerfiles/Dockerfile.p4c-dpdk' | ||
- 'dash-pipeline/dockerfiles/DOCKER_P4C_DPDK_IMG.env' | ||
- 'dash-pipeline/.dockerignore' | ||
- 'dash-pipeline/dockerfiles/.dockerignore' | ||
pull_request: | ||
branches: [ "**" ] | ||
paths: | ||
- '.github/workflows/dash-p4c-dpdk-docker.yml' | ||
- 'dash-pipeline/dockerfiles/Dockerfile.p4c-dpdk' | ||
- 'dash-pipeline/dockerfiles/DOCKER_P4C_DPDK_IMG.env' | ||
- 'dash-pipeline/.dockerignore' | ||
- 'dash-pipeline/dockerfiles/.dockerignore' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build docker dash-p4c-dpdk image | ||
runs-on: ubuntu-20.04 | ||
defaults: | ||
run: | ||
working-directory: ./dash-pipeline | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build dash-p4c-dpdk docker image | ||
run: make docker-dash-p4c-dpdk | ||
|
||
- uses: azure/docker-login@v1 | ||
if: ${{ github.event_name != 'pull_request' && github.repository == 'sonic-net/DASH' }} | ||
with: | ||
login-server: sonicdash.azurecr.io | ||
username: ${{ secrets.DASH_ACR_USERNAME }} | ||
password: ${{ secrets.DASH_ACR_PASSWORD }} | ||
- name: Publish dash-p4c-dpdk docker image to ACR | ||
run: make docker-publish-dash-p4c-dpdk | ||
if: ${{ github.event_name != 'pull_request' && github.repository == 'sonic-net/DASH' }} |
57 changes: 57 additions & 0 deletions
57
.github/workflows/dash-saichallenger-client-bldr-docker.yml
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,57 @@ | ||
name: DASH-docker-saichallenger-client-bldr-img | ||
|
||
on: | ||
push: | ||
branches: [ "**" ] | ||
paths: | ||
- '.github/workflows/dash-saichallenger-client-bldr-docker.yml' | ||
- 'dash-pipeline/Makefile' | ||
- 'dash-pipeline/dockerfiles/Dockerfile.saichallenger-client-bldr' | ||
- 'dash-pipeline/dockerfiles/DOCKER_SAI_CHALLENGER_CLIENT_BLDR_IMG.env' | ||
- 'dash-pipeline/.dockerignore' | ||
- 'dash-pipeline/dockerfiles/.dockerignore' | ||
pull_request: | ||
branches: [ "**" ] | ||
paths: | ||
- '.github/workflows/dash-saichallenger-client-bldr-docker.yml' | ||
- 'dash-pipeline/Makefile' | ||
- 'dash-pipeline/dockerfiles/Dockerfile.saichallenger-client-bldr' | ||
- 'dash-pipeline/dockerfiles/DOCKER_SAI_CHALLENGER_CLIENT_BLDR_IMG.env' | ||
- 'dash-pipeline/.dockerignore' | ||
- 'dash-pipeline/dockerfiles/.dockerignore' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build dash-saichallenger-client-bldr-image | ||
runs-on: ubuntu-20.04 | ||
env: | ||
docker_fg_flags: -u root --privileged | ||
docker_bg_flags: -d -u root --privileged | ||
defaults: | ||
run: | ||
working-directory: ./dash-pipeline | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Pull docker p4c image | ||
run: make docker-pull-dash-p4c | ||
- name: Build P4 software switch (bmv2) and P4Info | ||
run: DOCKER_FLAGS=$docker_fg_flags make p4 | ||
- name: Install SAI submodule | ||
run: git submodule update --init | ||
- name: Generate SAI API | ||
run: DOCKER_FLAGS=$docker_fg_flags make sai | ||
- name: Generate SAI-Thrift client and server code and libs | ||
run: DOCKER_FLAGS=$docker_fg_flags make saithrift-server | ||
- name: Build SAI-Challenger client builder base docker image | ||
run: DOCKER_FLAGS=$docker_fg_flags make docker-saichallenger-client-bldr | ||
|
||
- uses: azure/docker-login@v1 | ||
if: ${{ github.event_name != 'pull_request' && github.repository == 'sonic-net/DASH' }} | ||
with: | ||
login-server: sonicdash.azurecr.io | ||
username: ${{ secrets.DASH_ACR_USERNAME }} | ||
password: ${{ secrets.DASH_ACR_PASSWORD }} | ||
- name: Publish SAI-Challenger client builder base docker image | ||
run: make docker-publish-saichallenger-client-bldr | ||
if: ${{ github.event_name != 'pull_request' && github.repository == 'sonic-net/DASH' }} |
Oops, something went wrong.