From 8051e474306b564546a34795f36468c2d4b7083b Mon Sep 17 00:00:00 2001 From: Ze Gan Date: Mon, 19 Apr 2021 23:58:20 +0800 Subject: [PATCH 1/4] Add docker push in azure-pipeline Signed-off-by: Ze Gan --- azure-pipelines.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2e54a1aea7..5554d41c58 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -58,3 +58,13 @@ steps: changeLogCompareToRelease: 'lastFullRelease' changeLogType: 'commitBased' displayName: "Release target" + +- script: docker image tag alphartc:latest $(dockerRegistry)/alphartc:latest + displayName: 'tag Docker container' + +- task: Docker@2 + inputs: + containerRegistry: 'opennetlab Azure registry' + repository: 'alphartc' + command: 'push' + tags: 'latest' From d989c9bf82ede9e10308a6c4b8fafd1e4ee6934b Mon Sep 17 00:00:00 2001 From: Ze Gan Date: Tue, 20 Apr 2021 00:06:38 +0800 Subject: [PATCH 2/4] Update Readme Signed-off-by: Ze Gan --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d2d8320755..9529ed53f7 100644 --- a/README.md +++ b/README.md @@ -43,9 +43,21 @@ AlphaRTC replaces Google Congestion Control (GCC) with two customized congestion ## Environment -**We recommend you directly fetch the pre-provided Docker images from [Github release](https://github.com/OpenNetLab/AlphaRTC/releases/latest/download/alphartc.tar.gz)** +**We recommend you directly fetch the pre-provided Docker images from `opennetlab.azurecr.io/alphartc` or [Github release](https://github.com/OpenNetLab/AlphaRTC/releases/latest/download/alphartc.tar.gz)** -Ubuntu 18.04 is the only officially supported distro at this moment. For other distros, you may be able to compile your own binary, or use our pre-provided Docker images. +### From docker registry +``` bash +docker pull opennetlab.azurecr.io/alphartc +docker image tag opennetlab.azurecr.io/alphartc alphartc +``` + +### From github release +``` bash +wget https://github.com/OpenNetLab/AlphaRTC/releases/latest/download/alphartc.tar.gz +docker load -i alphartc.tar.gz +``` + +Ubuntu 18.04 or 20.04 is the only officially supported distro at this moment. For other distros, you may be able to compile your own binary, or use our pre-provided Docker images. ## Compilation From 21c1ca06fdaac70fcfcb3b26c216930c61428163 Mon Sep 17 00:00:00 2001 From: Ze Gan Date: Tue, 20 Apr 2021 00:08:41 +0800 Subject: [PATCH 3/4] Polish code Signed-off-by: Ze Gan --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5554d41c58..edbc08d216 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -60,7 +60,7 @@ steps: displayName: "Release target" - script: docker image tag alphartc:latest $(dockerRegistry)/alphartc:latest - displayName: 'tag Docker container' + displayName: 'Tag alphartc image' - task: Docker@2 inputs: @@ -68,3 +68,4 @@ steps: repository: 'alphartc' command: 'push' tags: 'latest' + displayName: "Push alphartc image" From c37a2085ac4662aa67d133cdce0e3b7cdf74cda5 Mon Sep 17 00:00:00 2001 From: Ze Gan Date: Tue, 20 Apr 2021 09:08:25 +0800 Subject: [PATCH 4/4] test Signed-off-by: Ze Gan --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index edbc08d216..1565276d5a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,6 +16,7 @@ pool: steps: + - checkout: self - script: make init