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
|
COPY glances.conf /etc/glances/glances.conf
|
||||||
|
|
||||||
|
RUN useradd -m glances
|
||||||
|
USER glances
|
||||||
|
|
||||||
CMD glances -w
|
CMD glances -w
|
||||||
@@ -2,14 +2,23 @@ version: '3'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
image: hub.ducoterra.net/ducoterra/temp:0.0.7
|
image: hub.ducoterra.net/ducoterra/temp:0.0.8
|
||||||
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- 61208:61208
|
- 61208:61208
|
||||||
command: glances -w
|
command: glances -w
|
||||||
|
volumes:
|
||||||
|
- web_tmp:/tmp
|
||||||
exporter:
|
exporter:
|
||||||
image: hub.ducoterra.net/ducoterra/temp:0.0.7
|
image: hub.ducoterra.net/ducoterra/temp:0.0.8
|
||||||
command: glances --export statsd
|
command: glances -q --export statsd
|
||||||
|
volumes:
|
||||||
|
- exporter_tmp:/tmp
|
||||||
graphite-statsd:
|
graphite-statsd:
|
||||||
image: hub.ducoterra.net/ducoterra/graphite:0.0.1
|
image: hub.ducoterra.net/ducoterra/graphite:0.0.1
|
||||||
ports:
|
ports:
|
||||||
- 8080:80
|
- 8080:80
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
web_tmp:
|
||||||
|
exporter_tmp:
|
||||||
@@ -20,8 +20,8 @@ spec:
|
|||||||
memory: 1Mi
|
memory: 1Mi
|
||||||
cpu: 1m
|
cpu: 1m
|
||||||
limits:
|
limits:
|
||||||
memory: 256Mi
|
memory: 512Mi
|
||||||
cpu: "24"
|
cpu: "48"
|
||||||
- name: {{ .Release.Name }}-exporter
|
- name: {{ .Release.Name }}-exporter
|
||||||
image: {{ .Values.image }}
|
image: {{ .Values.image }}
|
||||||
command: ["glances", "-q", "--export", "statsd"]
|
command: ["glances", "-q", "--export", "statsd"]
|
||||||
@@ -30,5 +30,5 @@ spec:
|
|||||||
memory: 1Mi
|
memory: 1Mi
|
||||||
cpu: 1m
|
cpu: 1m
|
||||||
limits:
|
limits:
|
||||||
memory: 256Mi
|
memory: 512Mi
|
||||||
cpu: 250m
|
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