dockerized-robot
dockerized-robot copied to clipboard
Dockerized UiPath Robot used in CI/CD pipelines
UiPath Dockerized Robot for CI/CD pipelines
A Docker image containing the UiPath Robot and the UiPath Orchestrator API Powershell module. Intended purpose to be used as part of a CI/CD pipeline.
Content
- A Dockerfile which builds a dockerized UiRobot along with the UiPath Powershell module
- The AWS build script, also pushing the image to an ECR repository
Building the docker image
Test locally with:
docker build -t uipath-robot .
Run locally with:
docker run -it uipath-robot
Building on Azure DevOps
- Create an account with Azure and a subscription within the account.
- Create a resource group and an Azure Container Registry within the RG.
- Create a project on Azure DevOps.
- Create a starter pipeline within the project, triggered by the GitHub repository hosting the code. Go through the steps to create the service principal on Azure which will allow the Azure DevOps pipeline to push the images to the ACR.
git push -u originon branch master to trigger the pipeline and build the dockerized uipath-robot
Azure devops prerequisites:
A variable named uipath-cicd group needs to be defined in the Azure DevOps project, containing at least these 2 variables:
- repositoryName: containing the container repository name
- containerRegistry: containing the container registry connection (can be found on the Project -> service connections page in the DevOps portal)
