Docker
Learn how to integrate the CLI with Docker.
Read time 1 minuteLast updated 21 hours ago
First, Download Docker, then run Docker Desktop and wait for Docker to finish initializing. Then, create a new directory with a new file
dockerfiledocker build --no-cache <path-to-new-directory> -f <path-to-new-dockerfile>dockerfile# Docker imageFROM ubuntu:latest# Setting environment variablesENV UGS_CLI_PROJECT_ID=your-project-idENV UGS_CLI_SERVICE_KEY_ID=your-service-key-idENV UGS_CLI_SERVICE_SECRET_KEY=your-service-secret-key# Update and get dependency packagesRUN apt-get updateRUN apt-get install sudoRUN apt-get install gnupg -yRUN apt-get update; apt-get install curl -yRUN sudo apt-get install -y libicu-dev -y# Download and install UGS CLI from GitHub CLI here# Run test commands on the CLIRUN ugs --versionRUN ugs config get project-idRUN ugs statusRUN ugs env listRUN ugs deploy <directory-with-service-configurations> -j