---
# System prepended metadata

title: Docker Configuration

---

# Docker Configuration


## General Instruction:

1.  [Download Docker](https://docs.docker.com/desktop)
2.  Go to the artifactory profile settings and generate API key: [https://artifactory.hlag.altemista.cloud/ui/admin/artifactory/user\_profile](https://artifactory.hlag.altemista.cloud/ui/admin/artifactory/user_profile) (login with keycloack)
3.  Login from the CLI:

```bash
docker login -u <USERNAME> -p <ARTIFACTORY_API_TOKEN> https://artifactory.hlag.altemista.cloud
```    

where **USERNAME** - lowercased LDAP user ID.

4.  Pull an image for Windows OS, linux x86_64, Mac with Intel processors:

```bash
docker pull artifactory.hlag.altemista.cloud/jenkins-slave-ui-build/jenkins-slave-ui-build:IMAGE_NAME
```    

where **IMAGE_NAME** - version of the image.

You can get the list of available images by visiting https://artifactory.hlag.altemista.cloud/ui/repos/tree/General/jenkins-slave-ui-build%2Fjenkins-slave-ui-build _or_ in the project `commons-ui-frontend` in the file [`jest-puppeteer-react.config.js`](https://gitlab.hlag.altemista.cloud/fis3/commons-ui/commons-ui-frontend/-/blob/master/jest-puppeteer-react.config.js) field `dockerImageName`.

* * *

## Instruction for Mac M1 users:
For Mac M1 users you should go through all the steps from the [General Instruction](#General-Instruction) above, but instead of 4th step you have to do the following:

1.  Need to clone [https://gitlab.hlag.altemista.cloud/hlag-images/jenkins-slave-ui-build](https://gitlab.hlag.altemista.cloud/hlag-images/jenkins-slave-ui-build). In the `Dockerfile` you need to change the `FROM xx` to:
```
FROM artifactory.hlag.altemista.cloud/jenkins-slave-ui-build/jenkins-slave-maven:3.8.4-Alma-base
```

2.  Build commands:
    2.1 `docker buildx create --name mybuilder --use` 
    2.2 `docker buildx build -t <--IMAGE_NAME--> --platform linux/amd64,linux/arm64 .` 
    2.3 `docker buildx build --load -t <--IMAGE_NAME--> --platform linux/arm64 .`
