Skip to content

Commit ebb51d9

Browse files
author
Yi Tseng
authored
Update container image (#21)
* Update container image * fix license * Fix linter issue
1 parent 758ee19 commit ebb51d9

6 files changed

Lines changed: 7 additions & 62 deletions

File tree

.github/workflows/container-image.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

Dockerfile

Lines changed: 0 additions & 32 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.PHONY: stratum-replay
55

66
current_dir=$(abspath $(dir $(MAKEFILE_LIST)))
7-
IMAGE:=fabric-line-rate-test:0.0.1
7+
IMAGE:=stratumproject/testvectors:ptf
88
SERVER_ADDR?=10.128.13.27
99
SWITCH_ADDR?=10.128.13.29
1010
TEST?=int_single_flow
@@ -14,9 +14,6 @@ TREX_SCRIPTS:=$(current_dir)/trex-scripts
1414
default:
1515
@echo "Nothing here"
1616

17-
build-image:
18-
@docker build -t $(IMAGE) . -f Dockerfile
19-
2017
.venv:
2118
@python3 -m venv .venv
2219

entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
# SPDX-FileCopyrightText: Copyright 2021-present Open Networking Foundation.
3+
# SPDX-License-Identifier: Apache-2.0
4+
python3 -m control "$@"

run-test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@ docker run --rm \
3232
-v "${DIR}/tools:/workspace/tools" \
3333
-v "${DIR}/tmp:/tmp" \
3434
-w /workspace \
35+
--mount "type=bind,source=$PWD/entrypoint.sh,target=/entrypoint.sh" \
36+
--entrypoint /entrypoint.sh \
3537
"${IMAGE}" \
3638
"${TEST_ARGS[@]}"
File renamed without changes.

0 commit comments

Comments
 (0)