forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upsteam/master'
- Loading branch information
Showing
359 changed files
with
32,184 additions
and
6,544 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 @@ | ||
# Starter pipeline | ||
# Start with a minimal pipeline that you can customize to build and deploy your code. | ||
# Add steps that build, run tests, deploy, and more: | ||
# https://aka.ms/yaml | ||
# Build and push sonic-mgmt image | ||
|
||
schedules: | ||
- cron: "0 8 * * *" | ||
branches: | ||
include: | ||
- master | ||
always: true | ||
|
||
trigger: none | ||
pr: | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- dockers/docker-sonic-mgmt | ||
|
||
parameters: | ||
- name: registry_url | ||
type: string | ||
default: sonicdev-microsoft.azurecr.io | ||
- name: registry_conn | ||
type: string | ||
default: sonicdev | ||
|
||
stages: | ||
- stage: Build | ||
jobs: | ||
- job: Build | ||
pool: sonicbld | ||
timeoutInMinutes: 360 | ||
steps: | ||
- template: cleanup.yml | ||
- checkout: self | ||
clean: true | ||
submodules: recursive | ||
- bash: | | ||
set -xe | ||
make configure PLATFORM=generic | ||
make target/docker-sonic-mgmt.gz | ||
docker load -i target/docker-sonic-mgmt.gz | ||
docker tag docker-sonic-mgmt $REGISTRY_SERVER/docker-sonic-mgmt:latest | ||
env: | ||
REGISTRY_SERVER: ${{ parameters.registry_url }} | ||
displayName: Build docker-sonic-mgmt.gz | ||
- task: Docker@2 | ||
displayName: Upload image | ||
inputs: | ||
containerRegistry: ${{ parameters.registry_conn }} | ||
repository: docker-sonic-mgmt | ||
command: push | ||
tags: latest |
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,107 @@ | ||
# Starter pipeline | ||
# Start with a minimal pipeline that you can customize to build and deploy your code. | ||
# Add steps that build, run tests, deploy, and more: | ||
# https://aka.ms/yaml | ||
# Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64 | ||
|
||
schedules: | ||
- cron: "0 8 * * *" | ||
branches: | ||
include: | ||
- master | ||
- 202012 | ||
always: true | ||
|
||
trigger: none | ||
pr: | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- sonic-slave-jessie | ||
- sonic-slave-stretch | ||
- sonic-slave-buster | ||
|
||
parameters: | ||
- name: 'arches' | ||
type: object | ||
default: | ||
- amd64 | ||
- armhf | ||
- arm64 | ||
- name: 'dists' | ||
type: object | ||
default: | ||
- buster | ||
- stretch | ||
- jessie | ||
- name: registry_url | ||
type: string | ||
default: sonicdev-microsoft.azurecr.io | ||
- name: registry_conn | ||
type: string | ||
default: sonicdev | ||
|
||
stages: | ||
- stage: Build | ||
jobs: | ||
- ${{ each dist in parameters.dists }}: | ||
- ${{ if endswith(variables['Build.DefinitionName'], dist) }}: | ||
- ${{ each arch in parameters.arches }}: | ||
- job: Build_${{ dist }}_${{ arch }} | ||
timeoutInMinutes: 360 | ||
pool: sonicbld | ||
steps: | ||
- template: cleanup.yml | ||
- checkout: self | ||
clean: true | ||
submodules: recursive | ||
- bash: | | ||
set -ex | ||
containers=$(docker container ls | grep "sonic-slave" | awk '{ print $1 }') | ||
if [ ! -z "$containers" ]; then | ||
docker container kill $containers || true | ||
sleep 5 | ||
fi | ||
images=$(docker images 'sonic-slave-*' -a -q) | ||
if [ ! -z "$images" ]; then | ||
docker rmi -f $images | ||
fi | ||
SLAVE_DIR=sonic-slave-${{ dist }} | ||
if [ x${{ arch }} == x"amd64" ]; then | ||
SLAVE_BASE_IMAGE=${SLAVE_DIR} | ||
else | ||
SLAVE_BASE_IMAGE=${SLAVE_DIR}-march-${{ arch }} | ||
fi | ||
tmpfile=$(mktemp) | ||
echo ${{ arch }} > .arch | ||
DOCKER_DATA_ROOT_FOR_MULTIARCH=/data/march/docker BLDENV=${{ dist }} make -f Makefile.work sonic-slave-build | tee $tmpfile | ||
SLAVE_BASE_TAG=$(grep "^Checking sonic-slave-base image:" $tmpfile | awk -F ':' '{print $3}') | ||
SLAVE_TAG=$(grep "^Checking sonic-slave image:" $tmpfile | awk -F ':' '{print $3}') | ||
mkdir -p target | ||
docker tag $SLAVE_BASE_IMAGE:$SLAVE_BASE_TAG $REGISTRY_SERVER/$SLAVE_BASE_IMAGE:latest | ||
docker tag $SLAVE_BASE_IMAGE:$SLAVE_BASE_TAG $REGISTRY_SERVER/$SLAVE_BASE_IMAGE:$SLAVE_BASE_TAG | ||
set +x | ||
echo "##vso[task.setvariable variable=VARIABLE_SLAVE_BASE_IMAGE]$SLAVE_BASE_IMAGE" | ||
echo "##vso[task.setvariable variable=VARIABLE_SLAVE_BASE_TAG]$SLAVE_BASE_TAG" | ||
env: | ||
REGISTRY_SERVER: ${{ parameters.registry_url }} | ||
displayName: Build sonic-slave-${{ dist }}-${{ arch }} | ||
- task: Docker@2 | ||
displayName: Upload image | ||
inputs: | ||
containerRegistry: ${{ parameters.registry_conn }} | ||
repository: $(VARIABLE_SLAVE_BASE_IMAGE) | ||
command: push | ||
tags: | | ||
$(VARIABLE_SLAVE_BASE_TAG) | ||
latest |
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,27 @@ | ||
# Starter pipeline | ||
# Start with a minimal pipeline that you can customize to build and deploy your code. | ||
# Add steps that build, run tests, deploy, and more: | ||
# https://aka.ms/yaml | ||
# Clean up the cache 30 days ago | ||
|
||
schedules: | ||
- cron: "0 0 * * *" | ||
branches: | ||
include: | ||
- master | ||
always: true | ||
|
||
trigger: none | ||
pr: none | ||
|
||
jobs: | ||
- job: Build | ||
pool: sonicbld | ||
timeoutInMinutes: 5 | ||
steps: | ||
- checkout: none | ||
- script: | | ||
set -xe | ||
sudo find /nfs/dpkg_cache/ -name *.tgz -mtime +30 -type f -delete | ||
displayName: clean dpkg cache | ||
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
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,40 @@ | ||
# libsensors configuration file for as4630-54pe | ||
# ------------------------------------------------ | ||
# | ||
|
||
bus "i2c-3" "i2c-1-mux (chan_id 1)" | ||
bus "i2c-10" "i2c-2-mux (chan_id 0)" | ||
bus "i2c-11" "i2c-2-mux (chan_id 1)" | ||
bus "i2c-14" "i2c-2-mux (chan_id 4)" | ||
bus "i2c-24" "i2c-3-mux (chan_id 6)" | ||
bus "i2c-25" "i2c-3-mux (chan_id 7)" | ||
|
||
|
||
chip "ype1200am-i2c-*-58" | ||
label in3 "PSU 1 Voltage" | ||
label fan1 "PSU 1 Fan" | ||
label temp1 "PSU 1 Temperature" | ||
label power2 "PSU 1 Power" | ||
label curr2 "PSU 1 Current" | ||
|
||
chip "ype1200am-i2c-*-59" | ||
label in3 "PSU 2 Voltage" | ||
label fan1 "PSU 2 Fan" | ||
label temp1 "PSU 2 Temperature" | ||
label power2 "PSU 2 Power" | ||
label curr2 "PSU 2 Current" | ||
|
||
chip "as4630_54pe_cpld-*" | ||
label fan1 "Fan 1" | ||
label fan2 "Fan 2" | ||
label fan3 "Fan 3" | ||
|
||
|
||
chip "lm77-i2c-*-48" | ||
label temp1 "Main Board Temperature" | ||
|
||
chip "lm75-i2c-*-4a" | ||
label temp1 "Fan Board Temperature" | ||
|
||
chip "lm75-i2c-*-4b" | ||
label temp1 "CPU Board Temperature" |
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,40 @@ | ||
# libsensors configuration file for as4630-54te | ||
# ------------------------------------------------ | ||
# | ||
|
||
bus "i2c-3" "i2c-1-mux (chan_id 1)" | ||
bus "i2c-10" "i2c-2-mux (chan_id 0)" | ||
bus "i2c-11" "i2c-2-mux (chan_id 1)" | ||
bus "i2c-14" "i2c-2-mux (chan_id 4)" | ||
bus "i2c-24" "i2c-3-mux (chan_id 6)" | ||
bus "i2c-25" "i2c-3-mux (chan_id 7)" | ||
|
||
|
||
chip "ype1200am-i2c-*-58" | ||
label in3 "PSU 1 Voltage" | ||
label fan1 "PSU 1 Fan" | ||
label temp1 "PSU 1 Temperature" | ||
label power2 "PSU 1 Power" | ||
label curr2 "PSU 1 Current" | ||
|
||
chip "ype1200am-i2c-*-59" | ||
label in3 "PSU 2 Voltage" | ||
label fan1 "PSU 2 Fan" | ||
label temp1 "PSU 2 Temperature" | ||
label power2 "PSU 2 Power" | ||
label curr2 "PSU 2 Current" | ||
|
||
chip "as4630_54te_cpld-*" | ||
label fan1 "Fan 1" | ||
label fan2 "Fan 2" | ||
label fan3 "Fan 3" | ||
|
||
|
||
chip "lm77-i2c-*-48" | ||
label temp1 "Main Board Temperature" | ||
|
||
chip "lm75-i2c-*-4a" | ||
label temp1 "Fan Board Temperature" | ||
|
||
chip "lm75-i2c-*-4b" | ||
label temp1 "CPU Board Temperature" |
Oops, something went wrong.