Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #2

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 10 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,19 @@
# Build Switch Images - buildimage
## Build Switch Images - buildimage

# Description
Build an [Open Network Install Environment (ONIE)](https://github.com/opencomputeproject/onie) compatiable network operating system (NOS) installer image for network switches, and also build docker images running inside the NOS.
Build an [Open Network Install Environment (ONIE)](https://github.com/opencomputeproject/onie) compatible network operating system (NOS) installer image for network switches, and also build docker images running inside the NOS.

# Prerequisite
## 1. Build environment
Preferably use [the Dockerfile](https://github.com/Azure/sonic-build-tools/blob/master/sonic-slave/Dockerfile), or use Debian Jessie and manually install packages appearing in the Dockerfile.
## 2. Linux kernel with switch drivers
Build the [Azure/sonic-linux-kernel](https://github.com/Azure/sonic-linux-kernel) project and copy the output .deb file into ./deps directory.

## 3. initramfs-tools with loop device support
Run the script to build the .deb file into ./deps directory.
## Prerequisites
**1.** Build environment - Preferably use [the Dockerfile](https://github.com/Azure/sonic-build-tools/blob/master/sonic-slave/Dockerfile), or use Debian Jessie and manually install packages appearing in the Dockerfile.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this 1. does not format well in github.com, can you check.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dell - Internal Use - Confidential
Added a space after 1.

From: lguohan [mailto:notifications@github.com]
Sent: Tuesday, August 02, 2016 4:09 PM
To: Azure/sonic-buildimage sonic-buildimage@noreply.github.com
Cc: Buck, Amy Amy_Buck@Dell.com; Author author@noreply.github.com
Subject: Re: [Azure/sonic-buildimage] Update README.md (#2)

In README.mdhttps://github.com//pull/2#discussion_r73254981:

-# Prerequisite

-## 1. Build environment

-Preferably use the Dockerfile, or use Debian Jessie and manually install packages appearing in the Dockerfile.

-## 2. Linux kernel with switch drivers

-Build the Azure/sonic-linux-kernel project and copy the output .deb file into ./deps directory.

-## 3. initramfs-tools with loop device support

-Run the script to build the .deb file into ./deps directory.

+## Prerequisites

+1. Build environment - Preferably use the Dockerfile, or use Debian Jessie and manually install packages appearing in the Dockerfile.

this 1. does not format well in github.com, can you check.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//pull/2/files/3bc2f7b051a939154b4b94bb651780d30325acd4#r73254981, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AToLHI161lIspRY3Yx6wmTD9igYJObMCks5qb84ggaJpZM4Ja18Y.

**2.** Linux kernel with switch drivers - Build the [Azure/sonic-linux-kernel](https://github.com/Azure/sonic-linux-kernel) project and copy the output .deb file into ./deps directory.
* initramfs-tools with loop device support - Run the script to build the .deb file into ./deps directory.

./get_deps.sh

## 4. Fetch the git submodule
If there is no files under ./docker-base, manually fetch them.
**3.** Fetch the git submodule - If there is no files under ./docker-base, manually fetch them.

git submodule update --init --recursive

# Usage
## Build NOS installer image
## Build NOS Installer Image

./build_debian USERNAME PASSWORD_ENCRYPTED && ./build_image.sh

Expand All @@ -31,7 +24,7 @@ For example, the user name is 'admin' and the password is 'YourPaSsWoRd'.
The root is disabled, but the created user could sudo.


## Build docker images
## Build Docker Images

./build_docker.sh docker-sswsyncd
./build_docker.sh docker-database
Expand All @@ -40,7 +33,7 @@ The root is disabled, but the created user could sudo.
./build_docker.sh docker-lldp
./build_docker.sh docker-basic_router

# Contribution guide
## Contribution Guide

All contributors must sign a contribution license agreement before contributions can be accepted. Contact daloher@microsoft.com. Later this will be automated.

Expand Down