change user to glances
This commit is contained in:
@@ -5,4 +5,7 @@ RUN pip install glances bottle statsd pysnmp
|
||||
|
||||
COPY glances.conf /etc/glances/glances.conf
|
||||
|
||||
RUN useradd -m glances
|
||||
USER glances
|
||||
|
||||
CMD glances -w
|
||||
@@ -2,14 +2,23 @@ version: '3'
|
||||
|
||||
services:
|
||||
web:
|
||||
image: hub.ducoterra.net/ducoterra/temp:0.0.7
|
||||
image: hub.ducoterra.net/ducoterra/temp:0.0.8
|
||||
build: .
|
||||
ports:
|
||||
- 61208:61208
|
||||
command: glances -w
|
||||
volumes:
|
||||
- web_tmp:/tmp
|
||||
exporter:
|
||||
image: hub.ducoterra.net/ducoterra/temp:0.0.7
|
||||
command: glances --export statsd
|
||||
image: hub.ducoterra.net/ducoterra/temp:0.0.8
|
||||
command: glances -q --export statsd
|
||||
volumes:
|
||||
- exporter_tmp:/tmp
|
||||
graphite-statsd:
|
||||
image: hub.ducoterra.net/ducoterra/graphite:0.0.1
|
||||
ports:
|
||||
- 8080:80
|
||||
- 8080:80
|
||||
|
||||
volumes:
|
||||
web_tmp:
|
||||
exporter_tmp:
|
||||
@@ -20,8 +20,8 @@ spec:
|
||||
memory: 1Mi
|
||||
cpu: 1m
|
||||
limits:
|
||||
memory: 256Mi
|
||||
cpu: "24"
|
||||
memory: 512Mi
|
||||
cpu: "48"
|
||||
- name: {{ .Release.Name }}-exporter
|
||||
image: {{ .Values.image }}
|
||||
command: ["glances", "-q", "--export", "statsd"]
|
||||
@@ -30,5 +30,5 @@ spec:
|
||||
memory: 1Mi
|
||||
cpu: 1m
|
||||
limits:
|
||||
memory: 256Mi
|
||||
memory: 512Mi
|
||||
cpu: 250m
|
||||
@@ -1 +1 @@
|
||||
image: hub.ducoterra.net/ducoterra/temp:0.0.7
|
||||
image: hub.ducoterra.net/ducoterra/temp:0.0.8
|
||||
Reference in New Issue
Block a user