File tree Expand file tree Collapse file tree 8 files changed +18
-91
lines changed Expand file tree Collapse file tree 8 files changed +18
-91
lines changed Original file line number Diff line number Diff line change 88 - dockerfiles/requirements.txt
99 - dockerfiles/Dockerfile.base
1010
11+ env :
12+ IMAGE_VERSION : ' 0.6'
13+
1114jobs :
1215 build :
1316
1821
1922 - name : Build image
2023 run : |
21- docker build -t quay.io/sustainable_computing_io/kepler_model_server_base:latest dockerfiles -f dockerfiles/Dockerfile.base
24+ docker build -t quay.io/sustainable_computing_io/kepler_model_server_base:v${{env.IMAGE_VERSION}} dockerfiles -f dockerfiles/Dockerfile.base
2225
2326 - name : Login to Quay
2427 if : ${{ (github.repository_owner == 'sustainable-computing-io') && (github.ref == 'refs/heads/main') }}
3033
3134 - name : Push to quay
3235 if : ${{ (github.repository_owner == 'sustainable-computing-io') && (github.ref == 'refs/heads/main') }}
33- run : docker push quay.io/sustainable_computing_io/kepler_model_server_base:latest
36+ run : |
37+ docker push quay.io/sustainable_computing_io/kepler_model_server_base:v${{env.IMAGE_VERSION}}
Original file line number Diff line number Diff line change 1- FROM --platform=linux/amd64 quay.io/sustainable_computing_io/kepler_model_server_base:latest
1+ FROM --platform=linux/amd64 quay.io/sustainable_computing_io/kepler_model_server_base:v0.6
22
33WORKDIR /usr/local
44
Original file line number Diff line number Diff line change 1- FROM --platform=linux/amd64 quay.io/sustainable_computing_io/kepler_model_server_base:latest
1+ FROM --platform=linux/amd64 quay.io/sustainable_computing_io/kepler_model_server_base:v0.6
22
33WORKDIR /usr/local
44
Original file line number Diff line number Diff line change 11flask == 2.1.2
2- tensorflow == 2.9.1
3- keras == 2.9.0
42protobuf == 3.19.4
53pandas == 1.4.4
64numpy == 1.22.4
Original file line number Diff line number Diff line change 33
44cpu_info = cpuinfo .get_cpu_info ()
55
6- if 'flags' in cpu_info and 'avx' in cpu_info ['flags' ]:
7- import keras
8- from keras import backend as K
9- else :
10- print ("AVX instructions are not available." )
11- keras_enabled = False
6+ # if 'flags' in cpu_info and 'avx' in cpu_info['flags']:
7+ # import keras
8+ # from keras import backend as K
9+ # else:
10+ # print("AVX instructions are not available.")
11+ # keras_enabled = False
1212
1313from sklearn .metrics import mean_squared_error , mean_absolute_error
1414
Original file line number Diff line number Diff line change 1414from prom_types import TIMESTAMP_COL , valid_container_query
1515
1616from scikit_model import ScikitModel
17- from keras_model import KerasModel
17+ # from keras_model import KerasModel
1818
1919# model wrapper
2020MODELCLASS = {
21- 'scikit' : ScikitModel ,
22- 'keras' : KerasModel ,
21+ 'scikit' : ScikitModel
22+ # 'keras': KerasModel,
2323}
2424
2525def default_predicted_col_func (energy_component ):
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ wait_for_keyword() {
6464 if grep -q " $keyword " <<< $( get_${component} _log ); then
6565 return
6666 fi
67+ kubectl get po -n kepler -oyaml
6768 sleep 2
6869 done
6970 echo " timeout ${num_iterations} s waiting for '${keyword} ' from ${component} log"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments