Docker
First, Download Docker, then run Docker Desktop and wait for Docker to finish initializing.
Then, create a new directory with a new file dockerfile
.
Run docker build --no-cache <path-to-new-directory> -f <path-to-new-dockerfile>
CLI dockerfile
example:
# Docker image
FROM ubuntu:latest
# Setting environment variables
ENV UGS_CLI_PROJECT_ID=your-project-id
ENV UGS_CLI_SERVICE_KEY_ID=your-service-key-id
ENV UGS_CLI_SERVICE_SECRET_KEY=your-service-secret-key
# Update and get dependency packages
RUN apt-get update
RUN apt-get install sudo
RUN apt-get install gnupg -y
RUN apt-get update; apt-get install curl -y
RUN sudo apt-get install -y libicu-dev -y
# Download and install UGS CLI from GitHub CLI here
# Run test commands on the CLI
RUN ugs --version
RUN ugs config get project-id
RUN ugs status
RUN ugs env list
RUN ugs deploy <directory-with-service-configurations> -j