Skip to content

Commit d7fe017

Browse files
authored
Install BATS (Bash Automated Testing System) in sonic-mgmt docker. (#22137)
Why I did it Use for unit testing bash scripts. Work item tracking Microsoft ADO (number only): 31736455 How I did it Add installation at the Dockerfile How to verify it build sonic-mgmt docker make -f Makefile.work BLDENV=bullseye SONIC_BUILD_JOBS=$(nproc) DEFAULT_CONTAINER_REGISTRY=publicmirror.azurecr.io ENABLE_DOCKER_BASE_PULL=y LEGACY_SONIC_MGMT_DOCKER=n target/docker-sonic-mgmt.gz load it: docker load -i target/docker-sonic-mgmt.gz f2a185d061e0: Loading layer [==================================================>] 3.267GB/3.267GB Loaded image: docker-sonic-mgmt:latest run bats --version docker run --rm docker-sonic-mgmt:latest bats --version Bats 1.11.1
1 parent 534613c commit d7fe017

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dockers/docker-sonic-mgmt/Dockerfile.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ RUN apt-get update && apt-get install -y apt-transport-https \
3939
sudo \
4040
tcpdump \
4141
telnet \
42-
vim
42+
vim \
43+
bats
4344

4445
RUN python3 -m pip install --upgrade pip setuptools wheel
4546
RUN python3 -m pip install aiohttp \

0 commit comments

Comments
 (0)