Skip to content

Commit 67f5a3f

Browse files
author
Sunil Thaha
authored
Merge pull request #2252 from vprashar2929/chore-dk-com
chore(compose): remove old Kepler service
2 parents 9fa0d38 + 7d2b9f5 commit 67f5a3f

File tree

12 files changed

+295
-2689
lines changed

12 files changed

+295
-2689
lines changed

compose/dev/compose.yaml

Lines changed: 21 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ services:
1010
build:
1111
context: ../../
1212
dockerfile: Dockerfile
13+
args:
14+
VERSION: 0.0.0-dev
15+
GIT_COMMIT: dev
16+
GIT_BRANCH: dev
1317

1418
ports:
1519
# NOTE: Use 28282 for host
@@ -44,53 +48,40 @@ services:
4448
- kepler-dev
4549
# - kind # NOTE: uncomment to use kind
4650

47-
kepler-old:
51+
kepler-latest:
4852
image: quay.io/sustainable_computing_io/kepler:latest
49-
privileged: true
50-
pid: host
51-
networks:
52-
- kepler-old
53-
# - kind # NOTE: uncomment to use kind
54-
cap_add:
55-
- ALL
5653
ports:
57-
- 29288:8888
58-
54+
# NOTE: Use 28282 for host
55+
- 28284:28282
56+
privileged: true
5957
volumes:
6058
- type: bind
6159
source: /proc
6260
target: /host/proc
61+
read_only: true
6362
- type: bind
6463
source: /sys
6564
target: /host/sys
65+
read_only: true
6666
- type: bind
67-
source: ./kepler-old/etc/kepler
67+
source: ./kepler-latest/etc/kepler/
6868
target: /etc/kepler
69+
read_only: true
70+
71+
# NOTE: place kubeconfig here
72+
# e.g. cp $KUBECONFIG ./shared/kube/kubeconfig
73+
# for kind cluster, rename host in kubeconfig to kind-control-plane:6443
6974
- type: bind
7075
source: ./shared/kube
7176
target: /host/kube
7277
read_only: true
7378

74-
entrypoint: [/usr/bin/bash, -c]
7579
command:
76-
- |
77-
echo Starting kepler;
78-
# NOTE: uncomment to wait for estimator container
79-
# echo waiting for estimator socket to be ready;
80-
# until [[ -e /tmp/estimator.sock ]]; do
81-
# echo " ... waiting for socket";
82-
# sleep 1;
83-
# done;
84-
set -x;
85-
/usr/bin/kepler \
86-
-address "0.0.0.0:8888" \
87-
-disable-power-meter=$$DISABLE_POWER_METER \
88-
-v "8" \
89-
-enable-gpu=false \
90-
# -kubeconfig=/host/kube/kubeconfig
80+
- --config.file=/etc/kepler/config.yaml
9181

92-
environment:
93-
- DISABLE_POWER_METER=${DISABLE_POWER_METER:-false}
82+
networks:
83+
- kepler-latest
84+
# - kind # NOTE: uncomment to use kind
9485

9586
scaphandre:
9687
image: hubblo/scaphandre
@@ -145,7 +136,7 @@ services:
145136
- node-exporter-network
146137

147138
networks:
148-
kepler-old:
139+
kepler-latest:
149140
kepler-dev:
150141
scaph-network:
151142
node-exporter-network:

0 commit comments

Comments
 (0)