mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-03 15:55:17 -07:00
* all: replace minio with sourcegraph/blobstore * all: bump image tags for blobstore change * pure-docker: update image tags (manually) Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
38 lines
1.3 KiB
Bash
Executable File
38 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
source ./replicas.sh
|
|
|
|
# Description: Publishes Prometheus metrics about Docker containers.
|
|
#
|
|
# Disk: none
|
|
# Network: 100mbps
|
|
# Liveness probe: none
|
|
# Ports exposed to other Sourcegraph services: 8080/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
# Also add the following volume mount for container monitoring on MacOS:
|
|
# --volume='/var/run/docker.sock:/var/run/docker.sock:ro'
|
|
#
|
|
# You may remove the --privileged flag to run with reduced privileges.
|
|
# `cadvisor` requires root privileges in order to display provisioning metrics.
|
|
# These metrics provide critical information to help you scale the Sourcegraph deployment.
|
|
# If you would like to bring your own infrastructure monitoring & alerting solution,
|
|
# you may want to remove the `cadvisor` container completely
|
|
sudo docker run --detach \
|
|
--name=cadvisor \
|
|
--network=sourcegraph \
|
|
--restart=always \
|
|
--cpus=1 \
|
|
--memory=1g \
|
|
--volume=/:/rootfs:ro \
|
|
--volume=/var/run:/var/run:ro \
|
|
--volume=/sys:/sys:ro \
|
|
--volume=/var/lib/docker/:/var/lib/docker:ro \
|
|
--volume=/dev/disk/:/dev/disk:ro \
|
|
--privileged \
|
|
--device=/dev/kmsg \
|
|
index.docker.io/sourcegraph/cadvisor:187572_2022-12-06_cbecc5321c7d@sha256:755748f2f9b00d8f70bd65349e85235585bdf1a663e26198c8eaf91dfd5636e1 \
|
|
--port=8080
|
|
|
|
echo "Deployed cadvisor"
|