https://github.com/andreibarbuoz/uipath-demo-image-deploy
https://github.com/andreibarbuoz/uipath-demo-image-deploy
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andreibarbuoz/uipath-demo-image-deploy
- Owner: AndreiBarbuOz
- Created: 2019-10-13T09:41:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-16T11:47:12.000Z (over 4 years ago)
- Last Synced: 2025-01-12T10:34:14.650Z (4 months ago)
- Language: Dockerfile
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UiPath container for deployment pipelines
## Purpose
The project deploys a pipeline which builds the Dockerfile, and pushes the image to an Azure Container Registry. The purpose of the Docker image is to be used in Azure pipelines for building Images using [Packer](https://www.packer.io/) and [Ansible](https://www.ansible.com)
## Development environment setupDuring development, a Linux VM can be provisioned and Docker installed, following the instructions here: https://docs.docker.com/install/linux/docker-ce/ubuntu/. The machine will be used for testing the Dockerfile.
## Prerequisites
The list of items needed for development and deployment:
* Azure account
* Development machine with Docker installed
* An `acr` (Azure Container Registry) in a resourge group. One can be created using:
```
az acr create --resource-group --name --sku Basic
```
* (Optional - when using an Azure Linux VM for development) Create a `system assigned identity` for the VM and assign the role of owner over the container registry:```
az vm identity assign --resource-group --name
spID=$(az vm show --resource-group --name --query identity.principalId --out tsv)
resourceID=$(az acr show --resource-group --name --query id --output tsv)
az role assignment create --assignee $spID --scope $resourceID --role owner
```
This will allow `az acr login --identity` using the aforementioned identity
* An `Azure Pipeline` build triggered by the repository
* The `Azure Pipeline` needs to have variable group called `demo-vm-deploy` containing these values:
- containerRegistry
- azureSubscription
- repositoryName