Skip to content

Commit b68237f

Browse files
authored
Rename peerconnection_serverless (#69)
Signed-off-by: Ze Gan <[email protected]>
1 parent 7b4e337 commit b68237f

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ docker-peerconnection_serverless:
5959
cp modules/third_party/onnxinfer/lib/*.so.* $(target_lib_dir)
6060

6161
mkdir -p $(target_bin_dir)
62-
cp $(output_dir)/peerconnection_serverless $(target_bin_dir)
63-
cp examples/peerconnection/serverless/peerconnection_serverless_pyinfer $(target_bin_dir)
62+
cp $(output_dir)/peerconnection_serverless $(target_bin_dir)/peerconnection_serverless.origin
63+
cp examples/peerconnection/serverless/peerconnection_serverless $(target_bin_dir)
6464

6565
mkdir -p $(target_pylib_dir)
6666
cp modules/third_party/cmdinfer/*.py $(target_pylib_dir)/

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ This section describes required fields for the json configuration file.
189189

190190
##### PyInfer
191191

192-
The default bandwidth estimator is PyInfer, You should implement your Python class named `Estimator` with required methods `report_states` and `get_estimated_bandwidth` in Python file `BandwidthEstimator.py ` and put this file in your workspace. And you should use the `peerconnection_serverless_pyinfer` as the start program.
192+
The default bandwidth estimator is PyInfer, You should implement your Python class named `Estimator` with required methods `report_states` and `get_estimated_bandwidth` in Python file `BandwidthEstimator.py ` and put this file in your workspace.
193193
There is an example of Estimator with fixed estimated bandwidth 1Mbps. Here is an example [BandwidthEstimator.py](examples/peerconnection/serverless/corpus/BandwidthEstimator.py).
194194

195195
```python
@@ -231,8 +231,8 @@ If you want to use the ONNXInfer as the bandwidth estimator, you should specify
231231

232232
PyInfer:
233233
```shell
234-
sudo docker run -d --rm -v `pwd`/examples/peerconnection/serverless/corpus:/app -w /app --name alphartc alphartc peerconnection_serverless_pyinfer receiver_pyinfer.json
235-
sudo docker exec alphartc peerconnection_serverless_pyinfer sender_pyinfer.json
234+
sudo docker run -d --rm -v `pwd`/examples/peerconnection/serverless/corpus:/app -w /app --name alphartc alphartc peerconnection_serverless receiver_pyinfer.json
235+
sudo docker exec alphartc peerconnection_serverless sender_pyinfer.json
236236
```
237237

238238
ONNXInfer:

azure-pipelines.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ steps:
3434
&& docker exec alphartc peerconnection_serverless sender.json
3535
displayName: 'run example'
3636

37-
- script: docker run -d --rm -v `pwd`/examples/peerconnection/serverless/corpus:/app -w /app --name alphartc_pyinfer alphartc peerconnection_serverless_pyinfer receiver_pyinfer.json
38-
&& docker exec alphartc_pyinfer peerconnection_serverless_pyinfer sender_pyinfer.json
39-
displayName: 'run cmdinfer example'
37+
- script: docker run -d --rm -v `pwd`/examples/peerconnection/serverless/corpus:/app -w /app --name alphartc_pyinfer alphartc peerconnection_serverless receiver_pyinfer.json
38+
&& docker exec alphartc_pyinfer peerconnection_serverless sender_pyinfer.json
39+
displayName: 'run pyinfer example'
40+
41+
- publish: $(System.DefaultWorkingDirectory)/target
42+
continueOnError: true
43+
artifact: target
44+
displayName: "Archive AlphaRTC Peerconnection"

examples/peerconnection/serverless/peerconnection_serverless_pyinfer renamed to examples/peerconnection/serverless/peerconnection_serverless

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import cmdinfer
1414

1515
def main():
1616
app = subprocess.Popen(
17-
["peerconnection_serverless"] + sys.argv[1:],
17+
["peerconnection_serverless.origin"] + sys.argv[1:],
1818
bufsize=1,
1919
stdin=subprocess.PIPE,
2020
stdout=subprocess.PIPE,

0 commit comments

Comments
 (0)