Enable reproducible build in base docker image sonic-slave-* (#8116)
This commit is contained in:
parent
4b3b4c0ce1
commit
31c5797015
@ -44,7 +44,7 @@ jobs:
|
||||
sudo modprobe overlay
|
||||
sudo apt-get install -y acl
|
||||
sudo bash -c "echo 1 > /proc/sys/vm/compact_memory"
|
||||
ENABLE_DOCKER_BASE_PULL=y make PLATFORM=$(PLATFORM_AZP) PLATFORM_ARCH=$(PLATFORM_ARCH) configure
|
||||
ENABLE_DOCKER_BASE_PULL=y make PLATFORM=$(PLATFORM_AZP) PLATFORM_ARCH=$(PLATFORM_ARCH) $(BUILD_OPTIONS) configure
|
||||
displayName: 'Make configure'
|
||||
postSteps:
|
||||
- script: cp target -r $(Build.ArtifactStagingDirectory)/
|
||||
|
@ -43,6 +43,11 @@ parameters:
|
||||
type: string
|
||||
default: sonicdev
|
||||
|
||||
variables:
|
||||
- ${{ if and(startsWith(variables['Build.SourceBranchName'], '202'), eq(length(variables['Build.SourceBranchName']), 6)) }}:
|
||||
- name: BUILD_OPTIONS
|
||||
value: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web'
|
||||
|
||||
stages:
|
||||
- stage: Build
|
||||
jobs:
|
||||
@ -81,7 +86,7 @@ stages:
|
||||
|
||||
echo ${{ arch }} > .arch
|
||||
|
||||
DOCKER_DATA_ROOT_FOR_MULTIARCH=/data/march/docker BLDENV=${{ dist }} make -f Makefile.work sonic-slave-build | tee $tmpfile
|
||||
DOCKER_DATA_ROOT_FOR_MULTIARCH=/data/march/docker BLDENV=${{ dist }} $(BUILD_OPTIONS) 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}')
|
||||
|
||||
|
1
slave.mk
1
slave.mk
@ -261,6 +261,7 @@ $(info "INCLUDE_MACSEC" : "$(INCLUDE_MACSEC)")
|
||||
$(info "TELEMETRY_WRITABLE" : "$(TELEMETRY_WRITABLE)")
|
||||
$(info "PDDF_SUPPORT" : "$(PDDF_SUPPORT)")
|
||||
$(info "MULTIARCH_QEMU_ENVIRON" : "$(MULTIARCH_QEMU_ENVIRON)")
|
||||
$(info "SONIC_VERSION_CONTROL_COMPONENTS": "$(SONIC_VERSION_CONTROL_COMPONENTS)")
|
||||
$(info )
|
||||
else
|
||||
$(info SONiC Build System for $(CONFIGURED_PLATFORM):$(CONFIGURED_ARCH))
|
||||
|
Loading…
Reference in New Issue
Block a user