Commit Graph

30 Commits

Author SHA1 Message Date
Liuqu
8383b1f256 [TACACS+]: Add support for TACACS+ Authentication (#1019)
* [TACACS+]: Add support for TACACS+ Authentication

* pam_tacplus - A TACACS+ protocol client library and PAM module to
  supports core TACACS+ functions for AAA.
* nss_tacplus - A NSS plugin for TACACS+ to extend function getpwnam,
  make the TACACS+ authenticated user which is not found in local
  could login successfully.

* Add make rules for pam_tacplus and install script
* Add a patch for pam_tacplus to disable pam-auth-update pam-tacplus
  by default
* Add a patch for pam_tacplus to inlucde and build nss_tacplus

  Signed-off-by: chenchen.qcc@alibaba-inc.com

* [TACACS+]: Add nss-tacplus as a separate src repo

* Separate nss-tacplus from pam-tacplus, modify tacacs.mk and
  makefile, add a patch to adapt to the new user map profile.
* Use the lastest stable version for pam-tacplus, add a dependent
  package in sonic-salve, add two patches to fix build error.
* Add scripts to disable tacplus by default.
* Remove hostcfgd service file

  Signed-off-by: Chenchen Qi <chenchen.qcc@alibaba-inc.com>

* [TACACS+]: Fix nss-tacplus filter some valid TACACS+ username

* The NAME_REGEX for username check in plugin nss-tacplus is
  the ANSI version "^[0-9a-zA-Z_-\ ]*$", but the regular expression
  in /etc/adduser.conf is not defined as ANSI version. To avoid
  nss-tacplus filter some valid TACACS+ username, remove username
  check.

  Signed-off-by: Chenchen Qi <chenchen.qcc@alibaba-inc.com>
2017-12-07 03:36:17 -08:00
Qi Luo
eb086818d7
Install more debs for python3 in sonic-slave (#1211)
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
2017-12-06 15:59:33 -08:00
lguohan
b907e4e9f5
[vs]: add vlan configuration support in virtual switch (#1200) 2017-11-30 14:59:25 -08:00
lguohan
c92b95383a [build]: Add swig3.0 for building python-based swsscommon library (#1088) 2017-10-27 17:59:03 -07:00
Taoyu Li
437419c79e Update submodule pointer and sonic-slave for test dependency (#1084) 2017-10-26 16:49:25 -07:00
Taoyu Li
0a9d60ebb2 [sonic-slave] Force pyangbind version to 0.5.10 (#918) 2017-08-26 14:29:44 -07:00
Marian Pritsak
afbf1ee2fb [sonic-slave]: Split user commands from generic. (#868)
In case when more than one user builds SONiC on same machine, we can
keep generic part that installs all packages to slave image apart from
creating user and calling user-related commands. Then generic base image
will be built only once, allowing other users to build only smaller
specific to them layers.

Signed-off-by: marian-pritsak <marianp@mellanox.com>
2017-08-08 10:21:54 +03:00
pavel-shirshov
6f0722322c [sonic-slave]: Update golang version to 1.8.3 (#810)
* Update golang version to latest 1.8.3
2017-07-14 23:53:44 -07:00
Joe LeVeque
a697e8efcf [docker-base]: Build supervisor package from source in order to update to v3.3.2 (#777)
- Resolves issue #762
2017-07-06 10:32:27 -07:00
lguohan
e31e1f7777 [sonic-slave]: install docker-ce 17.03.02 stable version (#774) 2017-06-29 22:21:12 -07:00
Joe LeVeque
017eea8a87 [DHCP Relay]: Add support for custom Option 82 circuit_id of the form '<hostname>:<portname>' (#747)
* Add docker-dhcp-relay/Dockerfile to .gitignore

* Add isc-dhcp-relay .deb package to image build process, along with my Option 82 patch

* Install custom isc-dhcp-relay in dhcp_relay docker

* Install isc-dhcp-relay build dependencies in sonic-slave Docker container

* Copy the built .deb package to the destination directory

* Add dependencies for isc-dhcp-relay

* Change Option 82 string to '<hostname>:<portname>'

* Install dependencies of .deb files implicitly in Dockerfile

* Remove unused line

* Remove unnecessary space
2017-06-24 12:05:04 -07:00
Qi Luo
c7908e1d42 [slave]: remove apt-get clean (#693) 2017-06-11 11:46:17 -07:00
Rodny Molina
d30fbf1d72 [build]: Adding support for Free-Range-Routing stack. (#510)
- Extending SONiC building infrastructure to provide users
           with greater flexibility, by allowing them to elect a
           routing-stack different than the default one (quagga). The desired
           routing-stack will be defined in rules/config file.

         - As part of these changes I'm adding support for
           Free-Range-Routing (FRR) stack. Quagga will continue to be
           the default routing-stack.

Signed-off-by: Rodny Molina <rodny@linkedin.com>
2017-04-20 09:12:27 -07:00
Marian Pritsak
31e8b1ec67 [sonic-slave]: Refactor Dockerfile. (#502)
Put all packages installation into single apt-get command. This will
allow us to do apt-get update only once.
Eliminate unnecessary intermediate layers where they are not required.

Signed-off-by: marian-pritsak <marianp@mellanox.com>
2017-04-13 22:09:00 +03:00
lguohan
4c81204eaf [sonic-slave]: add aspell in Dockerfile for SAI meta data build (#494) 2017-04-11 12:53:21 -07:00
Taoyu Li
ebed2d0182 [config/acl] Support everflow config translation (#468) 2017-04-07 01:10:05 -07:00
Marian Pritsak
6dbe979e5f [build]: Include SONiC version into installer. (#472)
* [build]: Include SONiC version into installer.

Signed-off-by: marian-pritsak <marianp@mellanox.com>

* Append dirty if contains local changes

Signed-off-by: marian-pritsak <marianp@mellanox.com>

* Update config

* Use correct name for kernel version field

* Update sysDescription.j2
2017-04-05 16:14:41 -07:00
Taoyu Li
e0fd12aa23 [cfggen] Add basic functional test (#375)
[cfggen] Add basic functional test
2017-03-17 11:07:12 -07:00
Marian Pritsak
0fbbb2be41 [slave.mk]: add procmail to sonic-slave. (#385)
Needed for lockfile utility.

Signed-off-by: marian-pritsak <marianp@mellanox.com>
2017-03-07 23:11:42 -08:00
lguohan
0f845998bb [sonic-slave]: fix thrift test break introduced in #358 (#364) 2017-03-03 01:33:44 -08:00
pavel-shirshov
bac738f91f Add bgp container with gobgp (#358)
* Add go-1.7 into docker-slave

* Create container docker-fpm-gobgp with gobgpd inside
2017-03-02 11:33:46 -08:00
pavel-shirshov
a845740543 [All Dockerfiles]: Prevent apt asking questions on the console (#300)
Add noninteractive setting into every Dockerfile in the repo

Signed-off-by: Pavel Shirshov pavelsh@microsoft.com
2017-02-16 21:48:49 -08:00
lguohan
8b5d05eeef [sonic-slave]: upgrade docker engine in sonic-slave to 1.13.0 (#272) 2017-02-06 21:11:18 -08:00
Petro Karashchenko
fbe2721543 [sonic-slave]: Fix issue "no space left on disk" while trying to add user in docker (#233)
Note: related to https://github.com/docker/docker/issues/5419

Signed-off-by: Petro Karashchenko <petro.karashchenko@caviumnetworks.com>
2017-02-01 11:56:50 -08:00
Qi Luo
4123f684f3 [sonic-slave] Use fictional company for the email adddress of sonic-slave user (#170) 2016-12-29 12:14:19 -08:00
Nadiya
aefefeff05 Fix git/stg error for linux kernel build (#156)
Signed-off-by: Nadiya.Stetskovych <Nadiya.Stetskovych@cavium.com>
2016-12-23 15:20:45 -08:00
Marian Pritsak
aefb32b2e8 [sonic-slave]: Install j2cli for templating (#139) 2016-12-19 09:39:31 -08:00
lguohan
b31956d333 add build dep for sai meta build and python3.5 (#103) 2016-12-07 07:59:21 -08:00
Marian Pritsak
16a8224e23 Create group for user in sonic-slave if does absent (#98) 2016-12-06 06:31:59 -08:00
Marian Pritsak
e9098b99fb Build improvements (#80)
* Build improvements

Fix dependencies
Add configuration options
Automatically build sonic-slave

* Set default number of jobs to 1

* Auto generate target/debs directory

Signed-off-by: marian-pritsak <marianp@mellanox.com>

* Automatically remove sonic-slave container after exit

* Silence clean-logs

* Add SONIC_CLEAN_TARGETS to clean

* Use second expansion for clean dependencies

* Avoid creating empty log files

Remove log file on flush instead of writing empty string

* Put dpkg install inside lock

Use same lock as debian install targets do to avoid
race condition in dpkg installation

* Remove redirect to log from docker save

* Add .platform dependency to all and clean targets

* Remove header and footer from clean targets

* Disable messages for SONIC_CLEAN_TARGETS

* Exit with error if dpkg-buildpackage fails

* Set new location for debs in build_debian.sh

* Add recipe for docker-database

* Update redis version to 3.2.4

* Add support for p4 platform

* Add recipe for snmpd

* Add slave targets to phony and make all target default

* Remove build.sh from thrift

* Add versioning to team, nl, hiredis and initramfs

* Change sonic-slave to support snmpd build from sources

* Remove src/tenjin

* Add recipe for lldpd

* Add recipe for mpdecimal

* Remove hiredis directory on rebuild

* Add recipe for Mellanox hw management

* Remove generic image from all targets for Mellanox

* Add support for python wheels

* Add lldp and snmp dockers

* Sync docker-database to include libjemalloc

* Fix asyncsnmp variable name

* Change default build configuration

Redirect output to log files by default
Set number of jobs to nproc value
Do not print dependencies
Fix logging to print log of failed job into console

* Use docker inspect to check if sonic-slave image exists

* Use config in slave.mk directly

* Disable color output by default

* Remove sswsdk dependency from lldp and snmp dockers

* Fix comment in py wheels install targets

* Add dependency between two versions of sswsdk

* Add containers to mellanox platform

lldp, snmp and database containers

* Add recipe for team docker

* Add team docker to mellanox platform

* Encrypt password passed to build_debian.sh

* Update mellanox SAI version

Make version and revision setting only in main recipe

* Fix error handling in makefiles

As makefiles use .ONESHELL we should add -e
option to shell options in order to exit after any command fails

* Add recipe for platform monitor image

* Add platfotm monitor to mellanox targets

* Ignore submodules when building base image
2016-12-05 11:12:19 -08:00