From 3a908fdd4baae98169c1538905494d270bf31e8c Mon Sep 17 00:00:00 2001 From: Ze Gan Date: Tue, 20 Apr 2021 09:32:45 +0800 Subject: [PATCH] Push alphartc image to Azure container registry (#75) * Add docker push in azure-pipeline Signed-off-by: Ze Gan * Update Readme Signed-off-by: Ze Gan * Polish code Signed-off-by: Ze Gan * test Signed-off-by: Ze Gan --- README.md | 16 ++++++++++++++-- azure-pipelines.yml | 12 ++++++++++++ 2 files changed, 26 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 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2e54a1aea7..1565276d5a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,6 +16,7 @@ pool: steps: + - checkout: self - script: make init @@ -58,3 +59,14 @@ steps: changeLogCompareToRelease: 'lastFullRelease' changeLogType: 'commitBased' displayName: "Release target" + +- script: docker image tag alphartc:latest $(dockerRegistry)/alphartc:latest + displayName: 'Tag alphartc image' + +- task: Docker@2 + inputs: + containerRegistry: 'opennetlab Azure registry' + repository: 'alphartc' + command: 'push' + tags: 'latest' + displayName: "Push alphartc image"