version: "3"
build:
steps:
- type: apt-get
packages: ["build-essential", "curl", "git", "nano", "software-properties-common", "ssh", "sudo", "tar", "unzip", "vim", "wget", "zip", "docker-ce", "docker-ce-cli", "containerd.io"]
extra_repositories:
- key_url: https://download.docker.com/linux/ubuntu/gpg
repository: https://download.docker.com/linux/ubuntu
- type: command
command: |
usermod -aG docker devzero
systemctl enable docker.service
systemctl enable containerd.service
directory: /home/devzero
user: root
launch:
steps:
- type: command
command: |-
docker run -d --rm -v ./victoria-metrics-data:/victoria-metrics-data -p 8428:8428 victoriametrics/victoria-metrics