Commit 3cc2fe26 authored by Sebastian Miller's avatar Sebastian Miller
Browse files

fixed some stuff

parent f342a172
......@@ -43,9 +43,11 @@ build:ensembler:
- docker pull $CONTAINER_RELEASE_IMAGE || true # Attempt to pull previous image as a cache for the below build.
- docker build --cache-from $CONTAINER_RELEASE_IMAGE -t ensembler .
- docker image ls
- cd $CI_PROJECT_DIR
- mkdir image
- docker save ensembler > image/ensembler.tar # Save the image as an artifact for further stages
- docker tag ensembler $CONTAINER_RELEASE_IMAGE
- docker push $CONTAINER_RELEASE_IMAGE
#- cd $CI_PROJECT_DIR
#- mkdir image
#- docker save ensembler > image/ensembler.tar # Save the image as an artifact for further stages
artifacts:
paths:
- image
......@@ -55,7 +57,7 @@ integration-tests:ensembler:
stage: integration-tests
image: $DOCKER_DIND_IMAGE
only:
- integration
- new_unit_tests
services:
- $DOCKER_DIND_SERVICE
- name: rmohr/activemq:5.15.9
......@@ -101,7 +103,7 @@ deploy:ensembler:
stage: deploy
image: $DOCKER_DIND_IMAGE
only:
- integration
- new_unit_tests
services:
- $DOCKER_DIND_SERVICE
script:
......
......@@ -47,8 +47,8 @@ def predict():
logging.info(f"Ensembled prediction successfully produced: {ensembled_prediction}")
resp = {
"metricValue": ensembled_prediction,
"timestamp": time.time_ns() // NS_IN_MS,
"ensembledValue": ensembled_prediction,
"timestamp": (time.time_ns() // NS_IN_MS) // 10**3,
"predictionTime": forecast_info.prediction_time
}
logging.info("Sending response to PO.")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment