Docker
Prerequisites
Method 1: Docker CloudTruth CLI
# Install the CloudTruth CLI
RUN (curl -sL https://github.com/cloudtruth/cloudtruth-cli/releases/latest/download/install.sh || wget -qO- https://github.com/cloudtruth/cloudtruth-cli/releases/latest/download/install.sh) | shCMD ["cloudtruth", "--project", "MyFirstProject", "run", "--", "printenv"]FROM alpine
# Install the CloudTruth CLI
RUN (curl -sL https://github.com/cloudtruth/cloudtruth-cli/releases/latest/download/install.sh || wget -qO- https://github.com/cloudtruth/cloudtruth-cli/releases/latest/download/install.sh) | sh
CMD ["cloudtruth", "--project", "MyFirstProject", "run", "--", "printenv"]Method 2: Docker Environment File
Last updated
Was this helpful?