Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

OPS agent installation in docker

Hello,

I wanted to know how to install and start the agent ops service in a docker container.
Do you have any suggestion please ?

Please find my Dockerfile : 

# Use an official Ubuntu runtime as a parent image
FROM ubuntu:latest

# Install necessary dependencies
RUN apt-get update && \
apt-get install -y curl

# Download and install the Ops Agent
bash add-google-cloud-ops-agent-repo.sh --also-install

# Cleanup
RUN rm add-google-cloud-ops-agent-repo.sh && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

I will need  to use after on Kubernete with an deployment.yaml file.
Thank you
0 2 1,503
2 REPLIES 2