From b3eebf75626e302efc4c76c5344397c4b1066050 Mon Sep 17 00:00:00 2001 From: sanderegg <35365065+sanderegg@users.noreply.github.com> Date: Fri, 8 Mar 2024 07:58:43 +0100 Subject: [PATCH] updated byte unit --- services/sleeper/docker-compose-meta.yml | 12 ++++++------ services/sleeper/service.cli/run | 12 +++++++----- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/services/sleeper/docker-compose-meta.yml b/services/sleeper/docker-compose-meta.yml index 9d9096c3..3c3fd1ae 100644 --- a/services/sleeper/docker-compose-meta.yml +++ b/services/sleeper/docker-compose-meta.yml @@ -25,7 +25,7 @@ services: "meter"}}, "input_5": {"displayOrder": 5, "label": "Dream (or nightmare) of the night", "description": "Defines the size of the dream that will be generated [0:]", "defaultValue": 0, "type": "ref_contentSchema", "contentSchema": - {"title": "Dream of the night", "type": "integer", "x_unit": "bytes", "minimum": + {"title": "Dream of the night", "type": "integer", "x_unit": "byte", "minimum": 0}}}}' io.simcore.integration-version: '{"integration-version": "1.0.0"}' io.simcore.key: '{"key": "simcore/services/comp/itis/sleeper"}' @@ -40,7 +40,7 @@ services: "Contains some random data representing a dream", "type": "data:text/plain", "fileToKeyMap": {"dream.txt": "output_3"}}}}' io.simcore.type: '{"type": "computational"}' - io.simcore.version: '{"version": "2.2.0"}' + io.simcore.version: '{"version": "2.2.1"}' org.label-schema.build-date: ${BUILD_DATE} org.label-schema.schema-version: '1.0' org.label-schema.vcs-ref: ${VCS_REF} @@ -74,7 +74,7 @@ services: "meter"}}, "input_5": {"displayOrder": 5, "label": "Dream (or nightmare) of the night", "description": "Defines the size of the dream that will be generated [0:]", "defaultValue": 0, "type": "ref_contentSchema", "contentSchema": - {"title": "Dream of the night", "type": "integer", "x_unit": "bytes", "minimum": + {"title": "Dream of the night", "type": "integer", "x_unit": "byte", "minimum": 0}}}}' io.simcore.integration-version: '{"integration-version": "1.0.0"}' io.simcore.key: '{"key": "simcore/services/comp/itis/sleeper-gpu"}' @@ -89,7 +89,7 @@ services: "Contains some random data representing a dream", "type": "data:text/plain", "fileToKeyMap": {"dream.txt": "output_3"}}}}' io.simcore.type: '{"type": "computational"}' - io.simcore.version: '{"version": "2.2.0"}' + io.simcore.version: '{"version": "2.2.1"}' org.label-schema.build-date: ${BUILD_DATE} org.label-schema.schema-version: '1.0' org.label-schema.vcs-ref: ${VCS_REF} @@ -125,7 +125,7 @@ services: "meter"}}, "input_5": {"displayOrder": 5, "label": "Dream (or nightmare) of the night", "description": "Defines the size of the dream that will be generated [0:]", "defaultValue": 0, "type": "ref_contentSchema", "contentSchema": - {"title": "Dream of the night", "type": "integer", "x_unit": "bytes", "minimum": + {"title": "Dream of the night", "type": "integer", "x_unit": "byte", "minimum": 0}}}}' io.simcore.integration-version: '{"integration-version": "1.0.0"}' io.simcore.key: '{"key": "simcore/services/comp/itis/sleeper-mpi"}' @@ -140,7 +140,7 @@ services: "Contains some random data representing a dream", "type": "data:text/plain", "fileToKeyMap": {"dream.txt": "output_3"}}}}' io.simcore.type: '{"type": "computational"}' - io.simcore.version: '{"version": "2.2.0"}' + io.simcore.version: '{"version": "2.2.1"}' org.label-schema.build-date: ${BUILD_DATE} org.label-schema.schema-version: '1.0' org.label-schema.vcs-ref: ${VCS_REF} diff --git a/services/sleeper/service.cli/run b/services/sleeper/service.cli/run index de00b0fb..8314a617 100755 --- a/services/sleeper/service.cli/run +++ b/services/sleeper/service.cli/run @@ -1,3 +1,4 @@ + #!/bin/sh #--------------------------------------------------------------- # AUTO-GENERATED CODE, do not modify this will be overwritten!!! @@ -8,16 +9,17 @@ set -o nounset IFS=$(printf '\n\t') cd "$(dirname "$0")" json_input=$INPUT_FOLDER/inputs.json - + INPUT_1=$INPUT_FOLDER/single_number.txt export INPUT_1 -INPUT_2=$(jq <"$json_input" '.input_2') +INPUT_2=$(< "$json_input" jq '.input_2') export INPUT_2 -INPUT_3=$(jq <"$json_input" '.input_3') +INPUT_3=$(< "$json_input" jq '.input_3') export INPUT_3 -INPUT_4=$(jq <"$json_input" '.input_4') +INPUT_4=$(< "$json_input" jq '.input_4') export INPUT_4 -INPUT_5=$(jq <"$json_input" '.input_5') +INPUT_5=$(< "$json_input" jq '.input_5') export INPUT_5 exec execute.sh + \ No newline at end of file