Skip to content

Commit

Permalink
add legacy otn vs image build flow, fix openssh version and compile e…
Browse files Browse the repository at this point in the history
…rror
  • Loading branch information
sonic-otn committed Nov 3, 2023
1 parent dbaa752 commit 9740fdc
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 30 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/otn-legacy-vs-image-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: otn-legacy-vs-build

on:
push:
branches: [ "otn_legacy" ]
pull_request:
branches: [ "otn_legacy" ]
workflow_dispatch:

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: sonic-otn-server

steps:
- uses: actions/checkout@v3
with:
path: legacy_${{github.run_number}}

- name: build
run: |
cd legacy_${{github.run_number}}
make init
make configure PLATFORM=vs
export USERNAME=root
export PASSWORD=root
export CLIUSER=admin
export CLIUSER_PASSWORD=admin
BUILD_MULTIASIC_KVM=y make target/sonic-vs.img.gz
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: otn-legacy-artifact
path: |
legacy_${{github.run_number}}/sonic-installer.img
legacy_${{github.run_number}}/target/*.img.gz
27 changes: 0 additions & 27 deletions .github/workflows/otn-vs-image-build.yml

This file was deleted.

6 changes: 3 additions & 3 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
tcpdump \
dbus \
ntpstat \
openssh-server \
openssh-sftp-server=1:7.9p1-10+deb10u2 \
openssh-client=1:7.9p1-10+deb10u2 \
openssh-server=1:7.9p1-10+deb10u2 \
python \
python-apt \
traceroute \
Expand Down Expand Up @@ -488,8 +490,6 @@ done < files/image_config/sysctl/sysctl-net.conf
sudo augtool --autosave "$sysctl_net_cmd_string" -r $FILESYSTEM_ROOT

# Upgrade pip via PyPI and uninstall the Debian version
sudo chroot $FILESYSTEM_ROOT pip3 config set global.index-url http://mirrors.aliyun.com/pypi/simple
sudo chroot $FILESYSTEM_ROOT pip3 config set install.trusted-host mirrors.aliyun.com
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install --upgrade pip
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get purge -y python-pip python3-pip

Expand Down

0 comments on commit 9740fdc

Please sign in to comment.